]>
git.saurik.com Git - apple/libsystem.git/blob - xcodescripts/create_system_framework.sh
4 echo "Usage: $0 <dstroot> <srcroot> <action> <archs> <variants>" 1>&2
8 DSTROOT
="$1${INSTALL_PATH_FRAMEWORK_PREFIX}"
14 FPATH
="/System/Library/Frameworks/System.framework"
16 # <rdar://problem/21815807> System.framework on iOS needs to be a special snowflake.
17 # Other projects install headers into Versions/B/PrivateHeaders the sub-directories
18 # and symlinks still need to exist, even though they don't fit in flat bundles.
19 mkdir -p "${DSTROOT}/${FPATH}" || exit 1
20 mkdir -p "${DSTROOT}/${FPATH}/Versions" || exit 1
21 mkdir -p "${DSTROOT}/${FPATH}/Versions/B" || exit 1
22 ln -sf "B" "${DSTROOT}/${FPATH}/Versions/Current" || exit 1
23 ln -sf "Versions/Current/PrivateHeaders" "${DSTROOT}/${FPATH}/PrivateHeaders" || exit 1
25 if [[ "${DRIVERKIT}" == "1" ]]; then exit 0; fi; # No compatibility symlinks in DriverKit SDK
27 if [[ "${PLATFORM_NAME}" =~ macosx
]]; then
28 ln -sf "Versions/Current/Resources" "${DSTROOT}/${FPATH}/Resources" || exit 1
30 for variant
in ${VARIANTS}; do
32 if [ ${variant} != "normal" ]; then
35 ln -sf "Versions/Current/System${suffix}" "${DSTROOT}/${FPATH}/System${suffix}" || exit 1
36 ln -sf "../../../../../../usr/lib/libSystem.B${suffix}.dylib" "${DSTROOT}/${FPATH}/Versions/B/System${suffix}" || exit 1
39 for variant
in ${VARIANTS}; do
41 if [ ${variant} != "normal" ]; then
45 ln -sf "../../../../usr/lib/libSystem.B${suffix}.dylib" "${DSTROOT}/${FPATH}/System${suffix}" || exit 1