diff options
author | cos <cos> | 2020-03-22 19:08:12 +0100 |
---|---|---|
committer | cos <cos> | 2020-03-22 19:08:12 +0100 |
commit | 5151e6766f3686a8bef475fc90aee794274ab3c9 (patch) | |
tree | 21a6abfdce2ac6035a397a3e356e39485ca4df76 /build_rust.sh | |
download | hello_rust_example-android-master.zip |
Diffstat (limited to 'build_rust.sh')
-rw-r--r-- | build_rust.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/build_rust.sh b/build_rust.sh new file mode 100644 index 0000000..36cf2a8 --- /dev/null +++ b/build_rust.sh @@ -0,0 +1,11 @@ +#!/bin/sh -e + +for TARGET in aarch64-linux-android armv7-linux-androideabi +do + echo "Building rust lib for ${TARGET}" + (cd rustcode; cargo build --target ${TARGET} --release) +done + +ln -s "`pwd`"/rustcode/target/aarch64-linux-android/release/librustcode.so jniLibs/arm64/ +ln -s "`pwd`"/rustcode/target/armv7-linux-androideabi/release/librustcode.so jniLibs/armeabi/ +ln -s "`pwd`"/rustcode/target/i686-linux-android/release/librustcode.so jniLibs/x86/ |