2018-11-18 16:33:32 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Build custom SDL2
|
|
|
|
|
2018-12-17 00:53:00 +01:00
|
|
|
. scripts/lib.sh
|
|
|
|
|
2018-11-18 16:52:57 +01:00
|
|
|
cd $TRAVIS_BUILD_DIR/SDL2_src
|
2018-11-18 16:33:32 +01:00
|
|
|
export CC="ccache gcc -msse2 -march=i686 -m32 -ggdb -O2"
|
|
|
|
./configure \
|
|
|
|
--disable-dependency-tracking \
|
|
|
|
--disable-render \
|
|
|
|
--disable-haptic \
|
|
|
|
--disable-power \
|
|
|
|
--disable-filesystem \
|
|
|
|
--disable-file \
|
|
|
|
--enable-alsa-shared \
|
|
|
|
--enable-pulseaudio-shared \
|
|
|
|
--enable-wayland-shared \
|
|
|
|
--enable-x11-shared \
|
|
|
|
--disable-libudev \
|
|
|
|
--disable-dbus \
|
|
|
|
--disable-ibus \
|
|
|
|
--disable-ime \
|
2018-11-18 20:37:06 +01:00
|
|
|
--disable-fcitx \
|
|
|
|
--prefix / # get rid of /usr/local stuff
|
2018-11-18 16:33:32 +01:00
|
|
|
make -j2
|
|
|
|
mkdir -p $TRAVIS_BUILD_DIR/SDL2_linux
|
|
|
|
make install DESTDIR=$TRAVIS_BUILD_DIR/SDL2_linux
|
|
|
|
|
|
|
|
# Build engine
|
|
|
|
cd $TRAVIS_BUILD_DIR
|
|
|
|
export CC="ccache gcc"
|
|
|
|
export CXX="ccache g++"
|
2018-12-17 00:53:00 +01:00
|
|
|
./waf configure --sdl2=$TRAVIS_BUILD_DIR/SDL2_linux --vgui=$TRAVIS_BUILD_DIR/vgui-dev --build-type=debug --enable-stb || die
|
2019-03-29 21:32:06 +01:00
|
|
|
./waf build || die
|
2018-12-12 02:19:17 +01:00
|
|
|
|
|
|
|
# Build AppImage
|
|
|
|
scripts/build_appimage.sh
|