Browse Source

travis: fix building sdl2, fix libpath in wscript

pull/2/head
Alibek Omarov 6 years ago
parent
commit
27ee4337fe
  1. 5
      engine/wscript
  2. 2
      scripts/build_linux_engine.sh

5
engine/wscript

@ -33,7 +33,10 @@ def configure(conf): @@ -33,7 +33,10 @@ def configure(conf):
conf.start_msg('Configuring SDL2 by provided path')
conf.env.HAVE_SDL2 = 1
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.end_msg('ok')
else:

2
scripts/build_linux_engine.sh

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
# 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"
./configure \
--disable-dependency-tracking \

Loading…
Cancel
Save