mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
travis: fix building sdl2, fix libpath in wscript
This commit is contained in:
parent
f0297fc448
commit
27ee4337fe
@ -33,7 +33,10 @@ def configure(conf):
|
|||||||
conf.start_msg('Configuring SDL2 by provided path')
|
conf.start_msg('Configuring SDL2 by provided path')
|
||||||
conf.env.HAVE_SDL2 = 1
|
conf.env.HAVE_SDL2 = 1
|
||||||
conf.env.INCLUDES_SDL2 = [os.path.abspath(os.path.join(conf.options.SDL2_PATH, 'include'))]
|
conf.env.INCLUDES_SDL2 = [os.path.abspath(os.path.join(conf.options.SDL2_PATH, 'include'))]
|
||||||
conf.env.LIBPATH_SDL2 = [os.path.abspath(os.path.join(conf.options.SDL2_PATH, 'lib/x86'))]
|
libpath = 'lib'
|
||||||
|
if(conf.env.COMPILER_CC == 'msvc'):
|
||||||
|
libpath = 'lib/x86'
|
||||||
|
conf.env.LIBPATH_SDL2 = [os.path.abspath(os.path.join(conf.options.SDL2_PATH, libpath))]
|
||||||
conf.env.LIB_SDL2 = ['SDL2']
|
conf.env.LIB_SDL2 = ['SDL2']
|
||||||
conf.end_msg('ok')
|
conf.end_msg('ok')
|
||||||
else:
|
else:
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Build custom SDL2
|
# Build custom SDL2
|
||||||
|
|
||||||
cd $TRAVIS_BUILD_DIR/SDL2-2.0.7
|
cd $TRAVIS_BUILD_DIR/SDL2_src
|
||||||
export CC="ccache gcc -msse2 -march=i686 -m32 -ggdb -O2"
|
export CC="ccache gcc -msse2 -march=i686 -m32 -ggdb -O2"
|
||||||
./configure \
|
./configure \
|
||||||
--disable-dependency-tracking \
|
--disable-dependency-tracking \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user