Alibek Omarov
5 years ago
3 changed files with 74 additions and 18 deletions
@ -0,0 +1,29 @@
@@ -0,0 +1,29 @@
|
||||
task: |
||||
name: freebsd-10-amd64 |
||||
freebsd_instance: |
||||
image: freebsd-10-4 |
||||
setup_script: |
||||
- ./scripts/travis_linux_deps.sh |
||||
test_script: |
||||
- ./scripts/build_freebsd_engine.sh dedicated |
||||
- ./scripts/build_freebsd_engine.sh |
||||
|
||||
task: |
||||
name: freebsd-11-amd64 |
||||
freebsd_instance: |
||||
image: freebsd-11-3 |
||||
setup_script: |
||||
- ./scripts/travis_linux_deps.sh |
||||
test_script: |
||||
- ./scripts/build_freebsd_engine.sh dedicated |
||||
- ./scripts/build_freebsd_engine.sh |
||||
|
||||
task: |
||||
name: freebsd-12-amd64 |
||||
freebsd_instance: |
||||
image: freebsd-12-0 |
||||
setup_script: |
||||
- ./scripts/travis_linux_deps.sh |
||||
test_script: |
||||
- ./scripts/build_freebsd_engine.sh dedicated |
||||
- ./scripts/build_freebsd_engine.sh |
@ -0,0 +1,45 @@
@@ -0,0 +1,45 @@
|
||||
#!/bin/bash |
||||
|
||||
|
||||
if [ "$1" = "dedicated" ]; then |
||||
APP=xashds |
||||
else # elif [ "$1" = "full" ]; then |
||||
APP=xash3d-fwgs |
||||
fi |
||||
|
||||
build_sdl2() |
||||
{ |
||||
cd "$CIRRUS_WORKING_DIR"/SDL2_src || die |
||||
./configure --disable-render --disable-haptic --disable-power --disable-filesystem \ |
||||
--disable-file --disable-libudev --disable-dbus --disable-ibus \ |
||||
--disable-ime --disable-fcitx \ |
||||
--enable-alsa-shared --enable-pulseaudio-shared \ |
||||
--enable-wayland-shared --enable-x11-shared \ |
||||
--prefix / || die # get rid of /usr/local stuff |
||||
make -j2 || die |
||||
mkdir -p "$CIRRUS_WORKING_DIR"/SDL2_bsd |
||||
make install DESTDIR="$CIRRUS_WORKING_DIR"/SDL2_bsd || die |
||||
} |
||||
|
||||
build_engine() |
||||
{ |
||||
# Build engine |
||||
cd "$CIRRUS_WORKING_DIR" || die |
||||
|
||||
if [ "$APP" = "xashds" ]; then |
||||
./waf configure -T release --single-binary -d -W || die |
||||
elif [ "$APP" = "xash3d-fwgs" ]; then |
||||
./waf configure --sdl2=SDL2_bsd -T release --enable-stb -W || die |
||||
else |
||||
die |
||||
fi |
||||
|
||||
./waf build || die |
||||
} |
||||
|
||||
rm -rf build # clean-up build directory |
||||
|
||||
if [ $APP != "xashds" ]; then |
||||
build_sdl2 |
||||
fi |
||||
build_engine |
Loading…
Reference in new issue