• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3# found in the LICENSE file.
4
5{
6  'targets': [
7    {
8      'target_name': 'android_exports',
9      'type': 'none',
10      'inputs': [
11        '<(DEPTH)/build/android/android_exports.lst',
12      ],
13      'outputs': [
14        '<(android_linker_script)',
15      ],
16      'copies': [
17        {
18          'destination': '<(SHARED_INTERMEDIATE_DIR)',
19          'files': [
20            '<@(_inputs)',
21         ],
22        },
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      ],
37    },
38  ],
39}
40