aboutsummaryrefslogtreecommitdiff
path: root/buildall.sh
blob: 54347f427704956e00215b4dbe31150813d05d35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/usr/bin/bash

function check-error {
    if [ $? -ne 0 ]; then
        echo $1
        exit
    fi
}

which nasm > /dev/null 2>&1
check-error 'Please install nasm'

which devenv.com > /dev/null 2>&1
check-error 'Please install/set environment for visual studio 2010'

# echo script lines from now one
#set -v

if [[ "$IS64" == "" ]]; then
FREETYPERELCONF="Release Multithreaded|Win32"
FREETYPEDBGCONF="Debug Multithreaded|Win32"
else
FREETYPERELCONF="Release Multithreaded|x64"
FREETYPEDBGCONF="Debug Multithreaded|x64"
fi

devenv.com freetype/freetypevc10.sln /build "$FREETYPERELCONF"
check-error 'Error compiling freetype'

devenv.com freetype/freetypevc10.sln /build "$FREETYPEDBGCONF"
check-error 'Error compiling freetype'

cd openssl

if [[ "$IS64" == "" ]]; then
perl Configure VC-WIN32
check-error 'Error executing perl'
ms/do_nasm.bat
check-error 'Error configuring openssl for nasm'
else
perl Configure VC-WIN64A
check-error 'Error executing perl'
ms/do_win64a.bat
check-error 'Error configuring openssl for nasm'
fi

nmake -f ms/nt.mak
check-error 'Error compiling openssl for release'

nmake DEBUG=1 -f ms/nt.mak
check-error 'Error compiling openssl for debug'

cd ../pthreads
nmake VC-static
check-error 'Error compiling pthreads for release'

nmake VC-static-debug
check-error 'Error compiling pthreads for debug'

cd ..

devenv.com tools/mhmake/mhmakevc10.sln /build "Release|Win32"
check-error 'Error compiling mhmake for release'

devenv.com tools/mhmake/mhmakevc10.sln /build "Debug|Win32"
check-error 'Error compiling mhmake for debug'

export MHMAKECONF=`cygpath -da .`

tools/mhmake/release/mhmake $PARBUILD -C xorg-server MAKESERVER=1 DEBUG=1
check-error 'Error compiling vcxsrv for debug'

tools/mhmake/release/mhmake.exe $PARBUILD -C xorg-server MAKESERVER=1
check-error 'Error compiling vcxsrv for release'

cd xorg-server/installer
./packageall.bat