diff options
author | Trevor Norris <trev.norris@gmail.com> | 2013-03-18 13:49:34 -0700 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-03-20 01:11:01 +0100 |
commit | 83261e789eb903da39f279cb5a161611482e7df5 (patch) | |
tree | 4133b5ca9f53bed4365e1a94544a227d68a0cf12 /deps/v8/build/android.gypi | |
parent | a05f973f82d2be8527aad4c371d40d3c7e4c564e (diff) | |
download | node-new-83261e789eb903da39f279cb5a161611482e7df5.tar.gz |
deps: update v8 to 3.17.13
Diffstat (limited to 'deps/v8/build/android.gypi')
-rw-r--r-- | deps/v8/build/android.gypi | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/deps/v8/build/android.gypi b/deps/v8/build/android.gypi index d2d1a35726..8400ab113a 100644 --- a/deps/v8/build/android.gypi +++ b/deps/v8/build/android.gypi @@ -35,9 +35,9 @@ 'variables': { 'android_ndk_root%': '<!(/bin/echo -n $ANDROID_NDK_ROOT)', 'android_toolchain%': '<!(/bin/echo -n $ANDROID_TOOLCHAIN)', - # Switch between different build types, currently only '0' is - # supported. - 'android_build_type%': 0, + # This is set when building the Android WebView inside the Android build + # system, using the 'android' gyp backend. + 'android_webview_build%': 0, }, 'conditions': [ ['android_ndk_root==""', { @@ -62,10 +62,10 @@ ], # Enable to use the system stlport, otherwise statically # link the NDK one? - 'use_system_stlport%': '<(android_build_type)', + 'use_system_stlport%': '<(android_webview_build)', 'android_stlport_library': 'stlport_static', # Copy it out one scope. - 'android_build_type%': '<(android_build_type)', + 'android_webview_build%': '<(android_webview_build)', 'OS': 'android', }, # variables 'target_defaults': { @@ -122,8 +122,6 @@ 'ldflags': [ '-nostdlib', '-Wl,--no-undefined', - # Don't export symbols from statically linked libraries. - '-Wl,--exclude-libs=ALL', ], 'libraries!': [ '-lrt', # librt is built into Bionic. @@ -143,7 +141,7 @@ '-lm', ], 'conditions': [ - ['android_build_type==0', { + ['android_webview_build==0', { 'ldflags': [ '-Wl,-rpath-link=<(android_lib)', '-L<(android_lib)', @@ -183,6 +181,11 @@ '-L<(android_stlport_libs)/armeabi', ], }], + ['target_arch=="mipsel"', { + 'ldflags': [ + '-L<(android_stlport_libs)/mips', + ], + }], ['target_arch=="ia32"', { 'ldflags': [ '-L<(android_stlport_libs)/x86', @@ -199,6 +202,16 @@ '-fno-stack-protector', ], }], + ['target_arch=="mipsel"', { + # The mips toolchain currently has problems with stack-protector. + 'cflags!': [ + '-fstack-protector', + '-U__linux__' + ], + 'cflags': [ + '-fno-stack-protector', + ], + }], ], 'target_conditions': [ ['_type=="executable"', { @@ -219,6 +232,13 @@ ['_type=="shared_library"', { 'ldflags': [ '-Wl,-shared,-Bsymbolic', + '<(android_lib)/crtbegin_so.o', + ], + }], + ['_type=="static_library"', { + 'ldflags': [ + # Don't export symbols from statically linked libraries. + '-Wl,--exclude-libs=ALL', ], }], ], |