You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[infra/onert] Consolidate Android NDK installation into SDK script
This change simplifies the Android cross-build setup by using a single script for both SDK and NDK installation, and updates to the latest NDK version.
- Remove dedicated install_android_ndk.sh script
- Enhance install_android_sdk.sh to handle NDK installation
- Update NDK version from r26d to r27d
- Update documentation with new installation instructions
- Update Dockerfile to use new NDK version
ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
Copy file name to clipboardExpand all lines: docs/howto/how-to-cross-build-runtime-for-android.md
+24-4Lines changed: 24 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,19 +2,39 @@
2
2
3
3
**Note: To set up a basic build environment on your development PC, please read the [how-to-build-runtime.md](how-to-build-runtime.md) document first. The cross build covered in this document assumes that you have an environment in which the native build operates normally without problems.**
4
4
5
-
Supported Architecture : AARCH64 only (ARM32 is not supported yet)
5
+
Supported Architecture : AARCH64 only
6
6
7
7
## Prepare Android NDK
8
8
9
9
There are two ways to get Android NDK: install Android NDK on your PC or use docker image which already has Android NDK installed.
10
10
11
11
### Install Android NDK
12
12
13
-
Use `tools/cross/install_android_ndk.sh` script to prepare Android NDK. This is recommended way to build Android NDK.
13
+
You can use `tools/cross/install_android_sdk.sh` script to prepare Android SDK including NDK.
14
14
15
-
Or you can use `tools/cross/install_android_sdk.sh` script to prepare Android SDK including NDK. You can find NDK in `{android-sdk-dir}/ndk/{ndk-version}` directory.
Copy file name to clipboardExpand all lines: tools/cross/install_android_sdk.sh
+17-6Lines changed: 17 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -19,18 +19,21 @@ SCRIPT_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) # absolute path to
19
19
INSTALL_PATH=$SCRIPT_HOME/android_sdk # path to directory where android sdk will be installed
20
20
PLATFORMS_PACKAGE_VERSION="29"# version of platfroms package which will be installed
21
21
BUILD_TOOLS_PACKAGE_VERSION="29.0.3"# version of build-tools package which will be installed
22
-
NDK_VERSION="26.3.11579264"# version of ndk which will be installed
23
-
COMMAND_LINE_TOOLS_ARCHIVE="commandlinetools-linux-6514223_latest.zip"# command line tools archive name from site https://developer.android.com/studio/#downloads for bootstrap
22
+
NDK_VERSION="27.3.13750724"# version of ndk which will be installed
23
+
COMMAND_LINE_TOOLS_ARCHIVE="commandlinetools-linux-13114758_latest.zip"# command line tools archive name from site https://developer.android.com/studio/#downloads for bootstrap
24
24
COMMAND_LINE_TOOLS_VERSION="10.0"# version of command line tools which will be installed
25
+
UPDATE_TOOLS="0"# update tools flag, if set to 1 then tools will be updated, not new installed
printf" --install-dir - absolute path to directory where android sdk will be installed, by default: $INSTALL_PATH\n"
30
+
printf" --install-dir - absolute path to directory where android sdk will be installed or updated, by default: $INSTALL_PATH\n"
31
+
printf" --ndk-version - version of ndk which will be installed, by default: $NDK_VERSION\n"
30
32
printf" --platforms-package-version - version of platforms package which will be installed, by default: $PLATFORMS_PACKAGE_VERSION\n"
31
33
printf" --build-tools-package-version - version of build-tools package which will be installed, by default: $BUILD_TOOLS_PACKAGE_VERSION\n"
32
34
printf" --command-line-tools-version - version of cmdline-tools package which will be installed, by default: $COMMAND_LINE_TOOLS_VERSION\n"
33
35
printf" --command-line-tools-archive - name of command line tools archive from site https://developer.android.com/studio/#downloads, by default: $COMMAND_LINE_TOOLS_ARCHIVE\n"
36
+
printf" --update - update android sdk, not new install \n"
0 commit comments