diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2023-05-25 02:33:18 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2023-05-25 06:07:03 +0200 |
commit | 45549e020fd99195b9db3222a1733e21af2032d5 (patch) | |
tree | b428a52bd3133dcca9f8c97830a374aa28d23dcc /SConstruct | |
parent | ee40730c205c2eff6c4078ed6229ccbe1c6c02d2 (diff) | |
download | fork-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-- | SConstruct | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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. |