Reworked script to use the build-scripts/libdyld-generate-version-headers.sh file

TBH, this could probably be reworked more better.
This commit is contained in:
Thomas A 2022-04-22 22:36:44 -07:00
parent 24ff6d9196
commit 366b780611

View File

@ -6,9 +6,9 @@ SCRIPTDIR=$(pwd -P)
popd > /dev/null
export SRCROOT="$SCRIPTDIR/.."
export SDKROOT="$SRCROOT/../../Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
export DSTROOT="$SCRIPTDIR"
export DERIVED_FILES_DIR="$SCRIPTDIR"
export SDKROOT="$SRCROOT/../../../Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
# copied and modified from dyld.xcodeproj
${SRCROOT}/bin/expand.rb < "${SRCROOT}/include/mach-o/dyld_priv.h" > "${SRCROOT}/include/mach-o/dyld_priv.h.tmp"
mv "${SRCROOT}/include/mach-o/dyld_priv.h.tmp" "${SRCROOT}/include/mach-o/dyld_priv.h"
${SRCROOT}/build-scripts/libdyld-generate-version-headers.sh