Define MVK_MACCAT build macro and use it to conditionally compile code to align with build features and capabilities of Mac Catalyst platform on macOS 11.0+. Treat Mac Catalyst as minor variation of macOS 11.0. Update documentation. Currently only support Mac Catalyst on macOS 11.0+, to avoid complexities of deselecting iOS features and capabilities for Mac Catalyst on previous macOS versions. Mac Catalyst (and Simulators) require use of XCFrameworks. Currently unable to generate a dylib for Mac Catalyst.
23 lines
612 B
Bash
Executable File
23 lines
612 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# We don't support dylib for Mac Catalyst yet
|
|
if [ "${IS_MACCATALYST}" == "YES" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
export MVK_OS_CLANG="ios"
|
|
export MVK_UX_FWK="UIKit"
|
|
export MVK_MIN_OS_VERSION=${IPHONEOS_DEPLOYMENT_TARGET}
|
|
export MVK_IOSURFACE_FWK="-framework IOSurface"
|
|
export MVK_IOKIT_FWK="-framework IOKit"
|
|
|
|
# Do not link to IOSurface if deploying to iOS versions below 11.0, doing so will
|
|
# link IOSurface as a private framework, which will trigger App Store rejection.
|
|
if [ $(echo "${MVK_MIN_OS_VERSION} < 11.0" | bc) -eq 1 ]; then
|
|
MVK_IOSURFACE_FWK=""
|
|
fi
|
|
|
|
. "${SRCROOT}/../Scripts/create_dylib.sh"
|