X-Git-Url: https://git.saurik.com/apple/libsystem.git/blobdiff_plain/9acf5127e3edce0130335ccab012d1c85c47efdd..b12e72edd086fad5ada5f7fe2fdf049e0370ae4e:/xcodescripts/create_system_framework.sh?ds=sidebyside diff --git a/xcodescripts/create_system_framework.sh b/xcodescripts/create_system_framework.sh index bbc17a9..5713d0d 100755 --- a/xcodescripts/create_system_framework.sh +++ b/xcodescripts/create_system_framework.sh @@ -5,7 +5,7 @@ if [ $# -ne 5 ]; then exit 1 fi -DSTROOT="$1${INSTALL_PATH_PREFIX}" +DSTROOT="$1${INSTALL_PATH_FRAMEWORK_PREFIX}" SRCROOT="$2" ACTION="$3" ARCHS="$4" @@ -22,6 +22,8 @@ mkdir -p "${DSTROOT}/${FPATH}/Versions/B" || exit 1 ln -sf "B" "${DSTROOT}/${FPATH}/Versions/Current" || exit 1 ln -sf "Versions/Current/PrivateHeaders" "${DSTROOT}/${FPATH}/PrivateHeaders" || exit 1 +if [[ "${DRIVERKIT}" == "1" ]]; then exit 0; fi; # No compatibility symlinks in DriverKit SDK + if [[ "${PLATFORM_NAME}" =~ macosx ]]; then ln -sf "Versions/Current/Resources" "${DSTROOT}/${FPATH}/Resources" || exit 1 @@ -40,10 +42,6 @@ else suffix="_${variant}" fi - if [[ "${PLATFORM_NAME}" =~ simulator ]] ; then - ln -sf "../../../../usr/lib/libSystem${suffix}.dylib" "${DSTROOT}/${FPATH}/System${suffix}" || exit 1 - else - ln -sf "../../../../usr/lib/libSystem.B${suffix}.dylib" "${DSTROOT}/${FPATH}/System${suffix}" || exit 1 - fi + ln -sf "../../../../usr/lib/libSystem.B${suffix}.dylib" "${DSTROOT}/${FPATH}/System${suffix}" || exit 1 done fi