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

Side by Side Diff: third_party/recipe_engine/recipe_modules/path/config.py

Issue 1241323004: Cross-repo recipe package system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Moved show_me_the_modules into recipe_engine Created 5 years, 4 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 recipe_engine.config import config_item_context, ConfigGroup, Dict, Static 5 from recipe_engine.config import config_item_context, ConfigGroup, Dict, Static
6 from recipe_engine.config_types import Path 6 from recipe_engine.config_types import Path
7 7
8 def BaseConfig(CURRENT_WORKING_DIR, TEMP_DIR, **_kwargs): 8 def BaseConfig(CURRENT_WORKING_DIR, TEMP_DIR, **_kwargs):
9 assert CURRENT_WORKING_DIR[0].endswith(('\\', '/')) 9 assert CURRENT_WORKING_DIR[0].endswith(('\\', '/'))
10 assert TEMP_DIR[0].endswith(('\\', '/')) 10 assert TEMP_DIR[0].endswith(('\\', '/'))
(...skipping 27 matching lines...) Expand all
38 c.base_paths['slave_build'] = c.CURRENT_WORKING_DIR 38 c.base_paths['slave_build'] = c.CURRENT_WORKING_DIR
39 for token in ('build_internal', 'build', 'depot_tools'): 39 for token in ('build_internal', 'build', 'depot_tools'):
40 c.base_paths[token] = c.base_paths['root'] + (token,) 40 c.base_paths[token] = c.base_paths['root'] + (token,)
41 c.dynamic_paths['checkout'] = None 41 c.dynamic_paths['checkout'] = None
42 42
43 @config_ctx(includes=['buildbot']) 43 @config_ctx(includes=['buildbot'])
44 def swarming(c): 44 def swarming(c):
45 c.base_paths['slave_build'] = ( 45 c.base_paths['slave_build'] = (
46 c.CURRENT_WORKING_DIR[:1] + 46 c.CURRENT_WORKING_DIR[:1] +
47 ('b', 'fake_build', 'slave', 'fake_slave', 'build')) 47 ('b', 'fake_build', 'slave', 'fake_slave', 'build'))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698