Allow detecting when building as a GDExtension
(cherry picked from commit e17c7bf530
)
pull/1372/head
parent
0472b6bdd4
commit
81a72ff06b
|
@ -295,6 +295,9 @@ def generate(env):
|
||||||
if env["precision"] == "double":
|
if env["precision"] == "double":
|
||||||
env.Append(CPPDEFINES=["REAL_T_IS_DOUBLE"])
|
env.Append(CPPDEFINES=["REAL_T_IS_DOUBLE"])
|
||||||
|
|
||||||
|
# Allow detecting when building as a GDExtension.
|
||||||
|
env.Append(CPPDEFINES=["GDEXTENSION"])
|
||||||
|
|
||||||
# Suffix
|
# Suffix
|
||||||
suffix = ".{}.{}".format(env["platform"], env["target"])
|
suffix = ".{}.{}".format(env["platform"], env["target"])
|
||||||
if env.dev_build:
|
if env.dev_build:
|
||||||
|
|
Loading…
Reference in New Issue