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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # This target is only used when android_webview_build==1 - it implements a
6 # whitelist for exported symbols to minimise the binary size and prevent us
7 # accidentally exposing things we don't mean to expose.
8
5 { 9 {
10 'variables': {
11 'android_linker_script%': '<(SHARED_INTERMEDIATE_DIR)/android_webview_export _whitelist.lst',
12 },
6 'targets': [ 13 'targets': [
7 { 14 {
8 'target_name': 'android_exports', 15 'target_name': 'android_exports',
9 'type': 'none', 16 'type': 'none',
10 'inputs': [ 17 'inputs': [
11 '<(DEPTH)/build/android/android_exports.lst', 18 '<(DEPTH)/build/android/android_webview_export_whitelist.lst',
12 ], 19 ],
13 'outputs': [ 20 'outputs': [
14 '<(android_linker_script)', 21 '<(android_linker_script)',
15 ], 22 ],
16 'copies': [ 23 'copies': [
17 { 24 {
18 'destination': '<(SHARED_INTERMEDIATE_DIR)', 25 'destination': '<(SHARED_INTERMEDIATE_DIR)',
19 'files': [ 26 'files': [
20 '<@(_inputs)', 27 '<@(_inputs)',
21 ], 28 ],
22 }, 29 },
23 ], 30 ],
24 'conditions': [ 31 'conditions': [
25 ['component=="static_library"', { 32 ['component=="static_library"', {
26 'link_settings': { 33 'link_settings': {
27 'ldflags': [ 34 'ldflags': [
28 # Only export symbols that are specified in version script. 35 # Only export symbols that are specified in version script.
29 '-Wl,--version-script=<(android_linker_script)', 36 '-Wl,--version-script=<(android_linker_script)',
30 ], 37 ],
31 'ldflags!': [
32 '-Wl,--exclude-libs=ALL',
33 ],
34 }, 38 },
35 }], 39 }],
36 ], 40 ],
37 }, 41 },
38 ], 42 ],
39 } 43 }
OLDNEW
« 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