summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-09-11 18:26:08 +0200
committerGitHub <noreply@github.com>2022-09-11 18:26:08 +0200
commit822e0532c23354c02fcdbdef90dc70236ece6255 (patch)
tree5eebac3b7ac82500601084e883086139bc29b01b /SConstruct
parent2ad1bf171653c3fb72d8f987b403ab65c9ad6a46 (diff)
parentd8cbd14a28d8c3c526c8ba1759b4052cbfead2c9 (diff)
downloadfork-godot-webrtc-native-822e0532c23354c02fcdbdef90dc70236ece6255.tar.gz
fork-godot-webrtc-native-822e0532c23354c02fcdbdef90dc70236ece6255.tar.bz2
fork-godot-webrtc-native-822e0532c23354c02fcdbdef90dc70236ece6255.zip
Merge pull request #60 from Faless/bump/alpha16
Update to Godot 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"