|
|
@ -4,13 +4,24 @@ |
|
|
|
|
|
|
|
|
|
|
|
# Build engine |
|
|
|
# Build engine |
|
|
|
cd $TRAVIS_BUILD_DIR |
|
|
|
cd $TRAVIS_BUILD_DIR |
|
|
|
./waf configure --sdl2=$TRAVIS_BUILD_DIR/SDL2_VC --vgui=$TRAVIS_BUILD_DIR/vgui-dev --build-type=debug || die |
|
|
|
|
|
|
|
./waf build || die |
|
|
|
# NOTE: to build with other version use --msvc_version during configuration |
|
|
|
|
|
|
|
# NOTE: sometimes you may need to add WinSDK to %PATH% |
|
|
|
|
|
|
|
./waf.bat configure -s "$TRAVIS_BUILD_DIR/SDL2_VC" -T "debug" --prefix=`pwd` |
|
|
|
|
|
|
|
./waf.bat build |
|
|
|
|
|
|
|
echo After build |
|
|
|
|
|
|
|
|
|
|
|
cp $TRAVIS_BUILD_DIR/SDL2_VC/lib/x86/SDL2.dll . # Install SDL2 |
|
|
|
cp $TRAVIS_BUILD_DIR/SDL2_VC/lib/x86/SDL2.dll . # Install SDL2 |
|
|
|
cp build/vgui_support/vgui_support.dll . |
|
|
|
|
|
|
|
cp vgui-dev/lib/win32_vc6/vgui.dll . |
|
|
|
cp vgui-dev/lib/win32_vc6/vgui.dll . |
|
|
|
cp build/engine/xash.dll . |
|
|
|
./waf.bat install |
|
|
|
cp build/mainui/menu.dll . |
|
|
|
|
|
|
|
cp build/game_launch/xash3d.exe . |
|
|
|
7z a -t7z $TRAVIS_BUILD_DIR/xash3d-vc.7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on *.dll *.exe *.pdb |
|
|
|
7z a -t7z $TRAVIS_BUILD_DIR/xash3d-vc.7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on *.dll *.exe |
|
|
|
|
|
|
|
|
|
|
|
echo "Generating VC2008 project" |
|
|
|
|
|
|
|
rm -rf vc2008/ |
|
|
|
|
|
|
|
mkdir vc2008/ |
|
|
|
|
|
|
|
./waf.bat msdev |
|
|
|
|
|
|
|
find . -name "*.sln" -exec cp --parents \{\} vc2008/ \; |
|
|
|
|
|
|
|
find . -name "*.vcproj" -exec cp --parents \{\} vc2008/ \; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7z a -t7z $TRAVIS_BUILD_DIR/xash3d-vc2008-sln.7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -r vc2008 |
|
|
|