libzmq/builds/android
Kevin Sapper 67e6a8c233 Problem: Usage of ANDROID_BUILD_DIR not documented
Solution: Add usage and default value to README
2020-02-12 21:49:25 +01:00
..
android_build_helper.sh Problem: Setting TOOLCHAIN env vars should be done by helper 2020-02-12 21:36:41 +01:00
build.sh Problem: Setting TOOLCHAIN env vars should be done by helper 2020-02-12 21:36:41 +01:00
ci_build.sh Problem: Android build is hard to understand 2020-02-12 12:22:27 +01:00
Dockerfile Problem: build scripts don't need full git history 2015-12-19 13:17:22 +01:00
README.md Problem: Usage of ANDROID_BUILD_DIR not documented 2020-02-12 21:49:25 +01:00

Android Build

Prerequisites

You need the Android Native Development Kit (NDK) installed. See here to download it.

This project is tested against Android NDK version r20.

If you installed version r20 all you have to do is to expose the NDK root directory as environment variable, e.g:

export ANDROID_NDK_ROOT=$HOME/android-ndk-r20

If you installed another version you have to expose the NDK root directory as well as the NDK version, e.g:

export ANDROID_NDK_ROOT=$HOME/android-ndk-r17c
export NDK_VERSION=android-ndk-r17c

To specify the minimum sdk version set the environment variable below:

export MIN_SDK_VERSION=21   # Default value if unset

To specify the prefix directory set the environment variable below:

export ANDROID_BUILD_DIR=./builds/android/prefix/<android_arch> # Default value if unset

Build

In the android directory, run:

./build.sh [ arm | arm64 | x86 | x86_64 ]