1# Copyright (c) 2011 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  'targets': [
9    {
10      'target_name': 'test_app',
11      'product_name': 'Test App Gyp',
12      'type': 'executable',
13      'product_extension': 'bundle',
14      'mac_bundle': 1,
15      'sources': [
16        'TestApp/main.m',
17      ],
18      'mac_bundle_resources': [
19        'TestApp/English.lproj/InfoPlist.strings',
20        'TestApp/English.lproj/MainMenu.xib',
21      ],
22      'link_settings': {
23        'libraries': [
24          '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
25          '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
26        ],
27      },
28      'xcode_settings': {
29        'OTHER_CFLAGS': [
30          '-fobjc-abi-version=2',
31        ],
32        'SDKROOT': 'iphonesimulator',  # -isysroot
33        'TARGETED_DEVICE_FAMILY': '1,2',
34        'INFOPLIST_FILE': 'TestApp/TestApp-Info.plist',
35        'IPHONEOS_DEPLOYMENT_TARGET': '4.2',
36        'CONFIGURATION_BUILD_DIR':'build/Default',
37      },
38    },
39    {
40      'target_name': 'sig_test',
41      'product_name': 'sig_test',
42      'type': 'executable',
43      'product_extension': 'bundle',
44      'mac_bundle': 1,
45      'sources': [
46        'TestApp/main.m',
47      ],
48      'mac_bundle_resources': [
49        'TestApp/English.lproj/InfoPlist.strings',
50        'TestApp/English.lproj/MainMenu.xib',
51      ],
52      'link_settings': {
53        'libraries': [
54          '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
55          '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
56        ],
57      },
58      'postbuilds': [
59        {
60          'postbuild_name': 'Verify no signature',
61          'action': [
62            'python',
63            'TestApp/check_no_signature.py'
64          ],
65        },
66      ],
67      'xcode_settings': {
68        'OTHER_CFLAGS': [
69          '-fobjc-abi-version=2',
70        ],
71        'SDKROOT': 'iphonesimulator',  # -isysroot
72        'CODE_SIGN_IDENTITY[sdk=iphoneos*]': 'iPhone Developer',
73        'INFOPLIST_FILE': 'TestApp/TestApp-Info.plist',
74        'IPHONEOS_DEPLOYMENT_TARGET': '4.2',
75        'CONFIGURATION_BUILD_DIR':'buildsig/Default',
76      },
77    },
78  ],
79}
80