File tree 4 files changed +23
-6
lines changed
4 files changed +23
-6
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ deps/icu*.zip
54
54
deps /icu * .tgz
55
55
deps /icu-tmp
56
56
. /node_modules
57
+ android-toolchain /
57
58
.svn /
58
59
59
60
# generated by gyp on Windows
Original file line number Diff line number Diff line change @@ -140,6 +140,17 @@ To run the tests:
140
140
> vcbuild test
141
141
```
142
142
143
+ ### Android / Android based devices, aka. Firefox OS
144
+
145
+ Be sure you have downloaded and extracted [ Android NDK]
146
+ (https://developer.android.com/tools/sdk/ndk/index.html )
147
+ before in a folder. Then run:
148
+
149
+ ```
150
+ $ ./android-configure /path/to/your/android-ndk
151
+ $ make
152
+ ```
153
+
143
154
### ` Intl ` (ECMA-402) support:
144
155
145
156
[ Intl] ( https://github.com/joyent/node/wiki/Intl ) support is not
Original file line number Diff line number Diff line change 3
3
export TOOLCHAIN=$PWD /android-toolchain
4
4
mkdir -p $TOOLCHAIN
5
5
$1 /build/tools/make-standalone-toolchain.sh \
6
- --toolchain=arm-linux-androideabi-4.7 \
6
+ --toolchain=arm-linux-androideabi-4.9 \
7
7
--arch=arm \
8
8
--install-dir=$TOOLCHAIN \
9
9
--platform=android-9
10
10
export PATH=$TOOLCHAIN /bin:$PATH
11
- export AR=arm-linux-androideabi-ar
12
- export CC=arm-linux-androideabi-gcc
13
- export CXX=arm-linux-androideabi-g++
14
- export LINK=arm-linux-androideabi-g++
11
+ export AR=$TOOLCHAIN /bin/ arm-linux-androideabi-ar
12
+ export CC=$TOOLCHAIN /bin/ arm-linux-androideabi-gcc
13
+ export CXX=$TOOLCHAIN /bin/ arm-linux-androideabi-g++
14
+ export LINK=$TOOLCHAIN /bin/ arm-linux-androideabi-g++
15
15
16
16
./configure \
17
17
--dest-cpu=arm \
Original file line number Diff line number Diff line change @@ -431,7 +431,8 @@ def is_arch_armv7():
431
431
return ('__ARM_ARCH_7__' in cc_macros_cache or
432
432
'__ARM_ARCH_7A__' in cc_macros_cache or
433
433
'__ARM_ARCH_7R__' in cc_macros_cache or
434
- '__ARM_ARCH_7M__' in cc_macros_cache )
434
+ '__ARM_ARCH_7M__' in cc_macros_cache or
435
+ '__ARM_ARCH_7S__' in cc_macros_cache )
435
436
436
437
437
438
def is_arch_armv6 ():
@@ -508,6 +509,10 @@ def configure_arm(o):
508
509
o ['variables' ]['arm_thumb' ] = 0 # -marm
509
510
o ['variables' ]['arm_float_abi' ] = arm_float_abi
510
511
512
+ if options .dest_os == 'android' :
513
+ o ['variables' ]['arm_fpu' ] = 'vfpv3'
514
+ o ['variables' ]['arm_version' ] = '7'
515
+
511
516
# Print warning when snapshot is enabled and building on armv6
512
517
if is_arch_armv6 () and options .with_snapshot :
513
518
warn ('when building on ARMv6, don\' t use --with-snapshot' )
You can’t perform that action at this time.
0 commit comments