diff options
-rw-r--r-- | tools/godotcpp.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/godotcpp.py b/tools/godotcpp.py index e445cad..0b02eea 100644 --- a/tools/godotcpp.py +++ b/tools/godotcpp.py @@ -295,6 +295,9 @@ def generate(env): if env["precision"] == "double": env.Append(CPPDEFINES=["REAL_T_IS_DOUBLE"]) + # Allow detecting when building as a GDExtension. + env.Append(CPPDEFINES=["GDEXTENSION"]) + # Suffix suffix = ".{}.{}".format(env["platform"], env["target"]) if env.dev_build: |