summaryrefslogtreecommitdiffstats
path: root/android_webview/android_webview_tests.gypi
diff options
context:
space:
mode:
authortorne <torne@chromium.org>2015-02-18 13:37:16 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-18 21:37:59 +0000
commit9d90d85f73ca46847047ccbda270f25b637ccc86 (patch)
tree2c173d1a8a25f40aeccbd011c1e09a6d5946eafc /android_webview/android_webview_tests.gypi
parentbf551a2b26ff9228329da910e8c656eb5ed4a2e9 (diff)
downloadchromium_src-9d90d85f73ca46847047ccbda270f25b637ccc86.zip
chromium_src-9d90d85f73ca46847047ccbda270f25b637ccc86.tar.gz
chromium_src-9d90d85f73ca46847047ccbda270f25b637ccc86.tar.bz2
android: Hide JNI exports by default.
Hide JNI exported functions in Android binaries by default, unless the target in question has explicitly set "use_native_jni_exports" to indicate that it relies on the JVM's automatic symbol lookup mechanism. The functions are simply demoted to hidden visibility; the code will remain unless the linker determines that it is unreferenced and strips it via --gc-sections. This ensures that binaries by default actually test the explicit JNI registration codepaths, which are required for compatibility with the crazy linker, while still allowing binaries that do not require crazy linker compatibility to choose to use the automatic mechanism in future. BUG=442327 Review URL: https://codereview.chromium.org/843103003 Cr-Commit-Position: refs/heads/master@{#316896}
Diffstat (limited to 'android_webview/android_webview_tests.gypi')
-rw-r--r--android_webview/android_webview_tests.gypi5
1 files changed, 5 insertions, 0 deletions
diff --git a/android_webview/android_webview_tests.gypi b/android_webview/android_webview_tests.gypi
index 4d57f7c..845aedf 100644
--- a/android_webview/android_webview_tests.gypi
+++ b/android_webview/android_webview_tests.gypi
@@ -194,6 +194,11 @@
'include_dirs': [
'..',
],
+ 'variables': {
+ # This library uses native JNI exports; tell gyp so that the required
+ # symbols will be kept.
+ 'use_native_jni_exports': 1,
+ },
'sources': [
'../android_webview/test/shell/src/draw_gl/draw_gl.cc',
],