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