mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-12 16:18:01 +00:00
777562aea8
This reverts commit a40d64d3a6
.
29 lines
817 B
Bash
29 lines
817 B
Bash
#!/bin/bash
|
|
|
|
. scripts/lib.sh
|
|
|
|
# Build engine
|
|
cd $TRAVIS_BUILD_DIR
|
|
|
|
# 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 -j1
|
|
echo After build
|
|
|
|
cp $TRAVIS_BUILD_DIR/SDL2_VC/lib/x86/SDL2.dll . # Install SDL2
|
|
cp vgui-dev/lib/win32_vc6/vgui.dll .
|
|
./waf.bat install
|
|
|
|
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
|
|
cp *.sln vc2008/
|
|
find . -name "*.vcproj" -exec cp --parents \{\} vc2008/ \;
|
|
rm -rf vc2008/vc2008 # HACKHACK
|
|
|
|
7z a -t7z $TRAVIS_BUILD_DIR/xash3d-vc2008-sln.7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -r vc2008
|