2019-10-18 06:12:42 +02:00
|
|
|
#!/bin/sh
|
2019-10-16 01:09:22 +02:00
|
|
|
|
2021-11-27 04:23:04 +01:00
|
|
|
. scripts/lib.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
|
2023-01-14 08:06:32 +01:00
|
|
|
./waf configure -T release -d --enable-fs-tests || die_configure
|
2019-10-16 01:09:22 +02:00
|
|
|
elif [ "$APP" = "xash3d-fwgs" ]; then
|
2023-01-14 08:06:32 +01:00
|
|
|
./waf configure -T release --enable-stb --enable-utils --enable-gl4es --enable-gles1 --enable-gles2 --enable-fs-tests || die_configure
|
2019-10-16 01:09:22 +02:00
|
|
|
else
|
|
|
|
die
|
|
|
|
fi
|
|
|
|
|
|
|
|
./waf build || die
|
|
|
|
}
|
|
|
|
|
|
|
|
rm -rf build # clean-up build directory
|
|
|
|
|
|
|
|
build_engine
|