]> git.saurik.com Git - apple/libsystem.git/blobdiff - xcodescripts/create_system_framework.sh
Libsystem-1281.100.1.tar.gz
[apple/libsystem.git] / xcodescripts / create_system_framework.sh
index bbc17a9dd4e68231d226950493e24b5223651b4e..5713d0d56fc20d761a84f165957c43762b642a42 100755 (executable)
@@ -5,7 +5,7 @@ if [ $# -ne 5 ]; then
     exit 1
 fi
 
     exit 1
 fi
 
-DSTROOT="$1${INSTALL_PATH_PREFIX}"
+DSTROOT="$1${INSTALL_PATH_FRAMEWORK_PREFIX}"
 SRCROOT="$2"
 ACTION="$3"
 ARCHS="$4"
 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
 
 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
 
 if [[ "${PLATFORM_NAME}" =~ macosx ]]; then
        ln -sf "Versions/Current/Resources" "${DSTROOT}/${FPATH}/Resources" || exit 1
 
@@ -40,10 +42,6 @@ else
                        suffix="_${variant}"
                fi
 
                        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
        done
 fi