summaryrefslogtreecommitdiff
path: root/build_ndk.sh
diff options
context:
space:
mode:
authorcos <cos>2020-03-22 19:08:12 +0100
committercos <cos>2020-03-22 19:08:12 +0100
commit5151e6766f3686a8bef475fc90aee794274ab3c9 (patch)
tree21a6abfdce2ac6035a397a3e356e39485ca4df76 /build_ndk.sh
downloadhello_rust_example-android-master.zip
Initial (and likely only) commitHEADmaster
Diffstat (limited to 'build_ndk.sh')
-rwxr-xr-xbuild_ndk.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/build_ndk.sh b/build_ndk.sh
new file mode 100755
index 0000000..694f466
--- /dev/null
+++ b/build_ndk.sh
@@ -0,0 +1,8 @@
+mkdir NDK
+NDK_HOME="/usr/lib/android-ndk/"
+API_LEVEL=24
+for ARCH in arm64 arm x86
+do
+ ${NDK_HOME}/build/tools/make_standalone_toolchain.py \
+ --api ${API_LEVEL} --arch ${ARCH} --install-dir NDK/${ARCH}
+done