aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-11-10 18:48:23 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-11-10 18:51:33 +0200
commit6393bdcd53b106367b10317c227a114494c90142 (patch)
treeb2d8b5b14d5f921e6f5f06b07a3401e127cd7b21 /doc
parentac323a7222efaafc7bc3110b02f1ef2d2635c9a2 (diff)
doc: Move Android dependencies guide into `build-android.md`
Diffstat (limited to 'doc')
-rw-r--r--doc/build-android.md14
1 files changed, 12 insertions, 2 deletions
diff --git a/doc/build-android.md b/doc/build-android.md
index 7a8a9e6a65..101814e2f8 100644
--- a/doc/build-android.md
+++ b/doc/build-android.md
@@ -3,9 +3,19 @@ ANDROID BUILD NOTES
This guide describes how to build and package the `bitcoin-qt` GUI for Android on Linux and macOS.
-## Preparation
-You will need to get the Android NDK and build dependencies for Android as described in [depends/README.md](../depends/README.md).
+## Dependencies
+
+Before proceeding with an Android build one needs to get the [Android SDK](https://developer.android.com/studio) and use the "SDK Manager" tool to download the NDK and one or more "Platform packages" (these are Android versions and have a corresponding API level).
+In order to build `ANDROID_API_LEVEL` (API level corresponding to the Android version targeted, e.g. Android 9.0 Pie is 28 and its "Platform package" needs to be available) and `ANDROID_TOOLCHAIN_BIN` (path to toolchain binaries depending on the platform the build is being performed on) need to be set.
+
+API levels from 24 to 29 have been tested to work.
+
+If the build includes Qt, environment variables `ANDROID_SDK` and `ANDROID_NDK` need to be set as well but can otherwise be omitted.
+This is an example command for a default build with no disabled dependencies:
+
+ ANDROID_SDK=/home/user/Android/Sdk ANDROID_NDK=/home/user/Android/Sdk/ndk-bundle make HOST=aarch64-linux-android ANDROID_API_LEVEL=28 ANDROID_TOOLCHAIN_BIN=/home/user/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin
+
## Building and packaging