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)"=="ninja"', { | 7 ['OS!="ios" or "<(GENERATOR)"=="ninja"', { |
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', | |
TVL
2014/08/22 18:27:35
if you want a smaller hammer, can you wrap the imp
lliabraa
2014/08/25 13:14:04
I can't find the -W flag for this warning; I think
| |
34 }, | |
28 'actions': [ | 35 'actions': [ |
29 { | 36 { |
30 'action_name': 'generate_dvt_foundation_header', | 37 'action_name': 'generate_dvt_foundation_header', |
31 'inputs': [ | 38 'inputs': [ |
32 '<(iphone_sim_path)/DVTFoundation.framework/Versions/Current /DVTFoundation', | 39 '<(iphone_sim_path)/DVTFoundation.framework/Versions/Current /DVTFoundation', |
33 '<(PRODUCT_DIR)/class-dump', | 40 '<(PRODUCT_DIR)/class-dump', |
34 ], | 41 ], |
35 'outputs': [ | 42 'outputs': [ |
36 '<(INTERMEDIATE_DIR)/iossim/DVTFoundation.h' | 43 '<(INTERMEDIATE_DIR)/iossim/DVTFoundation.h' |
37 ], | 44 ], |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
146 'iossim', | 153 'iossim', |
147 ], | 154 ], |
148 'message': 'Generating the iossim executable', | 155 'message': 'Generating the iossim executable', |
149 }, | 156 }, |
150 ], | 157 ], |
151 }, | 158 }, |
152 ], | 159 ], |
153 }], | 160 }], |
154 ], | 161 ], |
155 } | 162 } |
OLD | NEW |