• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2012 Google Inc. 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  'targets': [
6    {
7      'target_name': 'raw',
8      'type': 'shared_library',
9      'sources': [ 'file.c', ],
10      'xcode_settings': {
11        'OTHER_LDFLAGS': [
12          '-exported_symbols_list symbol_list.def',
13          '-sectcreate __TEXT __info_plist Info.plist',
14        ],
15      },
16    },
17    # TODO(thakis): This form should ideally be supported, too. (But
18    # -Wlfoo,bar,baz is cleaner so people should use that anyway.)
19    #{
20    #  'target_name': 'raw_sep',
21    #  'type': 'shared_library',
22    #  'sources': [ 'file.c', ],
23    #  'xcode_settings': {
24    #    'OTHER_LDFLAGS': [
25    #      '-exported_symbols_list', 'symbol_list.def',
26    #      '-sectcreate', '__TEXT', '__info_plist', 'Info.plist',
27    #    ],
28    #  },
29    #},
30    {
31      'target_name': 'wl_space',
32      'type': 'shared_library',
33      'sources': [ 'file.c', ],
34      'xcode_settings': {
35        'OTHER_LDFLAGS': [
36          # Works because clang passes unknown files on to the linker.
37          '-Wl,-exported_symbols_list symbol_list.def',
38        ],
39      },
40    },
41    # TODO(thakis): This form should ideally be supported, too. (But
42    # -Wlfoo,bar,baz is cleaner so people should use that anyway.)
43    #{
44    #  'target_name': 'wl_space_sep',
45    #  'type': 'shared_library',
46    #  'sources': [ 'file.c', ],
47    #  'xcode_settings': {
48    #    'OTHER_LDFLAGS': [
49    #      # Works because clang passes unknown files on to the linker.
50    #      '-Wl,-exported_symbols_list', 'symbol_list.def',
51    #    ],
52    #  },
53    #},
54    {
55      'target_name': 'wl_comma',
56      'type': 'shared_library',
57      'sources': [ 'file.c', ],
58      'xcode_settings': {
59        'OTHER_LDFLAGS': [
60          '-Wl,-exported_symbols_list,symbol_list.def',
61          '-Wl,-sectcreate,__TEXT,__info_plist,Info.plist',
62        ],
63      },
64    },
65  ],
66}
67