2019-03-29 03:39:41 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
. scripts/lib.sh
|
|
|
|
|
|
|
|
# Build engine
|
|
|
|
cd $TRAVIS_BUILD_DIR
|
2019-04-08 19:41:41 +02:00
|
|
|
|
|
|
|
# NOTE: to build with other version use --msvc_version during configuration
|
|
|
|
# NOTE: sometimes you may need to add WinSDK to %PATH%
|
2019-05-23 21:13:00 +02:00
|
|
|
./waf.bat configure -s "$TRAVIS_BUILD_DIR/SDL2_VC" -T "debug" --prefix=`pwd` || die
|
2019-06-26 15:41:58 +02:00
|
|
|
./waf.bat build || die
|
2019-04-08 19:41:41 +02:00
|
|
|
echo After build
|
2019-03-29 03:39:41 +01:00
|
|
|
|
2019-05-23 21:13:00 +02:00
|
|
|
./waf.bat install || die
|
2019-03-29 03:39:41 +01:00
|
|
|
cp $TRAVIS_BUILD_DIR/SDL2_VC/lib/x86/SDL2.dll . # Install SDL2
|
|
|
|
cp vgui-dev/lib/win32_vc6/vgui.dll .
|
2019-04-08 19:41:41 +02:00
|
|
|
|
|
|
|
7z a -t7z $TRAVIS_BUILD_DIR/xash3d-vc.7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on *.dll *.exe *.pdb
|
|
|
|
|
|
|
|
echo "Generating VC2008 project"
|
|
|
|
rm -rf vc2008/
|
|
|
|
mkdir vc2008/
|
|
|
|
./waf.bat msdev
|
2019-04-08 19:51:49 +02:00
|
|
|
cp *.sln vc2008/
|
2019-04-08 19:41:41 +02:00
|
|
|
find . -name "*.vcproj" -exec cp --parents \{\} vc2008/ \;
|
2019-04-08 19:51:49 +02:00
|
|
|
rm -rf vc2008/vc2008 # HACKHACK
|
2019-04-08 19:41:41 +02:00
|
|
|
|
|
|
|
7z a -t7z $TRAVIS_BUILD_DIR/xash3d-vc2008-sln.7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -r vc2008
|