summaryrefslogtreecommitdiff
path: root/android-configure
AgeCommit message (Collapse)Author
2017-03-21build: don't create directory for NDK toolchainTheBeastOfCaerbannog
Let make-standalone-toolchain.sh create directory. PR-URL: https://github.com/nodejs/node/pull/11916 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
2016-04-22build: update android-configure script for npmRobert Chiras
Now, that we can cross-compile node for Android, we also need to take care of native node modules installed with npm. Since there is no way to install and run npm on an Android device, we could instal node on host and setup an environment for installing node modules and cross-compile the native sources using Android NDK. The changes to this script will allow npm, when installing a module, to compile it using NDK. In order to do this, the developer should do the following steps: 1. Compile and install node on host, using: configure, make and make install 2. Build node for Android, using: source android-configure <path_to_ndk> arch and make 3. Push node binary to Android device 4. Using the same session, configure npm arch using: npm config set arch=<arch> 5. Install desired node modules using: npm install 6. Push installed node modules to Android device Signed-off-by: Robert Chiras <robert.chiras@intel.com> PR-URL: https://github.com/nodejs/node/pull/6349 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2016-03-22build: add suport for x86 architectureRobert Chiras
Modified android-configure script to support also x86 arch. Currently added support only for ia32 target arch. Also, compile openssl without asm, since using the asm sources will make node fail to run on Android, because it adds text relocations. Signed-off-by: Robert Chiras <robert.chiras@intel.com> PR-URL: https://github.com/nodejs/node/pull/5544 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2015-08-24build: use required platform in android-configureEvan Lucas
The introduction of libuv 1.6.0 broke the android-configure script by not specifying the correct platform. uv_os_homedir uses getpwuid_r which was not made public until API level 21 on android. The regression was introduced in a804026...b5cd2f0 PR-URL: https://github.com/nodejs/node/pull/2501 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2015-04-04build: default to armv7+vfpv3 for androidGiovanny Andres Gongora Granada
Also add Android build instructions to the README. PR-URL: https://github.com/iojs/io.js/pull/1307 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2015-01-27build: disable v8 snapshotsBen Noordhuis
Snapshots speed up start-up by a few milliseconds but are potentially dangerous because of the fixed hash seed that is used for strings and dictionaries, making collision denial-of-service attacks possible. Release builds on iojs.org have snapshots disabled but source builds did not, until now. The risk for individual source builds is low; the binary gets a random 32 bits hash seed that should be hard to guess by an external attacker. It's when binaries are distributed by, for example, a distro vendor that the fixed hash seed becomes a vulnerability, because then it's possible to target a large group of people at once. People that really need the faster start-up time can use the new --with-snapshot configure flag. PR-URL: https://github.com/iojs/io.js/pull/585 Reviewed-By: Bert Belder <bertbelder@gmail.com> Reviewed-By: Johan Bergström <bugs@bergstroem.nu> Reviewed-By: Rod Vagg <rod@vagg.org>
2013-06-17build: add android supportLinus MÃ¥rtensson
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.