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

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

Issue 23889036: Refactor the way that TestApi works so that it is actually useful. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Yeeeeaaaahhhhhh! Created 7 years, 3 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 | Annotate | Revision Log
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 from slave.recipe_configs_util import config_item_context, ConfigGroup 5 from slave.recipe_config import config_item_context, ConfigGroup
6 from slave.recipe_configs_util import DictConfig, SimpleConfig, StaticConfig 6 from slave.recipe_config import DictConfig, SimpleConfig, StaticConfig
7 from slave.recipe_configs_util import SetConfig, BadConf 7 from slave.recipe_config import SetConfig, BadConf
8 8
9 # Because of the way that we use decorators, pylint can't figure out the proper 9 # Because of the way that we use decorators, pylint can't figure out the proper
10 # type signature of functions annotated with the @config_ctx decorator. 10 # type signature of functions annotated with the @config_ctx decorator.
11 # pylint: disable=E1123 11 # pylint: disable=E1123
12 12
13 HOST_PLATFORMS = ('linux', 'win', 'mac') 13 HOST_PLATFORMS = ('linux', 'win', 'mac')
14 TARGET_PLATFORMS = HOST_PLATFORMS + ('ios', 'android', 'chromeos') 14 TARGET_PLATFORMS = HOST_PLATFORMS + ('ios', 'android', 'chromeos')
15 HOST_TARGET_BITS = (32, 64) 15 HOST_TARGET_BITS = (32, 64)
16 HOST_ARCHS = ('intel',) 16 HOST_ARCHS = ('intel',)
17 TARGET_ARCHS = HOST_ARCHS + ('arm', 'mips') 17 TARGET_ARCHS = HOST_ARCHS + ('arm', 'mips')
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 @config_ctx(includes=['ninja', 'default_compiler', 'goma']) 211 @config_ctx(includes=['ninja', 'default_compiler', 'goma'])
212 def chromium(c): 212 def chromium(c):
213 c.compile_py.default_targets = ['All', 'chromium_builder_tests'] 213 c.compile_py.default_targets = ['All', 'chromium_builder_tests']
214 214
215 @config_ctx(includes=['chromium']) 215 @config_ctx(includes=['chromium'])
216 def blink(c): 216 def blink(c):
217 c.compile_py.default_targets = ['all_webkit'] 217 c.compile_py.default_targets = ['all_webkit']
218 if c.TARGET_PLATFORM == 'win': 218 if c.TARGET_PLATFORM == 'win':
219 c.gyp_env.GYP_DEFINES['use_ash'] = 0 219 c.gyp_env.GYP_DEFINES['use_ash'] = 0
220 c.gyp_env.GYP_DEFINES['use_aura'] = 0 220 c.gyp_env.GYP_DEFINES['use_aura'] = 0
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698