| OLD | NEW |
| 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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 | 310 |
| 311 @config_ctx(config_vars={'GIT_MODE': True}) | 311 @config_ctx(config_vars={'GIT_MODE': True}) |
| 312 def tools_build(c): | 312 def tools_build(c): |
| 313 if not c.GIT_MODE: | 313 if not c.GIT_MODE: |
| 314 raise BadConf('tools_build only supports git') | 314 raise BadConf('tools_build only supports git') |
| 315 s = c.solutions.add() | 315 s = c.solutions.add() |
| 316 s.name = 'build' | 316 s.name = 'build' |
| 317 s.url = ChromiumGitURL(c, 'chromium', 'tools', 'build.git') | 317 s.url = ChromiumGitURL(c, 'chromium', 'tools', 'build.git') |
| 318 m = c.got_revision_mapping | 318 m = c.got_revision_mapping |
| 319 m['build'] = 'got_revision' | 319 m['build'] = 'got_revision' |
| 320 |
| 321 @config_ctx(includes=['chromium', 'chrome_internal']) |
| 322 def perf(c): |
| 323 s = c.solutions[0] |
| 324 s.custom_vars['llvm_url'] = 'svn://svn-mirror.golo.chromium.org/llvm-project' |
| 325 # These repos are large and the perf bots don't need them. |
| 326 s.custom_deps.update({ |
| 327 'src/chrome/test/data/pdf_private': None, |
| 328 'src/third_party/WebKit/LayoutTests': None, |
| 329 'src/tools/valgrind': None, |
| 330 }) |
| 331 s.managed = False |
| 332 needed_components_internal = [ |
| 333 "src/data/page_cycler", |
| 334 ] |
| 335 for key in needed_components_internal: |
| 336 del c.solutions[1].custom_deps[key] |
| 337 c.solutions[1].managed = False |
| OLD | NEW |