Skip to content

Commit

Permalink
Create universal iOS dylib
Browse files Browse the repository at this point in the history
  • Loading branch information
Kudo committed Dec 6, 2019
1 parent fd904ee commit b789894
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/archive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ function createAAR() {
popd
}

function createUniversalDylib() {
printf "\n\n\t\t===================== create universal dylib =====================\n\n"
mkdir -p "${BUILD_DIR}/lib/universal"
lipo "${BUILD_DIR}/lib/arm64/libv8.dylib" "${BUILD_DIR}/lib/x64/libv8.dylib" -output "${BUILD_DIR}/lib/universal/libv8.dylib" -create
}

function copyDylib() {
printf "\n\n\t\t===================== copy dylib =====================\n\n"
mkdir -p "${DIST_PACKAGE_DIR}"
Expand Down Expand Up @@ -60,6 +66,7 @@ if [[ ${PLATFORM} = "android" ]]; then
copyHeaders
copyTools
elif [[ ${PLATFORM} = "ios" ]]; then
createUniversalDylib
copyDylib
copyHeaders
copyTools
Expand Down

0 comments on commit b789894

Please sign in to comment.