Allow detecting when building as a GDExtension

(cherry picked from commit e17c7bf530)
pull/1373/head
Aaron Franke 2023-12-17 11:45:31 -06:00 committed by David Snopek
parent 756190705e
commit 49098fbdc7
1 changed files with 3 additions and 0 deletions

View File

@ -267,6 +267,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: