5 openssl aes-256-cbc -K $encrypted_eeb6f7a14a8e_key -iv $encrypted_eeb6f7a14a8e_iv -in .travis-id_rsa-xonotic -out id_rsa-xonotic -d
9 chmod 0600 id_rsa-xonotic
10 # ssh-keygen -y -f id_rsa-xonotic
12 rev=`git rev-parse HEAD`
14 sftp -oStrictHostKeyChecking=no -i id_rsa-xonotic -P 2222 -b - autobuild-bin-uploader@beta.xonotic.org <<EOF || true
23 chroot="sudo chroot ${PWD}/buildroot.i386"
25 CC="${CC} -m32 -march=i686 -g1 -I../../../${deps}/include -L../../../${deps}/lib -DSUPPORTIPV6"
26 SDL_CONFIG=sdl2-config
28 LIB_CRYPTO="../../../${deps}/lib/libd0_blind_id.a ../../../${deps}/lib/libgmp.a"
29 DP_LINK_CRYPTO_RIJNDAEL=dlopen
31 LIB_JPEG=../../../${deps}/lib/libjpeg.a
33 CFLAGS_ODE="-DUSEODE -DLINK_TO_LIBODE -DdDOUBLE"
34 LIB_ODE="../../../${deps}/lib/libode.a -lstdc++"
37 outputs='darkplaces-glx:darkplaces-linux32-glx darkplaces-sdl:darkplaces-linux32-sdl darkplaces-dedicated:darkplaces-linux32-dedicated'
42 CC="${CC} -m64 -g1 -I../../../${deps}/include -L../../../${deps}/lib -DSUPPORTIPV6"
43 SDL_CONFIG=sdl2-config
45 LIB_CRYPTO="../../../${deps}/lib/libd0_blind_id.a ../../../${deps}/lib/libgmp.a"
46 DP_LINK_CRYPTO_RIJNDAEL=dlopen
48 LIB_JPEG="../../../${deps}/lib/libjpeg.a"
50 CFLAGS_ODE="-DUSEODE -DLINK_TO_LIBODE -DdDOUBLE"
51 LIB_ODE="../../../${deps}/lib/libode.a -lstdc++"
54 outputs='darkplaces-glx:darkplaces-linux64-glx darkplaces-sdl:darkplaces-linux64-sdl darkplaces-dedicated:darkplaces-linux64-dedicated'
58 # -mstackrealign works around SDL2-2.0.3 issue that stack is not 16 bytes aligned, breaking SSE.
59 # Please kill once SDL comes to its senses.
65 CC="i686-w64-mingw32-gcc -g1 -Wl,--dynamicbase -Wl,--nxcompat -mstackrealign -I../../../${deps}/include -L../../../${deps}/lib -DUSE_WSPIAPI_H -DSUPPORTIPV6"
66 WINDRES="i686-w64-mingw32-windres"
67 SDL_CONFIG="../../../${deps}/bin/sdl2-config"
69 DP_LINK_CRYPTO_RIJNDAEL=dlopen
74 outputs='darkplaces.exe:darkplaces-x86-wgl.exe darkplaces-sdl.exe:darkplaces-x86.exe darkplaces-dedicated.exe:darkplaces-x86-dedicated.exe'
83 CC="x86_64-w64-mingw32-gcc -g1 -Wl,--dynamicbase -Wl,--nxcompat -I../../../${deps}/include -L../../../${deps}/lib -DSUPPORTIPV6"
84 WINDRES="x86_64-w64-mingw32-windres"
85 SDL_CONFIG="../../../${deps}/bin/sdl2-config"
87 DP_LINK_CRYPTO_RIJNDAEL=dlopen
92 outputs='darkplaces.exe:darkplaces-wgl.exe darkplaces-sdl.exe:darkplaces.exe darkplaces-dedicated.exe:darkplaces-dedicated.exe'
97 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"
98 SDLCONFIG_MACOSXCFLAGS="-I${PWD}/SDL2.framework/Headers"
99 SDLCONFIG_MACOSXLIBS="-F${PWD} -framework SDL2 -framework Cocoa -I${PWD}/SDL2.framework/Headers"
100 SDLCONFIG_MACOSXSTATICLIBS="-F${PWD} -framework SDL2 -framework Cocoa -I${PWD}/SDL2.framework/Headers"
101 DP_LINK_CRYPTO=dlopen
102 DP_LINK_CRYPTO_RIJNDAEL=dlopen
106 maketargets='sv-release sdl-release'
107 outputs='darkplaces-sdl:darkplaces-osx-sdl-bin darkplaces-dedicated:darkplaces-osx-dedicated'
111 # Condense whitespace in makeflags.
113 printf "%s\n" "$makeflags" | tr '\n' ' '
117 trap "${chroot} make -C ${PWD} ${makeflags} clean" EXIT
118 eval "${chroot} make -C ${PWD} ${makeflags} ${maketargets}"
119 for o in $outputs; do
122 sftp -oStrictHostKeyChecking=no -i id_rsa-xonotic -P 2222 -b - autobuild-bin-uploader@beta.xonotic.org <<EOF
123 put ${src} ${rev}/${dst}