From: Mario Date: Sun, 16 Jul 2017 08:29:36 +0000 (+1000) Subject: Fix compile X-Git-Tag: xonotic-v0.8.5~2603 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8b1f958a31e298a599e3a8d60844ae68f4f59b19;p=xonotic%2Fxonotic-data.pk3dir.git Fix compile --- diff --git a/qcsrc/Makefile b/qcsrc/Makefile index c660a7e94..bd17dad6a 100644 --- a/qcsrc/Makefile +++ b/qcsrc/Makefile @@ -8,6 +8,9 @@ QCCFLAGS_WATERMARK ?= $(shell git describe --tags --dirty='~') VER = $(subst *,\*,$(QCCFLAGS_WATERMARK)) NDEBUG ?= 1 XONOTIC ?= 1 +ENABLE_EFFECTINFO ?= 0 +ENABLE_DEBUGDRAW ?= 0 +ENABLE_DEBUGTRACE ?= 0 BUILD_MOD ?= ifndef ZIP @@ -34,6 +37,9 @@ QCCDEFS ?= \ -DXONOTIC=$(XONOTIC) \ -DWATERMARK="$(QCCFLAGS_WATERMARK)" \ -DNDEBUG=$(NDEBUG) \ + -DENABLE_EFFECTINFO=$(ENABLE_EFFECTINFO) \ + -DENABLE_DEBUGDRAW=$(ENABLE_DEBUGDRAW) \ + -DENABLE_DEBUGTRACE=$(ENABLE_DEBUGTRACE) \ $(if $(BUILD_MOD), -DBUILD_MOD="$(BUILD_MOD)" -I$(BUILD_MOD), ) \ $(QCCDEFS_EXTRA) diff --git a/qcsrc/tools/compilationunits.sh b/qcsrc/tools/compilationunits.sh index ebb232105..8543f8c86 100755 --- a/qcsrc/tools/compilationunits.sh +++ b/qcsrc/tools/compilationunits.sh @@ -11,6 +11,9 @@ declare -a QCCDEFS=( -DNDEBUG=1 -DXONOTIC=1 -DWATERMARK="\"$(git describe --tags --dirty='~')\"" + -DENABLE_EFFECTINFO=0 + -DENABLE_DEBUGDRAW=0 + -DENABLE_DEBUGTRACE=0 ) QCCDEFS="${QCCDEFS[@]}"