summaryrefslogtreecommitdiff
path: root/deps/gyp/test/mac/ldflags/subdirectory/test.gyp
blob: db00c7465ca05d6606158d86a8f999c9f843fdaf (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Copyright (c) 2012 Google Inc. 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': 'raw',
      'type': 'shared_library',
      'sources': [ 'file.c', ],
      'xcode_settings': {
        'OTHER_LDFLAGS': [
          '-exported_symbols_list symbol_list.def',
          '-sectcreate __TEXT __info_plist Info.plist',
        ],
      },
    },
    # TODO(thakis): This form should ideally be supported, too. (But
    # -Wlfoo,bar,baz is cleaner so people should use that anyway.)
    #{
    #  'target_name': 'raw_sep',
    #  'type': 'shared_library',
    #  'sources': [ 'file.c', ],
    #  'xcode_settings': {
    #    'OTHER_LDFLAGS': [
    #      '-exported_symbols_list', 'symbol_list.def',
    #      '-sectcreate', '__TEXT', '__info_plist', 'Info.plist',
    #    ],
    #  },
    #},
    {
      'target_name': 'wl_space',
      'type': 'shared_library',
      'sources': [ 'file.c', ],
      'xcode_settings': {
        'OTHER_LDFLAGS': [
          # Works because clang passes unknown files on to the linker.
          '-Wl,-exported_symbols_list symbol_list.def',
        ],
      },
    },
    # TODO(thakis): This form should ideally be supported, too. (But
    # -Wlfoo,bar,baz is cleaner so people should use that anyway.)
    #{
    #  'target_name': 'wl_space_sep',
    #  'type': 'shared_library',
    #  'sources': [ 'file.c', ],
    #  'xcode_settings': {
    #    'OTHER_LDFLAGS': [
    #      # Works because clang passes unknown files on to the linker.
    #      '-Wl,-exported_symbols_list', 'symbol_list.def',
    #    ],
    #  },
    #},
    {
      'target_name': 'wl_comma',
      'type': 'shared_library',
      'sources': [ 'file.c', ],
      'xcode_settings': {
        'OTHER_LDFLAGS': [
          '-Wl,-exported_symbols_list,symbol_list.def',
          '-Wl,-sectcreate,__TEXT,__info_plist,Info.plist',
        ],
      },
    },
  ],
}