diff options
author | marha <marha@users.sourceforge.net> | 2012-11-20 16:38:12 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-11-20 16:38:12 +0100 |
commit | 589f5feba1e7968b7318b02f4f2bdea81937f0e1 (patch) | |
tree | cb66bfd5efb59eb4b66cee9370cf30a136fc2df4 /buildall.sh | |
parent | fc83ab987c84518c31793515c4f99a0df8ccd1cc (diff) | |
download | vcxsrv-589f5feba1e7968b7318b02f4f2bdea81937f0e1.tar.gz vcxsrv-589f5feba1e7968b7318b02f4f2bdea81937f0e1.tar.bz2 vcxsrv-589f5feba1e7968b7318b02f4f2bdea81937f0e1.zip |
Now the software can be compiled from inside a cygwin terminal
Diffstat (limited to 'buildall.sh')
-rwxr-xr-x | buildall.sh | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/buildall.sh b/buildall.sh new file mode 100755 index 000000000..fee6ddbb7 --- /dev/null +++ b/buildall.sh @@ -0,0 +1,62 @@ +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 + +devenv.com freetype/freetypevc10.sln /build "Release Multithreaded|Win32" +check-error 'Error compiling freetype' + +devenv.com freetype/freetypevc10.sln /build "Debug Multithreaded|Win32" +check-error 'Error compiling freetype' + +cd openssl + +perl Configure VC-WIN32 +check-error 'Error executing perl' + +ms/do_nasm.bat +check-error 'Error configuring openssl for nasm' + +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 -C xorg-server MAKESERVER=1 DEBUG=1 +check-error 'Error compiling vcxsrv for debug' + +tools/mhmake/release/mhmake.exe -C xorg-server MAKESERVER=1 +check-error 'Error compiling vcxsrv for release' + +cd xorg-server/installer +./packageall.bat + |