| OLD | NEW |
| 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 | |
| 9 { | 5 { |
| 10 'variables': { | |
| 11 'android_linker_script%': '<(SHARED_INTERMEDIATE_DIR)/android_webview_export
_whitelist.lst', | |
| 12 }, | |
| 13 'targets': [ | 6 'targets': [ |
| 14 { | 7 { |
| 15 'target_name': 'android_exports', | 8 'target_name': 'android_exports', |
| 16 'type': 'none', | 9 'type': 'none', |
| 17 'inputs': [ | 10 'inputs': [ |
| 18 '<(DEPTH)/build/android/android_webview_export_whitelist.lst', | 11 '<(DEPTH)/build/android/android_exports.lst', |
| 19 ], | 12 ], |
| 20 'outputs': [ | 13 'outputs': [ |
| 21 '<(android_linker_script)', | 14 '<(android_linker_script)', |
| 22 ], | 15 ], |
| 23 'copies': [ | 16 'copies': [ |
| 24 { | 17 { |
| 25 'destination': '<(SHARED_INTERMEDIATE_DIR)', | 18 'destination': '<(SHARED_INTERMEDIATE_DIR)', |
| 26 'files': [ | 19 'files': [ |
| 27 '<@(_inputs)', | 20 '<@(_inputs)', |
| 28 ], | 21 ], |
| 29 }, | 22 }, |
| 30 ], | 23 ], |
| 31 'conditions': [ | 24 'conditions': [ |
| 32 ['component=="static_library"', { | 25 ['component=="static_library"', { |
| 33 'link_settings': { | 26 'link_settings': { |
| 34 'ldflags': [ | 27 'ldflags': [ |
| 35 # Only export symbols that are specified in version script. | 28 # Only export symbols that are specified in version script. |
| 36 '-Wl,--version-script=<(android_linker_script)', | 29 '-Wl,--version-script=<(android_linker_script)', |
| 37 ], | 30 ], |
| 31 'ldflags!': [ |
| 32 '-Wl,--exclude-libs=ALL', |
| 33 ], |
| 38 }, | 34 }, |
| 39 }], | 35 }], |
| 40 ], | 36 ], |
| 41 }, | 37 }, |
| 42 ], | 38 ], |
| 43 } | 39 } |
| OLD | NEW |