2021-09-13 16:33:32 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
. ./config.sh
|
2024-05-04 12:26:04 +00:00
|
|
|
# ./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")"
|
|
|
|
|
2024-05-06 20:41:40 +00:00
|
|
|
NPROC="-j$(sysctl -n hw.logicalcpu)"
|
2024-05-04 12:26:04 +00:00
|
|
|
|
|
|
|
../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
|