mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-22 18:07:09 +01:00
39 lines
869 B
Bash
Executable File
39 lines
869 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Build custom SDL2
|
|
|
|
. scripts/lib.sh
|
|
|
|
cd $TRAVIS_BUILD_DIR/SDL2_src
|
|
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 \
|
|
--disable-fcitx \
|
|
--prefix / # get rid of /usr/local stuff
|
|
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++"
|
|
./waf configure -s SDL2_linux -T debug --enable-stb --prefix="appimage" --win-style-install || die
|
|
./waf build || die
|
|
|
|
# Build AppImage
|
|
scripts/build_appimage.sh
|