Skip to content

Commit 3f44e9b

Browse files
authored
Merge pull request #1339 from aaronfranke/detect-gdext
Allow detecting when building as a GDExtension
2 parents 1c19d62 + e17c7bf commit 3f44e9b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/godotcpp.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,9 @@ def generate(env):
295295
if env["precision"] == "double":
296296
env.Append(CPPDEFINES=["REAL_T_IS_DOUBLE"])
297297

298+
# Allow detecting when building as a GDExtension.
299+
env.Append(CPPDEFINES=["GDEXTENSION"])
300+
298301
# Suffix
299302
suffix = ".{}.{}".format(env["platform"], env["target"])
300303
if env.dev_build:

0 commit comments

Comments
 (0)