diff options
author | Tor Lillqvist <tml@iki.fi> | 2022-12-15 01:47:37 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2022-12-19 17:47:33 +0000 |
commit | 511964213d908acb2e4b9a85e968ccf0b3ac269c (patch) | |
tree | 681f939ec7c3a1eb4bf650d7e33d829f7a194397 | |
parent | 2dda846bcb32b13d9b6159003702db4359fec8b7 (diff) |
Simplify selection of iOS SDK, like we now do for macOS
Change-Id: I850a0214d12ef6b5b9a289b34a1467dfe9d35d17
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144213
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144464
-rw-r--r-- | configure.ac | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/configure.ac b/configure.ac index c5b6ddb7dcb1..3c9dbb636899 100644 --- a/configure.ac +++ b/configure.ac @@ -3634,27 +3634,19 @@ dnl =================================================================== if test $_os = iOS; then AC_MSG_CHECKING([what iOS SDK to use]) - current_sdk_ver=16.1 - older_sdk_vers="16.0 15.6" + if test "$enable_ios_simulator" = "yes"; then - platform=iPhoneSimulator + platformlc=iphonesimulator versionmin=-mios-simulator-version-min=14.5 else - platform=iPhoneOS + platformlc=iphoneos versionmin=-miphoneos-version-min=14.5 fi - xcode_developer=`xcode-select -print-path` - for sdkver in $current_sdk_ver $older_sdk_vers; do - t=$xcode_developer/Platforms/$platform.platform/Developer/SDKs/$platform$sdkver.sdk - if test -d $t; then - sysroot=$t - break - fi - done + sysroot=`xcrun --sdk $platformlc --show-sdk-path` - if test -z "$sysroot"; then - AC_MSG_ERROR([Could not find iOS SDK, expected something like $xcode_developer/Platforms/$platform.platform/Developer/SDKs/${platform}${current_sdk_ver}.sdk]) + if ! test -d "$sysroot"; then + AC_MSG_ERROR([Could not find iOS SDK $sysroot]) fi AC_MSG_RESULT($sysroot) |