summaryrefslogtreecommitdiffstats
path: root/build/android/android_exports.gyp
blob: c259eee3756c495e7198e1a2c922d2a4b2f1a6dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'targets': [
    {
      'target_name': 'android_exports',
      'type': 'none',
      'inputs': [
        '<(DEPTH)/build/android/android_exports.lst',
      ],
      'outputs': [
        '<(android_linker_script)',
      ],
      'copies': [
        {
          'destination': '<(SHARED_INTERMEDIATE_DIR)',
          'files': [
            '<@(_inputs)',
         ],
        },
      ],
      'conditions': [
        ['component=="static_library"', {
          'link_settings': {
            'ldflags': [
              # Only export symbols that are specified in version script.
              '-Wl,--version-script=<(android_linker_script)',
            ],
            'ldflags!': [
              '-Wl,--exclude-libs=ALL',
            ],
          },
        }],
      ],
    },
  ],
}