Skip to content

Commit

Permalink
Allow detecting when building as a GDExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronfranke committed Dec 18, 2023
1 parent 48afa82 commit e17c7bf
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 e17c7bf

Please sign in to comment.