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

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: once more... Created 7 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 | 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 Dict, Single, Static, Set, BadConf 6 from slave.recipe_config import Dict, Single, Static, Set, BadConf
7 7
8 # Because of the way that we use decorators, pylint can't figure out the proper 8 # Because of the way that we use decorators, pylint can't figure out the proper
9 # type signature of functions annotated with the @config_ctx decorator. 9 # type signature of functions annotated with the @config_ctx decorator.
10 # pylint: disable=E1123 10 # pylint: disable=E1123
11 11
12 HOST_PLATFORMS = ('linux', 'win', 'mac') 12 HOST_PLATFORMS = ('linux', 'win', 'mac')
13 TARGET_PLATFORMS = HOST_PLATFORMS + ('ios', 'android', 'chromeos') 13 TARGET_PLATFORMS = HOST_PLATFORMS + ('ios', 'android', 'chromeos')
14 HOST_TARGET_BITS = (32, 64) 14 HOST_TARGET_BITS = (32, 64)
15 HOST_ARCHS = ('intel',) 15 HOST_ARCHS = ('intel',)
16 TARGET_ARCHS = HOST_ARCHS + ('arm', 'mips') 16 TARGET_ARCHS = HOST_ARCHS + ('arm', 'mips')
(...skipping 194 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