Skip to content

Commit e17c7bf

Browse files
committed
Allow detecting when building as a GDExtension
1 parent 48afa82 commit e17c7bf

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)