cake_wallet/scripts/android/copy_zano_libs.sh

35 lines
712 B
Bash
Raw Normal View History

2023-10-26 14:32:29 +00:00
#!/bin/bash
WORKDIR=/opt/android
2024-10-23 16:42:28 +00:00
#CW_DIR=${WORKDIR}/zano_cake_wallet
CW_DIR=$(cd ../.. && pwd)
echo "CW_DIR: $CW_DIR"
CW_EXTERNAL_DIR=${CW_DIR}/cw_shared_external/ios/External/android
2023-10-26 14:32:29 +00:00
for arch in "aarch" "aarch64" "i686" "x86_64"
do
PREFIX=${WORKDIR}/prefix_${arch}
ABI=""
case $arch in
"aarch" )
ABI="armeabi-v7a";;
"aarch64" )
ABI="arm64-v8a";;
"i686" )
ABI="x86";;
"x86_64" )
ABI="x86_64";;
esac
2024-10-23 16:42:28 +00:00
LIB_DIR=${CW_EXTERNAL_DIR}/${ABI}/lib
2023-10-26 14:32:29 +00:00
mkdir -p $LIB_DIR
cp -r ${PREFIX}/lib/* $LIB_DIR
2024-10-23 16:42:28 +00:00
mkdir -p ${CW_DIR}/cw_shared_external/ios/External/ios/sources/zano/src/wallet/
cp ${WORKDIR}/zano/src/wallet/plain_wallet_api.h ${CW_DIR}/cw_shared_external/ios/External/ios/sources/zano/src/wallet/
2023-10-26 14:32:29 +00:00
done