summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct7
1 files changed, 7 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index d352db5..66c6177 100644
--- a/SConstruct
+++ b/SConstruct
@@ -23,6 +23,9 @@ opts.Add(EnumVariable("godot_version", "The Godot target version", "4", ["3", "4
opts.Update(env)
if env["godot_version"] == "3":
+ if "platform" in ARGUMENTS and ARGUMENTS["platform"] == "macos":
+ ARGUMENTS["platform"] = "osx" # compatibility with old osx name
+
env = SConscript("godot-cpp-3.x/SConstruct")
# Patch base env
@@ -41,6 +44,10 @@ if env["godot_version"] == "3":
if env["platform"] == "windows" and env["use_mingw"]:
env.Append(LINKFLAGS=["-static-libgcc"])
+ if env["platform"] == "osx":
+ env["platform"] = "macos" # compatibility with old osx name
+ ARGUMENTS["platform"] = "macos"
+
# Normalize suffix
if env["platform"] in ["windows", "linux"]:
env["arch"] = "x86_32" if env["bits"] == "32" else "x86_64"