mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
monero: update dependencies (#3064)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
source "$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)/functions.sh"
|
||||
|
||||
# Usage: env USE_DOCKER= ./build_all.sh
|
||||
# Usage: env USE_DOCKER= ./build_all.sh
|
||||
|
||||
set -x -e
|
||||
|
||||
@@ -12,15 +12,33 @@ cd "$(dirname "$0")"
|
||||
for COIN in monero wownero zano;
|
||||
do
|
||||
pushd ../monero_c
|
||||
monero_c_tag=$(git describe --tags)
|
||||
for target in {x86_64,aarch64}-linux-android armv7a-linux-androideabi
|
||||
do
|
||||
if [[ -f "release/${COIN}/${target}_libwallet2_api_c.so" ]];
|
||||
if [[ -f "release/${monero_c_tag}/${target}/${COIN}_libwallet2_api_c.so" ]];
|
||||
then
|
||||
echo "file exist, not building monero_c for ${COIN}/$target.";
|
||||
else
|
||||
./build_single.sh ${COIN} $target -j$MAKE_JOB_COUNT
|
||||
unxz -f ../monero_c/release/${COIN}/${target}_libwallet2_api_c.so.xz
|
||||
fi
|
||||
|
||||
case $target in
|
||||
x86_64-linux-android)
|
||||
mkdir -p ../../android/app/src/main/jniLibs/x86_64 || true
|
||||
cp ../monero_c/release/${monero_c_tag}/${target}/lib${COIN}_wallet2_api_c.so ../../android/app/src/main/jniLibs/x86_64/
|
||||
;;
|
||||
armv7a-linux-androideabi)
|
||||
mkdir -p ../../android/app/src/main/jniLibs/armeabi-v7a || true
|
||||
cp ../monero_c/release/${monero_c_tag}/${target}/lib${COIN}_wallet2_api_c.so ../../android/app/src/main/jniLibs/armeabi-v7a/
|
||||
;;
|
||||
aarch64-linux-android)
|
||||
mkdir -p ../../android/app/src/main/jniLibs/arm64-v8a || true
|
||||
cp ../monero_c/release/${monero_c_tag}/${target}/lib${COIN}_wallet2_api_c.so ../../android/app/src/main/jniLibs/arm64-v8a/
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported target: $target"
|
||||
exit 1;
|
||||
esac
|
||||
done
|
||||
popd
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user