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{
6  'targets': [
7    {
8      'target_name': 'static_32_64',
9      'type': 'static_library',
10      'sources': [ 'my_file.cc' ],
11      'xcode_settings': {
12        'ARCHS': [ 'i386', 'x86_64' ],
13      },
14    },
15    {
16      'target_name': 'shared_32_64',
17      'type': 'shared_library',
18      'sources': [ 'my_file.cc' ],
19      'xcode_settings': {
20        'ARCHS': [ 'i386', 'x86_64' ],
21      },
22    },
23    {
24      'target_name': 'shared_32_64_bundle',
25      'product_name': 'My Framework',
26      'type': 'shared_library',
27      'mac_bundle': 1,
28      'sources': [ 'my_file.cc' ],
29      'xcode_settings': {
30        'ARCHS': [ 'i386', 'x86_64' ],
31      },
32    },
33    {
34      'target_name': 'module_32_64',
35      'type': 'loadable_module',
36      'sources': [ 'my_file.cc' ],
37      'xcode_settings': {
38        'ARCHS': [ 'i386', 'x86_64' ],
39      },
40    },
41    {
42      'target_name': 'module_32_64_bundle',
43      'product_name': 'My Bundle',
44      'type': 'loadable_module',
45      'mac_bundle': 1,
46      'sources': [ 'my_file.cc' ],
47      'xcode_settings': {
48        'ARCHS': [ 'i386', 'x86_64' ],
49      },
50    },
51    {
52      'target_name': 'exe_32_64',
53      'type': 'executable',
54      'sources': [ 'empty_main.cc' ],
55      'xcode_settings': {
56        'ARCHS': [ 'i386', 'x86_64' ],
57      },
58    },
59    {
60      'target_name': 'exe_32_64_bundle',
61      'product_name': 'Test App',
62      'type': 'executable',
63      'mac_bundle': 1,
64      'sources': [ 'empty_main.cc' ],
65      'xcode_settings': {
66        'ARCHS': [ 'i386', 'x86_64' ],
67      },
68    },
69    # This only needs to compile.
70    {
71      'target_name': 'precompiled_prefix_header_mm_32_64',
72      'type': 'shared_library',
73      'sources': [ 'file.mm', ],
74      'xcode_settings': {
75        'GCC_PREFIX_HEADER': 'header.h',
76        'GCC_PRECOMPILE_PREFIX_HEADER': 'YES',
77      },
78    },
79    # This does not compile but should not cause generation errors.
80    {
81      'target_name': 'exe_32_64_no_sources',
82      'type': 'executable',
83      'dependencies': [
84        'static_32_64',
85      ],
86      'sources': [],
87      'xcode_settings': {
88        'ARCHS': ['i386', 'x86_64'],
89      },
90    },
91  ]
92}
93