X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=.travis-script-xonotic.sh;h=4aa40a29db039f507025caabb59e0664b793c438;hb=7e026612d4326f751e2a80a5c73ce882a6b93ecc;hp=7c814c8cb8d55b1e6cc03cf9b84a89cc1f0a38a3;hpb=660001dce93be41b85d5d1e92d4a6afa5de2db33;p=xonotic%2Fdarkplaces.git diff --git a/.travis-script-xonotic.sh b/.travis-script-xonotic.sh index 7c814c8c..4aa40a29 100755 --- a/.travis-script-xonotic.sh +++ b/.travis-script-xonotic.sh @@ -54,16 +54,16 @@ for os in "$@"; do outputs='darkplaces-glx:darkplaces-linux64-glx darkplaces-sdl:darkplaces-linux64-sdl darkplaces-dedicated:darkplaces-linux64-dedicated' ;; win32) + # Need to use -mstackrealign as nothing guarantees that callbacks from + # other Win32 DLLs - including SDL2 - retain 16 bytes alignment. chroot= - # -mstackrealign works around SDL2-2.0.3 issue that stack is not 16 bytes aligned, breaking SSE. - # Please kill once SDL comes to its senses. makeflags='STRIP=: D3D=1 DP_MAKE_TARGET=mingw UNAME=MINGW32 WIN32RELEASE=1 - CC="i586-mingw32msvc-gcc -g1 -Wl,--dynamicbase -Wl,--nxcompat -mstackrealign -I../../../${deps}/include -L../../../${deps}/lib -DUSE_WSPIAPI_H -DSUPPORTIPV6" - WINDRES="i586-mingw32msvc-windres" + CC="/opt/cross_toolchain_32/bin/i686-w64-mingw32-gcc -static -g1 -mstackrealign -Wl,--dynamicbase -Wl,--nxcompat -I../../../${deps}/include -L../../../${deps}/lib -DSUPPORTIPV6" + WINDRES="/opt/cross_toolchain_32/bin/i686-w64-mingw32-windres" SDL_CONFIG="../../../${deps}/bin/sdl2-config" DP_LINK_CRYPTO=dlopen DP_LINK_CRYPTO_RIJNDAEL=dlopen @@ -71,7 +71,7 @@ for os in "$@"; do DP_LINK_ODE=dlopen DP_LINK_ZLIB=dlopen' maketargets='release' - outputs='darkplaces.exe:darkplaces-wgl.exe darkplaces-sdl.exe:darkplaces.exe darkplaces-dedicated.exe:darkplaces-dedicated.exe' + outputs='darkplaces.exe:darkplaces-x86-wgl.exe darkplaces-sdl.exe:darkplaces-x86.exe darkplaces-dedicated.exe:darkplaces-x86-dedicated.exe' ;; win64) chroot= @@ -80,8 +80,8 @@ for os in "$@"; do DP_MAKE_TARGET=mingw UNAME=MINGW32 WIN64RELEASE=1 - CC="x86_64-w64-mingw32-gcc -g1 -Wl,--dynamicbase -Wl,--nxcompat -I../../../${deps}/include -L../../../${deps}/lib -DSUPPORTIPV6" - WINDRES="x86_64-w64-mingw32-windres" + CC="/opt/cross_toolchain_64/bin/x86_64-w64-mingw32-gcc -static -g1 -Wl,--dynamicbase -Wl,--nxcompat -I../../../${deps}/include -L../../../${deps}/lib -DSUPPORTIPV6" + WINDRES="/opt/cross_toolchain_64/bin/x86_64-w64-mingw32-windres" SDL_CONFIG="../../../${deps}/bin/sdl2-config" DP_LINK_CRYPTO=dlopen DP_LINK_CRYPTO_RIJNDAEL=dlopen @@ -89,12 +89,12 @@ for os in "$@"; do DP_LINK_ODE=dlopen DP_LINK_ZLIB=dlopen' maketargets='release' - outputs='darkplaces.exe:darkplaces-x64-wgl.exe darkplaces-sdl.exe:darkplaces-x64.exe darkplaces-dedicated.exe:darkplaces-x64-dedicated.exe' + outputs='darkplaces.exe:darkplaces-wgl.exe darkplaces-sdl.exe:darkplaces.exe darkplaces-dedicated.exe:darkplaces-dedicated.exe' ;; osx) chroot= makeflags='STRIP=: - CC="gcc -g1 -arch x86_64 -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -mmacosx-version-min=10.5 -I../../../${deps}/include -L../../../${deps}/lib -DSUPPORTIPV6" + CC="gcc -g1 -arch x86_64 -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -mmacosx-version-min=10.5 -Wl,-rpath -Wl,@loader_path/../Frameworks -Wl,-rpath -Wl,@loader_path -I../../../${deps}/include -L../../../${deps}/lib -DSUPPORTIPV6" SDLCONFIG_MACOSXCFLAGS="-I${PWD}/SDL2.framework/Headers" SDLCONFIG_MACOSXLIBS="-F${PWD} -framework SDL2 -framework Cocoa -I${PWD}/SDL2.framework/Headers" SDLCONFIG_MACOSXSTATICLIBS="-F${PWD} -framework SDL2 -framework Cocoa -I${PWD}/SDL2.framework/Headers" @@ -114,15 +114,15 @@ for os in "$@"; do ) ( - trap "${chroot} make -C ${PWD} ${makeflags} clean" EXIT - eval "${chroot} make -C ${PWD} ${makeflags} ${maketargets}" - for o in $outputs; do - src=${o%%:*} - dst=${o#*:} - sftp -oStrictHostKeyChecking=no -i id_rsa-xonotic -P 2222 -b - autobuild-bin-uploader@beta.xonotic.org <