From e504cf1087b5f1e68368e2964d74ff19b60d7d36 Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Sat, 4 May 2024 14:26:04 +0200 Subject: [PATCH] wip: ios build script --- scripts/ios/build_monero_all.sh | 43 +++++++++++++++++++++++++++------ 1 file changed, 36 insertions(+), 7 deletions(-) diff --git a/scripts/ios/build_monero_all.sh b/scripts/ios/build_monero_all.sh index 2b61f6db0..89ba7e804 100755 --- a/scripts/ios/build_monero_all.sh +++ b/scripts/ios/build_monero_all.sh @@ -1,10 +1,39 @@ #!/bin/sh . ./config.sh -./install_missing_headers.sh -./build_openssl.sh -./build_boost.sh -./build_sodium.sh -./build_zmq.sh -./build_unbound.sh -./build_monero.sh \ No newline at end of file +# ./install_missing_headers.sh +# ./build_openssl.sh +# ./build_boost.sh +# ./build_sodium.sh +# ./build_zmq.sh +# ./build_unbound.sh + +set -x -e + +cd "$(dirname "$0")" + +NPROC="-j$(nproc)" + +../prepare_moneroc.sh + +# NOTE: -j1 is intentional. Otherwise you will run into weird behaviour on macos +if [[ ! "x$USE_DOCKER" == "x" ]]; +then + for COIN in monero; + do + pushd ../monero_c + echo "unsupported!" + exit 1 + popd + done +else + for COIN in monero; + do + pushd ../monero_c + ./build_single.sh ${COIN} host-apple-ios $NPROC + popd + done +fi + +unxz -f ../monero_c/release/monero/host-apple-ios_libwallet2_api_c.dylib.xz +# unxz -f ../monero_c/release/wownero/host-apple-ios_libwallet2_api_c.dylib.xz