OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. 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 { | 5 { |
6 'conditions': [ | 6 'conditions': [ |
7 ['OS!="ios" or "<(GENERATOR)"!="xcode" or "<(GENERATOR_FLAVOR)"=="ninja"', { | 7 ['OS!="ios" or "<(GENERATOR)"!="xcode" or "<(GENERATOR_FLAVOR)"=="ninja"', { |
Nico
2015/06/02 03:30:06
Wait this block isn't even used with xcode. How ca
justincohen
2015/06/02 17:05:58
xcode sub's out to ninja for this.
| |
8 'targets': [ | 8 'targets': [ |
9 { | 9 { |
10 'target_name': 'iossim', | 10 'target_name': 'iossim', |
11 'toolsets': ['host'], | 11 'toolsets': ['host'], |
12 'type': 'executable', | 12 'type': 'executable', |
13 'variables': { | 13 'variables': { |
14 'developer_dir': '<!(xcode-select -print-path)', | 14 'developer_dir': '<!(xcode-select -print-path)', |
15 # TODO(lliabraa): Once all builders are on Xcode 6 this variable can | 15 # TODO(lliabraa): Once all builders are on Xcode 6 this variable can |
16 # be removed and the actions gated by this variable can be run by | 16 # be removed and the actions gated by this variable can be run by |
17 # default (crbug.com/385030). | 17 # default (crbug.com/385030). |
18 'xcode_version': '<!(xcodebuild -version | grep Xcode | awk \'{print $2}\')', | 18 'xcode_version': '<!(xcodebuild -version | grep Xcode | awk \'{print $2}\')', |
19 }, | 19 }, |
20 'conditions': [ | 20 'conditions': [ |
21 ['xcode_version>="6.0"', { | 21 ['xcode_version>="6.0"', { |
22 'variables': { | 22 'variables': { |
23 'iphone_sim_path': '<(developer_dir)/../SharedFrameworks', | 23 'iphone_sim_path': '<(developer_dir)/../SharedFrameworks', |
24 }, | 24 }, |
25 'defines': [ | 25 'defines': [ |
26 'IOSSIM_USE_XCODE_6', | 26 'IOSSIM_USE_XCODE_6', |
27 ], | 27 ], |
28 'xcode_settings': { | |
29 # The CoreSimulator.h file generated by class-dump defines a | |
30 # property of type |NSString*| and a setter for the property | |
31 # that takes a parameter of type |id|. This type mismatch causes | |
32 # a compiler warning, so turn off -Werror. | |
33 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', | |
34 }, | |
35 'actions': [ | 28 'actions': [ |
36 { | 29 { |
37 'action_name': 'generate_dvt_foundation_header', | 30 'action_name': 'generate_dvt_foundation_header', |
38 'inputs': [ | 31 'inputs': [ |
39 '<(iphone_sim_path)/DVTFoundation.framework/Versions/Current /DVTFoundation', | 32 '<(iphone_sim_path)/DVTFoundation.framework/Versions/Current /DVTFoundation', |
40 '<(PRODUCT_DIR)/class-dump', | 33 '<(PRODUCT_DIR)/class-dump', |
41 ], | 34 ], |
42 'outputs': [ | 35 'outputs': [ |
43 '<(INTERMEDIATE_DIR)/iossim/DVTFoundation.h' | 36 '<(INTERMEDIATE_DIR)/iossim/DVTFoundation.h' |
44 ], | 37 ], |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
76 'message': 'Generating CoreSimulator.h', | 69 'message': 'Generating CoreSimulator.h', |
77 }, | 70 }, |
78 ], # actions | 71 ], # actions |
79 }, { # else: xcode_version<"6.0" | 72 }, { # else: xcode_version<"6.0" |
80 'variables': { | 73 'variables': { |
81 'iphone_sim_path': '<(developer_dir)/Platforms/iPhoneSimulator.p latform/Developer/Library/PrivateFrameworks', | 74 'iphone_sim_path': '<(developer_dir)/Platforms/iPhoneSimulator.p latform/Developer/Library/PrivateFrameworks', |
82 }, | 75 }, |
83 }], # xcode_version | 76 }], # xcode_version |
84 ], # conditions | 77 ], # conditions |
85 'dependencies': [ | 78 'dependencies': [ |
86 'third_party/class-dump/class-dump.gyp:class-dump#host', | 79 '<(DEPTH)/third_party/class-dump/class-dump.gyp:class-dump#host', |
87 ], | 80 ], |
88 'include_dirs': [ | 81 'include_dirs': [ |
89 '<(INTERMEDIATE_DIR)/iossim', | 82 '<(INTERMEDIATE_DIR)/iossim', |
90 ], | 83 ], |
91 'sources': [ | 84 'sources': [ |
92 'iossim.mm', | 85 'iossim.mm', |
93 '<(INTERMEDIATE_DIR)/iossim/iPhoneSimulatorRemoteClient.h', | 86 '<(INTERMEDIATE_DIR)/iossim/iPhoneSimulatorRemoteClient.h', |
94 ], | 87 ], |
95 'libraries': [ | 88 'libraries': [ |
96 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | 89 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
(...skipping 14 matching lines...) Expand all Loading... | |
111 # write the output to the file specified as the second argument. | 104 # write the output to the file specified as the second argument. |
112 # -I sorts classes, categories, and protocols by inheritance. | 105 # -I sorts classes, categories, and protocols by inheritance. |
113 # -C <regex> only displays classes matching regular expression. | 106 # -C <regex> only displays classes matching regular expression. |
114 './redirect-stdout.sh', | 107 './redirect-stdout.sh', |
115 '<(PRODUCT_DIR)/class-dump -I -CiPhoneSimulator <(iphone_sim_pat h)/DVTiPhoneSimulatorRemoteClient.framework', | 108 '<(PRODUCT_DIR)/class-dump -I -CiPhoneSimulator <(iphone_sim_pat h)/DVTiPhoneSimulatorRemoteClient.framework', |
116 '<(INTERMEDIATE_DIR)/iossim/DVTiPhoneSimulatorRemoteClient.h', | 109 '<(INTERMEDIATE_DIR)/iossim/DVTiPhoneSimulatorRemoteClient.h', |
117 ], | 110 ], |
118 'message': 'Generating DVTiPhoneSimulatorRemoteClient.h', | 111 'message': 'Generating DVTiPhoneSimulatorRemoteClient.h', |
119 }, | 112 }, |
120 ], # actions | 113 ], # actions |
114 'target_conditions': [ | |
115 ['_toolset=="host"', { | |
116 'xcode_settings': { | |
117 'MACOSX_DEPLOYMENT_TARGET': '10.8', | |
118 } | |
119 }] | |
120 ], | |
Nico
2015/06/01 22:31:21
Do you need this block when you set the same thing
justincohen
2015/06/02 01:20:40
GYP confuses me. If I don't include the block abo
Nico
2015/06/02 03:30:06
Ah, I guess the line below initializes it to 10.8,
justincohen
2015/06/02 17:05:58
mac_deployment_target did the trick!
| |
121 'xcode_settings': { | 121 'xcode_settings': { |
122 'ARCHS': ['x86_64'], | 122 'ARCHS': ['x86_64'], |
123 'WARNING_CFLAGS': [ | 123 'MACOSX_DEPLOYMENT_TARGET': '10.8', |
124 '-Wno-objc-property-no-attribute', | |
125 ], | |
126 }, | 124 }, |
127 }, | 125 }, |
128 ], | 126 ], |
129 }, { # else, OS=="ios" and "<(GENERATOR)"=="xcode" and "<(GENERATOR_FLAVOR) "!="ninja" | 127 }, { # else, OS=="ios" and "<(GENERATOR)"=="xcode" and "<(GENERATOR_FLAVOR) "!="ninja" |
130 'variables': { | 128 'variables': { |
131 'ninja_output_dir': 'ninja-iossim', | 129 'ninja_output_dir': 'ninja-iossim', |
132 'ninja_product_dir': | 130 'ninja_product_dir': |
133 '$(SYMROOT)/<(ninja_output_dir)/<(CONFIGURATION_NAME)', | 131 '$(SYMROOT)/<(ninja_output_dir)/<(CONFIGURATION_NAME)', |
134 }, | 132 }, |
135 'targets': [ | 133 'targets': [ |
(...skipping 18 matching lines...) Expand all Loading... | |
154 'iossim', | 152 'iossim', |
155 ], | 153 ], |
156 'message': 'Generating the iossim executable', | 154 'message': 'Generating the iossim executable', |
157 }, | 155 }, |
158 ], | 156 ], |
159 }, | 157 }, |
160 ], | 158 ], |
161 }], | 159 }], |
162 ], | 160 ], |
163 } | 161 } |
OLD | NEW |