summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-09-11 14:16:30 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-09-11 15:34:08 +0200
commit6e52fce98660dc9eaa832d682bf38e2ea742e5b6 (patch)
treed3b59859a2dec39c1a43d87b6836e78f127738df /SConstruct
parenta93af67d756e65161b81683c32fa66efd6f47ec6 (diff)
downloadfork-godot-webrtc-native-6e52fce98660dc9eaa832d682bf38e2ea742e5b6.tar.gz
fork-godot-webrtc-native-6e52fce98660dc9eaa832d682bf38e2ea742e5b6.tar.bz2
fork-godot-webrtc-native-6e52fce98660dc9eaa832d682bf38e2ea742e5b6.zip
Update sources to alpha16
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"