Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Side by Side Diff: scripts/slave/recipe_modules/chromium/config.py

Issue 1412353002: WebRTC: Add Linux GCC bot. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Expectation Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 c.gyp_env.GYP_GENERATORS.add('xcode') 275 c.gyp_env.GYP_GENERATORS.add('xcode')
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()
Michael Achenbach 2015/10/20 06:54:18 If you put it into this file, maybe add group='com
kjellander_chromium 2015/10/20 07:43:23 I tried but then it failed with: BadConf: "no_clan
286 def no_clang(c):
287 c.gyp_env.GYP_DEFINES['clang'] = 0
288
285 @config_ctx(group='compiler') 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
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698