Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3125)

Unified Diff: build/android/android_exports.gyp

Issue 843103003: android: Hide JNI exports by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added gn support Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/android_webview_tests.gypi ('k') | build/android/android_exports.lst » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/android_exports.gyp
diff --git a/build/android/android_exports.gyp b/build/android/android_exports.gyp
index c259eee3756c495e7198e1a2c922d2a4b2f1a6dd..bf3424d73fb13d5e8706e092b4f72666e40973f9 100644
--- a/build/android/android_exports.gyp
+++ b/build/android/android_exports.gyp
@@ -2,13 +2,20 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+# This target is only used when android_webview_build==1 - it implements a
+# whitelist for exported symbols to minimise the binary size and prevent us
+# accidentally exposing things we don't mean to expose.
+
{
+ 'variables': {
+ 'android_linker_script%': '<(SHARED_INTERMEDIATE_DIR)/android_webview_export_whitelist.lst',
+ },
'targets': [
{
'target_name': 'android_exports',
'type': 'none',
'inputs': [
- '<(DEPTH)/build/android/android_exports.lst',
+ '<(DEPTH)/build/android/android_webview_export_whitelist.lst',
],
'outputs': [
'<(android_linker_script)',
@@ -28,9 +35,6 @@
# Only export symbols that are specified in version script.
'-Wl,--version-script=<(android_linker_script)',
],
- 'ldflags!': [
- '-Wl,--exclude-libs=ALL',
- ],
},
}],
],
« no previous file with comments | « android_webview/android_webview_tests.gypi ('k') | build/android/android_exports.lst » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698