Allow detecting when building as a GDExtension

This commit is contained in:
Aaron Franke
2023-12-17 11:45:31 -06:00
parent 48afa82f29
commit e17c7bf530

View File

@@ -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: