From e2b3c588e16cf22bfd364ee50901068fd34f22e1 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Sun, 17 Dec 2023 13:09:00 -0600 Subject: [PATCH] Allow detecting when building as an engine module --- modules/SCsub | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/SCsub b/modules/SCsub index fcc01e2c1b2..7c9946170f4 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.