cake_wallet/scripts/ios/setup.sh

40 lines
1.4 KiB
Bash
Raw Permalink Normal View History

2022-03-30 15:57:04 +00:00
#!/bin/sh
. ./config.sh
cd $EXTERNAL_IOS_LIB_DIR
2022-04-22 11:30:47 +00:00
LIBRANDOMX_PATH=${EXTERNAL_IOS_LIB_DIR}/monero/librandomx.a
if [ -f "$LIBRANDOMX_PATH" ]; then
cp $LIBRANDOMX_PATH ./haven
fi
libtool -static -o libboost.a ./libboost_*.a
2022-03-30 15:57:04 +00:00
libtool -static -o libhaven.a ./haven/*.a
libtool -static -o libmonero.a ./monero/*.a
2022-03-31 20:45:36 +00:00
CW_HAVEN_EXTERNAL_LIB=../../../../../cw_haven/ios/External/ios/lib
CW_HAVEN_EXTERNAL_INCLUDE=../../../../../cw_haven/ios/External/ios/include
CW_MONERO_EXTERNAL_LIB=../../../../../cw_monero/ios/External/ios/lib
CW_MONERO_EXTERNAL_INCLUDE=../../../../../cw_monero/ios/External/ios/include
2022-03-30 15:57:04 +00:00
mkdir -p $CW_HAVEN_EXTERNAL_INCLUDE
2022-04-22 11:30:47 +00:00
mkdir -p $CW_MONERO_EXTERNAL_INCLUDE
2022-03-30 15:57:04 +00:00
mkdir -p $CW_HAVEN_EXTERNAL_LIB
2022-03-31 20:45:36 +00:00
mkdir -p $CW_MONERO_EXTERNAL_LIB
2022-03-30 15:57:04 +00:00
2022-03-31 20:45:36 +00:00
ln ./libboost.a ${CW_HAVEN_EXTERNAL_LIB}/libboost.a
ln ./libcrypto.a ${CW_HAVEN_EXTERNAL_LIB}/libcrypto.a
ln ./libssl.a ${CW_HAVEN_EXTERNAL_LIB}/libssl.a
ln ./libsodium.a ${CW_HAVEN_EXTERNAL_LIB}/libsodium.a
2022-03-30 15:57:04 +00:00
cp ./libhaven.a $CW_HAVEN_EXTERNAL_LIB
cp ../include/haven/* $CW_HAVEN_EXTERNAL_INCLUDE
2022-03-31 20:45:36 +00:00
ln ./libboost.a ${CW_MONERO_EXTERNAL_LIB}/libboost.a
ln ./libcrypto.a ${CW_MONERO_EXTERNAL_LIB}/libcrypto.a
ln ./libssl.a ${CW_MONERO_EXTERNAL_LIB}/libssl.a
ln ./libsodium.a ${CW_MONERO_EXTERNAL_LIB}/libsodium.a
ln ./libunbound.a ${CW_MONERO_EXTERNAL_LIB}/libunbound.a
2022-03-31 20:45:36 +00:00
cp ./libmonero.a $CW_MONERO_EXTERNAL_LIB
cp ../include/monero/* $CW_MONERO_EXTERNAL_INCLUDE