Skip to content

Commit 46c92c1

Browse files
MeowShedanielleadams
authored andcommitted
doc: improved building doc for Android
PR-URL: #44166 Reviewed-By: Feng Yu <F3n67u@outlook.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
1 parent b0e3e69 commit 46c92c1

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

BUILDING.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ file a new issue.
3737
* [Option 1: Manual install](#option-1-manual-install)
3838
* [Option 2: Automated install with Boxstarter](#option-2-automated-install-with-boxstarter)
3939
* [Building Node.js](#building-nodejs-2)
40-
* [Android/Android-based devices (e.g. Firefox OS)](#androidandroid-based-devices-eg-firefox-os)
40+
* [Android](#android)
4141
* [`Intl` (ECMA-402) support](#intl-ecma-402-support)
4242
* [Build with full ICU support (all locales supported by ICU)](#build-with-full-icu-support-all-locales-supported-by-icu)
4343
* [Unix/macOS](#unixmacos)
@@ -647,22 +647,25 @@ To test if Node.js was built correctly:
647647
> Release\node -e "console.log('Hello from Node.js', process.version)"
648648
```
649649

650-
### Android/Android-based devices (e.g. Firefox OS)
650+
### Android
651651

652652
Android is not a supported platform. Patches to improve the Android build are
653653
welcome. There is no testing on Android in the current continuous integration
654654
environment. The participation of people dedicated and determined to improve
655655
Android building, testing, and support is encouraged.
656656

657657
Be sure you have downloaded and extracted
658-
[Android NDK](https://developer.android.com/tools/sdk/ndk/index.html) before in
658+
[Android NDK](https://developer.android.com/ndk) before in
659659
a folder. Then run:
660660

661661
```console
662-
$ ./android-configure /path/to/your/android-ndk
663-
$ make
662+
$ source ./android-configure /path/to/your/android-ndk target_arch android_sdk_version
663+
$ make -j4
664664
```
665665

666+
The Android SDK version should be at least 24 (Android 7.0) and the target
667+
architecture supports \[arm, arm64/aarch64, x86, x86\_64].
668+
666669
## `Intl` (ECMA-402) support
667670

668671
[Intl](https://github.com/nodejs/node/blob/HEAD/doc/api/intl.md) support is

0 commit comments

Comments
 (0)