• 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    # For some reason, static_library targets that are built with gc=required
7    # and then linked to executables that don't use gc, the linker doesn't
8    # complain. For shared_libraries it does, so use that.
9    {
10      'target_name': 'no_gc_lib',
11      'type': 'shared_library',
12      'sources': [
13        'c-file.c',
14        'cc-file.cc',
15        'needs-gc-mm.mm',
16        'needs-gc.m',
17      ],
18    },
19    {
20      'target_name': 'gc_lib',
21      'type': 'shared_library',
22      'sources': [
23        'c-file.c',
24        'cc-file.cc',
25        'needs-gc-mm.mm',
26        'needs-gc.m',
27      ],
28      'xcode_settings': {
29        'GCC_ENABLE_OBJC_GC': 'supported',
30      },
31    },
32    {
33      'target_name': 'gc_req_lib',
34      'type': 'shared_library',
35      'sources': [
36        'c-file.c',
37        'cc-file.cc',
38        'needs-gc-mm.mm',
39        'needs-gc.m',
40      ],
41      'xcode_settings': {
42        'GCC_ENABLE_OBJC_GC': 'required',
43      },
44    },
45
46    {
47      'target_name': 'gc_exe_fails',
48      'type': 'executable',
49      'sources': [ 'main.m' ],
50      'dependencies': [ 'no_gc_lib' ],
51      'xcode_settings': {
52        'GCC_ENABLE_OBJC_GC': 'required',
53      },
54      'libraries': [ 'Foundation.framework' ],
55    },
56    {
57      'target_name': 'gc_req_exe',
58      'type': 'executable',
59      'sources': [ 'main.m' ],
60      'dependencies': [ 'gc_lib' ],
61      'xcode_settings': {
62        'GCC_ENABLE_OBJC_GC': 'required',
63      },
64      'libraries': [ 'Foundation.framework' ],
65    },
66    {
67      'target_name': 'gc_exe_req_lib',
68      'type': 'executable',
69      'sources': [ 'main.m' ],
70      'dependencies': [ 'gc_req_lib' ],
71      'xcode_settings': {
72        'GCC_ENABLE_OBJC_GC': 'supported',
73      },
74      'libraries': [ 'Foundation.framework' ],
75    },
76    {
77      'target_name': 'gc_exe',
78      'type': 'executable',
79      'sources': [ 'main.m' ],
80      'dependencies': [ 'gc_lib' ],
81      'xcode_settings': {
82        'GCC_ENABLE_OBJC_GC': 'supported',
83      },
84      'libraries': [ 'Foundation.framework' ],
85    },
86    {
87      'target_name': 'gc_off_exe_req_lib',
88      'type': 'executable',
89      'sources': [ 'main.m' ],
90      'dependencies': [ 'gc_req_lib' ],
91      'libraries': [ 'Foundation.framework' ],
92    },
93    {
94      'target_name': 'gc_off_exe',
95      'type': 'executable',
96      'sources': [ 'main.m' ],
97      'dependencies': [ 'gc_lib' ],
98      'libraries': [ 'Foundation.framework' ],
99    },
100  ],
101}
102
103