moltenvk/Scripts/create_dylib_tvos.sh

18 lines
494 B
Bash
Raw Normal View History

2020-06-09 14:30:46 -07:00
#!/bin/bash
set -e
export MVK_OS_CLANG="tvos"
2020-06-09 14:30:46 -07:00
export MVK_UX_FWK="UIKit"
export MVK_MIN_OS_VERSION=${TVOS_DEPLOYMENT_TARGET}
export MVK_IOSURFACE_FWK="-framework IOSurface"
export MVK_IOKIT_FWK=""
# Do not link to IOSurface if deploying to tvOS 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
2020-06-09 14:30:46 -07:00
. "${SRCROOT}/../Scripts/create_dylib.sh"