From 9c61d2528f01337018484f9002f03aff33f6991a Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Fri, 10 Jun 2022 07:55:30 -0700 Subject: [PATCH] build scripts/build.cfg: add option to build the Quake III plugin --- build.cfg | 3 +++ build_engine.sh | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/build.cfg b/build.cfg index fb759095..183dba81 100644 --- a/build.cfg +++ b/build.cfg @@ -39,3 +39,6 @@ BUILD_UPDATE=1 # If we should try to use CLANG instead of GCC (Linux only) BUILD_CLANG=0 + +# Build the Quake III game logic and protocol support +BUILD_QUAKE3=1 diff --git a/build_engine.sh b/build_engine.sh index c141acd5..493053e8 100755 --- a/build_engine.sh +++ b/build_engine.sh @@ -174,6 +174,13 @@ then printf "Built the Source Engine plugin successfully.\n\n" fi +if [ "$BUILD_QUAKE3" -eq 1 ] +then + CC=$ENGINE_CC CXX=$ENGINE_CXX $MAKE -j $BUILD_PROC plugins-rel NATIVE_PLUGINS="quake3" + find ./release/ -name 'fteplug_quake3_*.so' -exec cp -prv '{}' '../../../bin/' ';' + printf "Built the Quake III plugin successfully.\n\n" +fi + if [ "$BUILD_BULLET" -eq 1 ] then CC=$ENGINE_CC CXX=$ENGINE_CXX $MAKE -j $BUILD_PROC plugins-rel NATIVE_PLUGINS="bullet"