diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2024-06-17 18:21:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-17 18:21:10 +0200 |
commit | effada6b452472f001bd0bb5b3b6b828343760be (patch) | |
tree | 89cfbaf0db40ede5a4ca5a0e1aff64db6c14ab9f /tools/openssl.py | |
parent | 44ee53715d1645b8d14cf8a28f1822981e5628eb (diff) | |
parent | 26bc56f934fc11ca3e213ca2d12dc4977e42d192 (diff) | |
download | fork-godot-webrtc-native-effada6b452472f001bd0bb5b3b6b828343760be.tar.gz fork-godot-webrtc-native-effada6b452472f001bd0bb5b3b6b828343760be.tar.bz2 fork-godot-webrtc-native-effada6b452472f001bd0bb5b3b6b828343760be.zip |
Merge pull request #148 from Faless/build/better_macos_ios_targets
[SCons] Improve CMake and OpenSSL macOS/iOS targets
Diffstat (limited to 'tools/openssl.py')
-rw-r--r-- | tools/openssl.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/openssl.py b/tools/openssl.py index 7b18210..52a37d0 100644 --- a/tools/openssl.py +++ b/tools/openssl.py @@ -79,7 +79,15 @@ def ssl_platform_flags(env): if env.get("android_api_level", ""): api = int(env["android_api_level"]) args.append("-D__ANDROID_API__=%s" % api) + elif env["platform"] == "ios": + if env.get("ios_min_version", "default") != "default": + if env.get("ios_simulator", False): + args.append("-mios-simulator-version-min=%s" % env["ios_min_version"]) + else: + args.append("-miphoneos-version-min=%s" % env["ios_min_version"]) elif env["platform"] == "macos": + if env.get("macos_deployment_target", "default") != "default": + args.append("-mmacosx-version-min=%s" % env["macos_deployment_target"]) # OSXCross toolchain setup. if sys.platform != "darwin" and "OSXCROSS_ROOT" in os.environ: for k in ["CC", "CXX", "AR", "AS", "RANLIB"]: |