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