diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2023-12-17 13:09:00 -0600 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2024-01-06 01:19:29 -0600 |
commit | e2b3c588e16cf22bfd364ee50901068fd34f22e1 (patch) | |
tree | 0232e331a75098672a0a61b10e2bec13ef261ff6 | |
parent | 89cc635c0554cb2e518c830969ca4c5eedda0f4e (diff) | |
download | redot-engine-e2b3c588e16cf22bfd364ee50901068fd34f22e1.tar.gz |
Allow detecting when building as an engine module
-rw-r--r-- | modules/SCsub | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/SCsub b/modules/SCsub index fcc01e2c1b..7c9946170f 100644 --- a/modules/SCsub +++ b/modules/SCsub @@ -7,6 +7,9 @@ Import("env") env_modules = env.Clone() +# Allow modules to detect if they are being built as a module. +env_modules.Append(CPPDEFINES=["GODOT_MODULE"]) + Export("env_modules") # Header with MODULE_*_ENABLED defines. |