mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-08 21:31:46 +08:00
scripts: enable deploying vc2008 project
This commit is contained in:
@@ -4,13 +4,24 @@
|
||||
|
||||
# Build engine
|
||||
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 build/vgui_support/vgui_support.dll .
|
||||
cp vgui-dev/lib/win32_vc6/vgui.dll .
|
||||
cp build/engine/xash.dll .
|
||||
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
|
||||
./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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user