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

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

Issue 24737002: Add Paths as first-class types in configs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: 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 import types 5 import types
6 6
7 from slave.recipe_config import config_item_context, ConfigGroup, BadConf 7 from slave.recipe_config import config_item_context, ConfigGroup, BadConf
8 from slave.recipe_config import ConfigList, Dict, Single, Static, Set, List 8 from slave.recipe_config import ConfigList, Dict, Single, Static, Set, List
9 9
10 def BaseConfig(USE_MIRROR=True, GIT_MODE=False, CACHE_DIR=None, **_kwargs): 10 def BaseConfig(USE_MIRROR=True, GIT_MODE=False, CACHE_DIR=None, **_kwargs):
(...skipping 11 matching lines...) Expand all
22 custom_vars = Dict(value_type=basestring), 22 custom_vars = Dict(value_type=basestring),
23 safesync_url = Single(basestring, required=False), 23 safesync_url = Single(basestring, required=False),
24 24
25 revision = Single(basestring, required=False, hidden=True), 25 revision = Single(basestring, required=False, hidden=True),
26 ) 26 )
27 ), 27 ),
28 deps_os = Dict(value_type=basestring), 28 deps_os = Dict(value_type=basestring),
29 hooks = List(basestring), 29 hooks = List(basestring),
30 target_os = Set(basestring), 30 target_os = Set(basestring),
31 target_os_only = Single(bool, empty_val=False, required=False), 31 target_os_only = Single(bool, empty_val=False, required=False),
32 checkouts = List(basestring, hidden=True),
33 cache_dir = Static(cache_dir, hidden=False), 32 cache_dir = Static(cache_dir, hidden=False),
34 got_revision_mapping = Dict(hidden=True), 33 got_revision_mapping = Dict(hidden=True),
35 34
36 GIT_MODE = Static(bool(GIT_MODE)), 35 GIT_MODE = Static(bool(GIT_MODE)),
37 USE_MIRROR = Static(bool(USE_MIRROR)), 36 USE_MIRROR = Static(bool(USE_MIRROR)),
38 ) 37 )
39 38
40 VAR_TEST_MAP = { 39 VAR_TEST_MAP = {
41 'USE_MIRROR': (True, False), 40 'USE_MIRROR': (True, False),
42 'GIT_MODE': (True, False), 41 'GIT_MODE': (True, False),
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 196
198 @config_ctx(config_vars={'GIT_MODE': True}) 197 @config_ctx(config_vars={'GIT_MODE': True})
199 def tools_build(c): 198 def tools_build(c):
200 if not c.GIT_MODE: 199 if not c.GIT_MODE:
201 raise BadConf('tools_build only supports git') 200 raise BadConf('tools_build only supports git')
202 s = c.solutions.add() 201 s = c.solutions.add()
203 s.name = 'build' 202 s.name = 'build'
204 s.url = ChromiumGitURL(c, 'chromium', 'tools', 'build.git') 203 s.url = ChromiumGitURL(c, 'chromium', 'tools', 'build.git')
205 204
206 205
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698