Skip to content

Commit

Permalink
[ci] xcode 15: some folders seem to have changed place in macos sdks
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Dec 26, 2023
1 parent eb318eb commit 641d16b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ci/create-sdk-mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ mkdir -p "$LIB"
mkdir -p "$LIB/cmake/score"

export SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source $SCRIPTDIR/create-sdk-common.sh
source "$SCRIPTDIR/create-sdk-common.sh"

export XCODE=$XCODE_ROOT/Contents/Developer
export XCODE_MACOS_SDK=$XCODE/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
Expand All @@ -24,7 +24,7 @@ export XCODE_TOOLCHAIN=$XCODE/Toolchains/XcodeDefault.xctoolchain

# Copy OS API headers
rsync -ar "$XCODE_MACOS_SDK/usr/include/" "$INCLUDE/"
rsync -ar "$XCODE_TOOLCHAIN/usr/include/c++" "$INCLUDE/"
rsync -ar "$XCODE_MACOS_SDK/usr/include/c++" "$INCLUDE/"

# Copy clang lib headers
export LLVM_VER=$(ls $OSSIA_SDK/llvm-libs/lib/clang | sort -r | head -1)
Expand All @@ -35,14 +35,14 @@ rsync -ar "$OSSIA_SDK/llvm-libs/lib/clang/$LLVM_VER/include" "$LIB/clang/$LLVM_V
for fw in IOKit CFNetwork CoreFoundation CoreAudio CoreText Foundation DiskArbitration Accelerate AudioToolbox Security SystemConfiguration CoreGraphics ApplicationServices CoreServices Carbon Cocoa; do
echo "$fw"
mkdir -p "$INCLUDE/macos-sdks/$fw"
rsync -ar $XCODE_MACOS_FRAMEWORKS/$fw.framework/Headers/ "$INCLUDE/macos-sdks/$fw/" || true
rsync -ar "$XCODE_MACOS_FRAMEWORKS/$fw.framework/Headers/" "$INCLUDE/macos-sdks/$fw/" || true

if [[ -d $XCODE_MACOS_FRAMEWORKS/$fw.framework/Versions/A/Frameworks/ ]]; then
for subfw_path in $XCODE_MACOS_FRAMEWORKS/$fw.framework/Versions/A/Frameworks/* ; do
if [[ -d "$XCODE_MACOS_FRAMEWORKS/$fw.framework/Versions/A/Frameworks/" ]]; then
for subfw_path in "$XCODE_MACOS_FRAMEWORKS/$fw.framework/Versions/A/Frameworks"/* ; do
subfw=$(basename $subfw_path | cut -d'.' -f1)
echo " :: $subfw"
mkdir -p "$INCLUDE/macos-sdks/$subfw"
rsync -ar $subfw_path/Headers/ "$INCLUDE/macos-sdks/$subfw/" || true
rsync -ar "$subfw_path/Headers/" "$INCLUDE/macos-sdks/$subfw/" || true
done
fi
done

0 comments on commit 641d16b

Please sign in to comment.