Skip to content

Commit

Permalink
Fix android build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ianrumac committed Nov 12, 2024
1 parent ae8666a commit 3f9978e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build_android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ build_targets=(
"i686-linux-android"
)

export CROSS_NO_WARNINGS=0
for target in "${build_targets[@]}"; do
rustup target add "$target"
echo "Building for $target"
cross build --target "$target" --release --lib
done
Expand All @@ -23,7 +25,7 @@ echo "Copying results to target/android/jniLibs"
target_dir="target/android"
jniLibs_dir="${target_dir}/jniLibs"

mkdir -p "${jniLibs_dir}"/{arm64-v8a,armeabi-v7a,x86_64}
mkdir -p "${jniLibs_dir}"/{arm64-v8a,armeabi-v7a,x86_64,i686}

cp target/aarch64-linux-android/release/libcel_eval.so "${jniLibs_dir}/arm64-v8a/libuniffi_cel.so"
cp target/armv7-linux-androideabi/release/libcel_eval.so "${jniLibs_dir}/armeabi-v7a/libuniffi_cel.so"
Expand Down

0 comments on commit 3f9978e

Please sign in to comment.