2
0
Эх сурвалжийг харах

Allow detecting when building as a GDExtension

Aaron Franke 1 жил өмнө
parent
commit
e17c7bf530
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      tools/godotcpp.py

+ 3 - 0
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: