OLD | NEW |
1 # Copyright (c) 2011 Google Inc. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 { | 4 { |
5 'target_defaults': { | |
6 'configurations': { | |
7 'Debug-iphoneos': { | |
8 'xcode_settings': { | |
9 'ARCHS': [ 'armv7' ], | |
10 'SDKROOT': 'iphoneos', # -isysroot | |
11 }, | |
12 }, | |
13 'Debug-iphonesimulator': { | |
14 'xcode_settings': { | |
15 'ARCHS': [ 'i386' ], | |
16 'SDKROOT': 'iphonesimulator', # -isysroot | |
17 }, | |
18 }, | |
19 }, | |
20 }, | |
21 'make_global_settings': [ | 5 'make_global_settings': [ |
22 ['CC', '/usr/bin/clang'], | 6 ['CC', '/usr/bin/clang'], |
23 ], | 7 ], |
24 'targets': [ | 8 'targets': [ |
25 { | 9 { |
26 'target_name': 'test_app', | 10 'target_name': 'test_app', |
27 'product_name': 'Test App Gyp', | 11 'product_name': 'Test App Gyp', |
28 'type': 'executable', | 12 'type': 'executable', |
29 'product_extension': 'bundle', | 13 'product_extension': 'bundle', |
30 'mac_bundle': 1, | 14 'mac_bundle': 1, |
31 'sources': [ | 15 'sources': [ |
32 'TestApp/main.m', | 16 'TestApp/main.m', |
33 ], | 17 ], |
34 'mac_bundle_resources': [ | 18 'mac_bundle_resources': [ |
35 'TestApp/English.lproj/InfoPlist.strings', | 19 'TestApp/English.lproj/InfoPlist.strings', |
36 'TestApp/English.lproj/MainMenu.xib', | 20 'TestApp/English.lproj/MainMenu.xib', |
37 ], | 21 ], |
38 'link_settings': { | 22 'link_settings': { |
39 'libraries': [ | 23 'libraries': [ |
40 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | 24 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
41 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework', | 25 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework', |
42 ], | 26 ], |
43 }, | 27 }, |
44 'xcode_settings': { | 28 'xcode_settings': { |
45 'OTHER_CFLAGS': [ | 29 'OTHER_CFLAGS': [ |
46 '-fobjc-abi-version=2', | 30 '-fobjc-abi-version=2', |
47 ], | 31 ], |
| 32 'SDKROOT': 'iphonesimulator', # -isysroot |
48 'INFOPLIST_FILE': 'TestApp/TestApp-Info.plist', | 33 'INFOPLIST_FILE': 'TestApp/TestApp-Info.plist', |
49 'IPHONEOS_DEPLOYMENT_TARGET': '4.2', | 34 'IPHONEOS_DEPLOYMENT_TARGET': '4.2', |
50 }, | 35 }, |
51 }, | 36 }, |
52 ], | 37 ], |
53 } | 38 } |
OLD | NEW |