summaryrefslogtreecommitdiffstats
path: root/platform/uwp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2021-10-14 12:01:22 +0200
committerRémi Verschelde <rverschelde@gmail.com>2021-10-14 12:01:28 +0200
commite2dfb656f4508643acf38014dd8461782505ba12 (patch)
tree80c1bf84a660d1c6dd2b18b956758c7df0428c0e /platform/uwp
parent0eed8d8386850f887c024730816e8044ad742a2b (diff)
downloadredot-engine-e2dfb656f4508643acf38014dd8461782505ba12.tar.gz
SCons: Add `DEV_ENABLED` defines for `target=debug` builds
This will allow adding developer checks which will be fully compiled out in user builds, unlike `DEBUG_ENABLED` which is included in debug tempates and the editor builds. This define is not used yet, but we'll soon add code that uses it, and change some existing `DEBUG_ENABLED` checks to be performed only in dev builds. Related to godotengine/godot-proposals#3371.
Diffstat (limited to 'platform/uwp')
-rw-r--r--platform/uwp/detect.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/uwp/detect.py b/platform/uwp/detect.py
index 28922a4f59..f31b43cd49 100644
--- a/platform/uwp/detect.py
+++ b/platform/uwp/detect.py
@@ -72,6 +72,7 @@ def configure(env):
env.Append(CCFLAGS=["/Zi"])
env.Append(CCFLAGS=["/MDd"])
env.Append(CPPDEFINES=["DEBUG_ENABLED"])
+ env.Append(CPPDEFINES=["DEV_ENABLED"])
env.Append(LINKFLAGS=["/SUBSYSTEM:CONSOLE"])
env.AppendUnique(CPPDEFINES=["WINDOWS_SUBSYSTEM_CONSOLE"])
env.Append(LINKFLAGS=["/DEBUG"])