Skip to content

Commit

Permalink
build(scripts): Use same target dir for all crates
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarth committed Feb 24, 2024
1 parent 35e5892 commit 6c038cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/update_bindings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ elif [[ "$DEVICE_TYPE" == "device" ]]; then
print_warning "This only works on iOS devices (ARM64)"
fi

cp ${PROJECT_DIR}/mopro-ffi/target/${ARCHITECTURE}/${LIB_DIR}/libmopro_ffi.a ${TARGET_DIR}/
cp ${PROJECT_DIR}/target/${ARCHITECTURE}/${LIB_DIR}/libmopro_ffi.a ${TARGET_DIR}/

print_action "Copying Swift bindings and static library to MoproKit..."
cp ${TARGET_DIR}/SwiftBindings/moproFFI.h ${MOPROKIT_DIR}/Include/
Expand All @@ -145,7 +145,7 @@ cp ${TARGET_DIR}/libmopro_ffi.a ${MOPROKIT_DIR}/Libs/
# Dylib assets
if [[ "$USE_DYLIB" == true ]]; then
print_action "Copying dynamic library asset (${DYLIB_NAME})..."
cp "${PROJECT_DIR}/mopro-core/target/${ARCHITECTURE}/${LIB_DIR}/${DYLIB_NAME}" "${TARGET_DIR}/"
cp "${PROJECT_DIR}/target/${ARCHITECTURE}/${LIB_DIR}/${DYLIB_NAME}" "${TARGET_DIR}/"
cp "${TARGET_DIR}/${DYLIB_NAME}" "${MOPROKIT_DIR}/Libs/"
# Fix dynamic lib install paths
# NOTE: Xcode might already do this for us; verify this
Expand Down

0 comments on commit 6c038cb

Please sign in to comment.