xash3d-fwgs/scripts/build_freebsd_engine.sh

28 lines
438 B
Bash
Raw Normal View History

#!/bin/sh
2019-10-16 01:09:22 +02:00
if [ "$1" = "dedicated" ]; then
APP=xashds
else # elif [ "$1" = "full" ]; then
APP=xash3d-fwgs
fi
build_engine()
{
# Build engine
cd "$CIRRUS_WORKING_DIR" || die
if [ "$APP" = "xashds" ]; then
./waf configure -T release -d -W || die
2019-10-16 01:09:22 +02:00
elif [ "$APP" = "xash3d-fwgs" ]; then
./waf configure -T release --enable-stb -W || die
2019-10-16 01:09:22 +02:00
else
die
fi
./waf build || die
}
rm -rf build # clean-up build directory
build_engine