Skip to content

Commit 3fe1aba

Browse files
committed
depends: move README.md Android instructions to a separate section
1 parent aa9b84a commit 3fe1aba

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

depends/README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,7 @@ Common `host-platform-triplets` for cross compilation are:
3535
- `i686-linux-android` for Android x86 32 bit
3636
- `x86_64-linux-android` for Android x86 64 bit
3737

38-
The paths are automatically configured and no other options are needed unless targeting Android.
39-
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).
40-
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.
41-
42-
API levels from 24 to 29 have been tested to work.
43-
44-
If the build includes Qt, environment variables `ANDROID_SDK` and `ANDROID_NDK` need to be set as well but can otherwise be omitted.
45-
This is an example command for a default build with no disabled dependencies:
46-
47-
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
48-
49-
38+
The paths are automatically configured and no other options are needed unless targeting [Android](#Android).
5039

5140
### Install the required dependencies: Ubuntu & Debian
5241

@@ -105,6 +94,19 @@ options will be passed to bitcoin's configure. In this case, `--disable-wallet`.
10594
download-win: run 'make download-win' to fetch all sources needed for win builds
10695
download-linux: run 'make download-linux' to fetch all sources needed for linux builds
10796

97+
98+
### Android
99+
100+
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).
101+
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.
102+
103+
API levels from 24 to 29 have been tested to work.
104+
105+
If the build includes Qt, environment variables `ANDROID_SDK` and `ANDROID_NDK` need to be set as well but can otherwise be omitted.
106+
This is an example command for a default build with no disabled dependencies:
107+
108+
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
109+
108110
### Other documentation
109111

110112
- [description.md](description.md): General description of the depends system

0 commit comments

Comments
 (0)