1# Android Build
2
3## Prerequisites
4
5You need the Android Native Development Kit (NDK) installed. See
6[here](https://developer.android.com/ndk) to download it.
7
8This project is tested against Android NDK version r21d.
9
10If you installed version r21d all you have to do is to expose the NDK root
11directory as environment variable, e.g:
12
13    export ANDROID_NDK_ROOT=$HOME/android-ndk-r21d
14
15If you installed another version you have to expose the NDK root directory as
16well as the NDK version, e.g:
17
18    export ANDROID_NDK_ROOT=$HOME/android-ndk-r17c
19    export NDK_VERSION=android-ndk-r17c
20
21To specify the minimum sdk version set the environment variable below:
22
23    export MIN_SDK_VERSION=21   # Default value if unset
24
25To specify the prefix directory set the environment variable below:
26
27    export ANDROID_BUILD_DIR=./builds/android/prefix/<android_arch> # Default value if unset
28
29## Build
30
31In the android directory, run:
32
33    ./build.sh [ arm | arm64 | x86 | x86_64 ]
34