mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-25 11:19:59 +01:00
scripts: remove waf jobs, as waf smart enough to get CPU number, fix upload archive name for osx, install newer python in windows
This commit is contained in:
parent
184ca6517c
commit
d7ea40d850
@ -69,7 +69,7 @@ jobs:
|
||||
- sh scripts/build_${TRAVIS_OS_NAME}_engine.sh
|
||||
after_script:
|
||||
- cd ${TRAVIS_BUILD_DIR}
|
||||
- sh scripts/yadisk_upload.sh Xash3DFWGS-i386.AppImage xash3d-mingw.7z
|
||||
- sh scripts/yadisk_upload.sh xash3d-osx.tar.bz2
|
||||
- # ...
|
||||
name: "Build for Windows MSVC"
|
||||
cache: ccache
|
||||
|
@ -32,7 +32,7 @@ cd $TRAVIS_BUILD_DIR
|
||||
export CC="ccache gcc"
|
||||
export CXX="ccache g++"
|
||||
./waf configure --sdl2=$TRAVIS_BUILD_DIR/SDL2_linux --vgui=$TRAVIS_BUILD_DIR/vgui-dev --build-type=debug --enable-stb || die
|
||||
./waf build -j2 || die
|
||||
./waf build || die
|
||||
|
||||
# Build AppImage
|
||||
scripts/build_appimage.sh
|
||||
|
@ -8,11 +8,11 @@ export CC="ccache i686-w64-mingw32-gcc"
|
||||
export CXX="ccache i686-w64-mingw32-g++"
|
||||
export CFLAGS="-static-libgcc -no-pthread -msse2" # add sse2 to workaround mingw multiple definition of MemoryBarrier bug
|
||||
export CXXFLAGS="-static-libgcc -static-libstdc++ -no-pthread -msse2"
|
||||
export LDFLAGS="-static-libgcc -static-libstdc++ -no-pthread --allow-multiple-definition" # workaround some other mingw bugs
|
||||
export LDFLAGS="-static-libgcc -static-libstdc++ -no-pthread -Wl,--allow-multiple-definition" # workaround some other mingw bugs
|
||||
export WINRC="i686-w64-mingw32-windres"
|
||||
rm -rf build # clean build directory
|
||||
./waf configure --sdl2=$TRAVIS_BUILD_DIR/SDL2_mingw/i686-w64-mingw32/ --disable-vgui --build-type=debug --verbose || die # can't compile VGUI support on MinGW, due to differnet C++ ABI
|
||||
./waf build -j2 --verbose || die
|
||||
./waf build --verbose || die
|
||||
cp $TRAVIS_BUILD_DIR/SDL2_mingw/i686-w64-mingw32//bin/SDL2.dll . # Install SDL2
|
||||
cp vgui_support_bin/vgui_support.dll .
|
||||
cp build/engine/xash.dll .
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
cd $TRAVIS_BUILD_DIR
|
||||
python waf configure --sdl2=$HOME/Library/Frameworks/SDL2.framework/ --vgui=$TRAVIS_BUILD_DIR/vgui-dev --build-type=debug || die
|
||||
python waf build -j2 || die
|
||||
python waf build || die
|
||||
mkdir -p pkg/
|
||||
cp build/engine/libxash.dylib build/game_launch/xash3d build/mainui/libmenu.dylib build/vgui_support/libvgui_support.dylib vgui-dev/lib/vgui.dylib pkg/
|
||||
cp ~/Library/Frameworks/SDL2.framework/SDL2 pkg/libSDL2.dylib
|
||||
|
@ -5,7 +5,7 @@
|
||||
# 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 -j2 || die
|
||||
./waf build || die
|
||||
|
||||
cp $TRAVIS_BUILD_DIR/SDL2_VC/lib/x86/SDL2.dll . # Install SDL2
|
||||
cp build/vgui_support/vgui_support.dll .
|
||||
|
@ -1,6 +1,5 @@
|
||||
# python 2.7 cp65001 support
|
||||
python -m pip install -U pip
|
||||
pip install win-unicode-console
|
||||
# python 3.6
|
||||
choco install python3
|
||||
|
||||
# SDL2 for VC prebuilt
|
||||
curl http://libsdl.org/release/SDL2-devel-$SDL_VERSION-VC.zip -o SDL2.zip
|
||||
|
Loading…
Reference in New Issue
Block a user