Skip to content

Commit

Permalink
Merge pull request godotengine#1339 from aaronfranke/detect-gdext
Browse files Browse the repository at this point in the history
Allow detecting when building as a GDExtension
  • Loading branch information
dsnopek authored Dec 29, 2023
2 parents 1c19d62 + e17c7bf commit 3f44e9b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/godotcpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3f44e9b

Please sign in to comment.