diff options
| author | Czarek Nakamoto <cyjan@mrcyjanek.net> | 2024-05-29 11:40:02 +0200 |
|---|---|---|
| committer | Czarek Nakamoto <cyjan@mrcyjanek.net> | 2024-05-29 11:40:02 +0200 |
| commit | 81bd1208c4734c370f22fdf26932371f30d10fb6 (patch) | |
| tree | d08178a424fef45abb255edb89a5fda36d2e91a9 | |
| parent | 4899bb9a09d3a2e76ec2af88677f7e1e2ef52542 (diff) | |
fix android build script
| -rwxr-xr-x | build_single.sh | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/build_single.sh b/build_single.sh index 9b0748b..60a4a51 100755 --- a/build_single.sh +++ b/build_single.sh @@ -403,7 +403,25 @@ pushd release/$repo fi if [[ "$HOST_ABI" == "x86_64-linux-android" || "$HOST_ABI" == "i686-linux-android" || "$HOST_ABI" == "aarch64-linux-android" || "$HOST_ABI" == "arm-linux-androideabi" ]]; then - cp ../../monero/contrib/depends/${HOST_ABI}/native/sysroot/usr/lib/${HOST_ABI}/libc++_shared.so ${HOST_ABI}_libc++_shared.so + if [[ "$repo" == "wownero" ]]; + then + if [[ "$HOST_ABI" == "x86_64-linux-android" ]]; + then + cp ../../$repo/contrib/depends/${HOST_ABI}/native/${HOST_ABI}/lib64/libc++_shared.so ${HOST_ABI}_libc++_shared.so + elif [[ "$HOST_ABI" == "i686-linux-android" ]]; + then + echo "unsupported $HOST_ABI" + exit 1 + elif [[ "$HOST_ABI" == "aarch64-linux-android" ]]; + then + cp ../../$repo/contrib/depends/${HOST_ABI}/native/${HOST_ABI}/lib/libc++_shared.so ${HOST_ABI}_libc++_shared.so + elif [[ "$HOST_ABI" == "arm-linux-androideabi" ]]; + then + cp ../../$repo/contrib/depends/${HOST_ABI}/native/${HOST_ABI}/lib/armv7-a/libc++_shared.so ${HOST_ABI}_libc++_shared.so + fi + else + cp ../../$repo/contrib/depends/${HOST_ABI}/native/sysroot/usr/lib/${HOST_ABI}/libc++_shared.so ${HOST_ABI}_libc++_shared.so + fi rm ${HOST_ABI}_libc++_shared.so.xz || true xz -e ${HOST_ABI}_libc++_shared.so fi |
