summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2023-05-25 02:33:18 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2023-05-25 06:07:03 +0200
commit45549e020fd99195b9db3222a1733e21af2032d5 (patch)
treeb428a52bd3133dcca9f8c97830a374aa28d23dcc /SConstruct
parentee40730c205c2eff6c4078ed6229ccbe1c6c02d2 (diff)
downloadfork-godot-webrtc-native-45549e020fd99195b9db3222a1733e21af2032d5.tar.gz
fork-godot-webrtc-native-45549e020fd99195b9db3222a1733e21af2032d5.tar.bz2
fork-godot-webrtc-native-45549e020fd99195b9db3222a1733e21af2032d5.zip
[SCons] Move platform configuration to cmake tool.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct9
1 files changed, 8 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 553b2fb..1d540c8 100644
--- a/SConstruct
+++ b/SConstruct
@@ -21,6 +21,14 @@ opts = Variables(["customs.py"], ARGUMENTS)
opts.Add(EnumVariable("godot_version", "The Godot target version", "4", ["3", "4"]))
opts.Update(env)
+# Minimum target platform versions.
+if "ios_min_version" not in ARGUMENTS:
+ ARGUMENTS["ios_min_version"] = "11.0"
+if "macos_deployment_target" not in ARGUMENTS:
+ ARGUMENTS["macos_deployment_target"] = "11.0"
+if "android_api_level" not in ARGUMENTS:
+ ARGUMENTS["android_api_level"] = "28"
+
if env["godot_version"] == "3":
if "platform" in ARGUMENTS and ARGUMENTS["platform"] == "macos":
ARGUMENTS["platform"] = "osx" # compatibility with old osx name
@@ -81,7 +89,6 @@ if env["godot_version"] == "3":
elif env["bits"] == "32":
env["CC"] = "i686-w64-mingw32-gcc"
else:
- ARGUMENTS["ios_min_version"] = "11.0"
env = SConscript("godot-cpp/SConstruct").Clone()
# Should probably go to upstream godot-cpp.