OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 import pipes | 5 import pipes |
6 | 6 |
7 from recipe_engine.config import config_item_context, ConfigGroup | 7 from recipe_engine.config import config_item_context, ConfigGroup |
8 from recipe_engine.config import Dict, List, Single, Static, Set, BadConf | 8 from recipe_engine.config import Dict, List, Single, Static, Set, BadConf |
9 from recipe_engine.config_types import Path | 9 from recipe_engine.config_types import Path |
10 | 10 |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 | 276 |
277 def _clang_common(c): | 277 def _clang_common(c): |
278 c.compile_py.compiler = 'clang' | 278 c.compile_py.compiler = 'clang' |
279 c.gyp_env.GYP_DEFINES['clang'] = 1 | 279 c.gyp_env.GYP_DEFINES['clang'] = 1 |
280 | 280 |
281 @config_ctx(group='compiler') | 281 @config_ctx(group='compiler') |
282 def clang(c): | 282 def clang(c): |
283 _clang_common(c) | 283 _clang_common(c) |
284 | 284 |
285 @config_ctx(group='compiler') | 285 @config_ctx(group='compiler') |
| 286 def gcc(c): |
| 287 c.gyp_env.GYP_DEFINES['clang'] = 0 |
| 288 |
| 289 @config_ctx(group='compiler') |
286 def default_compiler(c): | 290 def default_compiler(c): |
287 if c.TARGET_PLATFORM in ('mac', 'ios'): | 291 if c.TARGET_PLATFORM in ('mac', 'ios'): |
288 _clang_common(c) | 292 _clang_common(c) |
289 | 293 |
290 @config_ctx(deps=['compiler', 'builder'], group='distributor') | 294 @config_ctx(deps=['compiler', 'builder'], group='distributor') |
291 def goma(c): | 295 def goma(c): |
292 if c.compile_py.build_tool == 'vs': # pragma: no cover | 296 if c.compile_py.build_tool == 'vs': # pragma: no cover |
293 raise BadConf('goma doesn\'t work with msvs') | 297 raise BadConf('goma doesn\'t work with msvs') |
294 | 298 |
295 if not c.compile_py.compiler: | 299 if not c.compile_py.compiler: |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
789 @config_ctx() | 793 @config_ctx() |
790 # TODO(erikchen): This config is used by bots that run tests, but don't compile. | 794 # TODO(erikchen): This config is used by bots that run tests, but don't compile. |
791 # If these bots are given the 10.10 SDK, we wouldn't need this special config. | 795 # If these bots are given the 10.10 SDK, we wouldn't need this special config. |
792 # http://crbug.com/515310 | 796 # http://crbug.com/515310 |
793 def chromium_mac_sdk_10_6(c): | 797 def chromium_mac_sdk_10_6(c): |
794 c.gyp_env.GYP_DEFINES['mac_sdk_min'] = '10.6' | 798 c.gyp_env.GYP_DEFINES['mac_sdk_min'] = '10.6' |
795 | 799 |
796 @config_ctx(includes=['chromium_clang']) | 800 @config_ctx(includes=['chromium_clang']) |
797 def cast_linux(c): | 801 def cast_linux(c): |
798 c.gyp_env.GYP_DEFINES['chromecast'] = 1 | 802 c.gyp_env.GYP_DEFINES['chromecast'] = 1 |
OLD | NEW |