mirror of
https://github.com/nodejs/node.git
synced 2024-11-25 08:19:38 +01:00
5e4e8ec429
Resolves minor discrepancies between android and standard POSIX systems. In addition, some configure parameters were added, and a helper-script for android configuration. Ideally, this script should be merged into the standard configure script. To build for android, source the android-configure script with an NDK path: source ./android-configure ~/android-ndk-r8d This will create an android standalone toolchain and export the necessary environment parameters. After that, build as normal: make -j8 After the build, you should now have android-compatible NodeJS binaries.
20 lines
498 B
Bash
Executable File
20 lines
498 B
Bash
Executable File
#!/bin/bash
|
|
|
|
export TOOLCHAIN=$PWD/android-toolchain
|
|
mkdir -p $TOOLCHAIN
|
|
$1/build/tools/make-standalone-toolchain.sh \
|
|
--toolchain=arm-linux-androideabi-4.7 \
|
|
--arch=arm \
|
|
--install-dir=$TOOLCHAIN \
|
|
--platform=android-9
|
|
export PATH=$TOOLCHAIN/bin:$PATH
|
|
export AR=arm-linux-androideabi-ar
|
|
export CC=arm-linux-androideabi-gcc
|
|
export CXX=arm-linux-androideabi-g++
|
|
export LINK=arm-linux-androideabi-g++
|
|
|
|
./configure \
|
|
--without-snapshot \
|
|
--dest-cpu=arm \
|
|
--dest-os=android
|