1# Copyright (c) 2013 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  'make_global_settings': [
6    ['CC', '/usr/bin/clang'],
7  ],
8  'target_defaults': {
9    'product_extension': 'bundle',
10    'mac_bundle_resources': [
11      'TestApp/English.lproj/InfoPlist.strings',
12      'TestApp/English.lproj/MainMenu.xib',
13    ],
14    'link_settings': {
15      'libraries': [
16        '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
17        '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
18      ],
19    },
20    'xcode_settings': {
21      'OTHER_CFLAGS': [
22        '-fobjc-abi-version=2',
23      ],
24      'CODE_SIGNING_REQUIRED': 'NO',
25      'SDKROOT': 'iphonesimulator',  # -isysroot
26      'TARGETED_DEVICE_FAMILY': '1,2',
27      'INFOPLIST_FILE': 'TestApp/TestApp-Info.plist',
28      'IPHONEOS_DEPLOYMENT_TARGET': '7.0',
29      'CONFIGURATION_BUILD_DIR':'build/Default',
30    },
31  },
32  'targets': [
33    {
34      'target_name': 'TestNoArchs',
35      'product_name': 'TestNoArchs',
36      'type': 'executable',
37      'mac_bundle': 1,
38      'sources': [
39        'TestApp/main.m',
40        'TestApp/only-compile-in-32-bits.m',
41      ],
42      'xcode_settings': {
43        'VALID_ARCHS': [
44          'i386',
45          'x86_64',
46          'arm64',
47          'armv7',
48        ],
49      }
50    },
51    {
52      'target_name': 'TestArch32Bits',
53      'product_name': 'TestArch32Bits',
54      'type': 'executable',
55      'mac_bundle': 1,
56      'sources': [
57        'TestApp/main.m',
58        'TestApp/only-compile-in-32-bits.m',
59      ],
60      'xcode_settings': {
61        'ARCHS': [
62          '$(ARCHS_STANDARD)',
63        ],
64        'VALID_ARCHS': [
65          'i386',
66          'armv7',
67        ],
68      },
69    },
70    {
71      'target_name': 'TestArch64Bits',
72      'product_name': 'TestArch64Bits',
73      'type': 'executable',
74      'mac_bundle': 1,
75      'sources': [
76        'TestApp/main.m',
77        'TestApp/only-compile-in-64-bits.m',
78      ],
79      'xcode_settings': {
80        'ARCHS': [
81          '$(ARCHS_STANDARD_INCLUDING_64_BIT)',
82        ],
83        'VALID_ARCHS': [
84          'x86_64',
85          'arm64',
86        ],
87      },
88    },
89    {
90      'target_name': 'TestMultiArchs',
91      'product_name': 'TestMultiArchs',
92      'type': 'executable',
93      'mac_bundle': 1,
94      'sources': [
95        'TestApp/main.m',
96      ],
97      'xcode_settings': {
98        'ARCHS': [
99          '$(ARCHS_STANDARD_INCLUDING_64_BIT)',
100        ],
101        'VALID_ARCHS': [
102          'x86_64',
103          'i386',
104          'arm64',
105          'armv7',
106        ],
107      }
108    },
109  ],
110}
111