diff options
author | Linus MÃ¥rtensson <linus.martensson@sonymobile.com> | 2013-05-08 14:10:07 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-06-17 17:21:56 +0200 |
commit | 5e4e8ec429381a8d1eebe31647e9daaaae42c54b (patch) | |
tree | c19748704e920881dcd48776a116539c21316bcf /android-configure | |
parent | ffcd8b94c2111dcc72425ce0fbc48826ca8ba9ac (diff) | |
download | android-node-v8-5e4e8ec429381a8d1eebe31647e9daaaae42c54b.tar.gz android-node-v8-5e4e8ec429381a8d1eebe31647e9daaaae42c54b.tar.bz2 android-node-v8-5e4e8ec429381a8d1eebe31647e9daaaae42c54b.zip |
build: add android support
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.
Diffstat (limited to 'android-configure')
-rwxr-xr-x | android-configure | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/android-configure b/android-configure new file mode 100755 index 0000000000..7acb7f3766 --- /dev/null +++ b/android-configure @@ -0,0 +1,19 @@ +#!/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 |