From 8b1f958a31e298a599e3a8d60844ae68f4f59b19 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 16 Jul 2017 18:29:36 +1000 Subject: [PATCH] Fix compile --- qcsrc/Makefile | 6 ++++++ qcsrc/tools/compilationunits.sh | 3 +++ 2 files changed, 9 insertions(+) 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[@]}" -- 2.39.2