Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
piaskowyk committed Dec 16, 2024
1 parent aa074f1 commit d7bc916
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions utils/build-apple-framework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,18 @@ function configure_apple_framework {
-DIMPORT_HERMESC:PATH="$PWD/build_host_hermesc/ImportHermesc.cmake" \
-DCMAKE_INSTALL_PREFIX:PATH=../destroot \
-DCMAKE_BUILD_TYPE="$BUILD_TYPE" \
-DCMAKE_CXX_FLAGS="-gdwarf" \
-DIMPORT_HOST_COMPILERS="$PWD/build_host_hermesc/ImportHostCompilers.cmake"
}

function generate_dSYM {
TARGET_PLATFORM="$1"
DSYM_PATH="$PWD/build_$TARGET_PLATFORM/lib/hermesvm.framework.dSYM"
xcrun dsymutil "$PWD/build_$TARGET_PLATFORM/lib/hermesvm.framework/hermesvm" --out "$DSYM_PATH"
mkdir -p "$PWD/destroot/Library/Frameworks/$TARGET_PLATFORM"
cp -R "$DSYM_PATH" "$PWD/destroot/Library/Frameworks/$TARGET_PLATFORM"
}

# Utility function to build an Apple framework
function build_apple_framework {
echo "Building framework for $1 with architectures: $2"
Expand All @@ -93,6 +102,8 @@ function build_apple_framework {
else
(cd "./build_$1" && make install/strip)
fi

generate_dSYM "$1"
}

# Accepts an array of frameworks and will place all of
Expand Down

0 comments on commit d7bc916

Please sign in to comment.