Skip to content

Commit

Permalink
fix ios build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCyjaneK committed Aug 1, 2024
1 parent be7b00e commit 6e36772
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions external/ios/build_boost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ if [ -d "$BOOST_DIR_PATH" ]; then
else
echo "Cloning Boost from $BOOST_URL"
mkdir -p $BOOST_DIR_PATH || true
rm -rf $BOOST_DIR_PATH || true
cp -r "${MONEROC_DIR}/external/Apple-Boost-BuildScript" $BOOST_DIR_PATH
fi
cd $BOOST_DIR_PATH
Expand Down
4 changes: 4 additions & 0 deletions external/ios/build_monero_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ set -e
rm -rf build

. ./config.sh

rm -rf "$EXTERNAL_IOS_LIB_DIR"
rm -rf "$EXTERNAL_IOS_INCLUDE_DIR"

./install_missing_headers.sh
./build_openssl.sh
./build_boost.sh
Expand Down
6 changes: 4 additions & 2 deletions external/ios/build_openssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ if [ -d "$OPEN_SSL_DIR_PATH" ]; then
echo "OpenSSL directory already exists."
else
mkdir -p "$OPEN_SSL_DIR_PATH" || true
rm -rf "$OPEN_SSL_DIR_PATH"
cp -r "${MONEROC_DIR}/external/OpenSSL-for-iPhone" $OPEN_SSL_DIR_PATH
fi
cd $OPEN_SSL_DIR_PATH

./build-libssl.sh --version=1.1.1q --targets="ios-cross-arm64" --deprecated


mv -f ${OPEN_SSL_DIR_PATH}/include/* $EXTERNAL_IOS_INCLUDE_DIR
mv ${OPEN_SSL_DIR_PATH}/lib/libcrypto-iOS.a ${EXTERNAL_IOS_LIB_DIR}/libcrypto.a
mv ${OPEN_SSL_DIR_PATH}/lib/libssl-iOS.a ${EXTERNAL_IOS_LIB_DIR}/libssl.a
mv -f ${OPEN_SSL_DIR_PATH}/lib/libcrypto-iOS.a ${EXTERNAL_IOS_LIB_DIR}/libcrypto.a
mv -f ${OPEN_SSL_DIR_PATH}/lib/libssl-iOS.a ${EXTERNAL_IOS_LIB_DIR}/libssl.a
2 changes: 2 additions & 0 deletions external/ios/build_sodium.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ if [ -d "$SODIUM_PATH" ]; then
else
echo "Cloning Sodium from $SODIUM_URL"
mkdir -p $SODIUM_PATH || true
rm -rf $SODIUM_PATH
cp -r "${MONEROC_DIR}/external/libsodium" $SODIUM_PATH
fi

cd $SODIUM_PATH
../../../../libsodium_apple-ios.sh

mv -f ${SODIUM_PATH}/libsodium-apple/ios/include/* $EXTERNAL_IOS_INCLUDE_DIR
Expand Down
1 change: 1 addition & 0 deletions external/ios/build_unbound.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ if [ -d "$UNBOUND_DIR_PATH" ]; then
else
echo "Cloning Unbound from $Unbound_URL"
mkdir -p ${UNBOUND_DIR_PATH} || true
rm -rf ${UNBOUND_DIR_PATH}
cp -r "${MONEROC_DIR}/external/unbound" ${UNBOUND_DIR_PATH}
fi

Expand Down
2 changes: 1 addition & 1 deletion external/ios/build_wownero_seed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ SEED_SRC_DIR="${EXTERNAL_IOS_SOURCE_DIR}/seed"
rm -rf "$SEED_SRC_DIR" > /dev/null

echo "[*] cloning $SEED_URL"
rm -rf ${SEED_SRC_DIR} || true
mkdir -p ${SEED_SRC_DIR} || true
rm -rf ${SEED_SRC_DIR}
cp -r "${MONEROC_DIR}/external/wownero-seed" ${SEED_SRC_DIR}
cd $SEED_SRC_DIR

Expand Down
1 change: 1 addition & 0 deletions external/ios/build_zmq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ if [ -d "$ZMQ_PATH" ]; then
else
echo "Cloning ZeroMQ from $ZeroMQ_URL"
mkdir -p $ZMQ_PATH || true
rm -rf $ZMQ_PATH
cp -r "${MONEROC_DIR}/external/libzmq" $ZMQ_PATH
fi

Expand Down

0 comments on commit 6e36772

Please sign in to comment.