summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Snopek <dsnopek@gmail.com>2023-12-29 14:14:35 -0600
committerGitHub <noreply@github.com>2023-12-29 14:14:35 -0600
commit3f44e9b404eeb41987bb16941b6ed5851b964307 (patch)
tree437a04f9d11c759f01b391a22ad47c1e4cf80be6
parent1c19d627aac5410b115bfe80277bc3c916a8420d (diff)
parente17c7bf53060c7f1d34246af68b1d103dd8c01f7 (diff)
downloadredot-cpp-3f44e9b404eeb41987bb16941b6ed5851b964307.tar.gz
Merge pull request #1339 from aaronfranke/detect-gdext
Allow detecting when building as a GDExtension
-rw-r--r--tools/godotcpp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/godotcpp.py b/tools/godotcpp.py
index e445cad..0b02eea 100644
--- a/tools/godotcpp.py
+++ b/tools/godotcpp.py
@@ -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: