| 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 recipe_engine.config import config_item_context, ConfigGroup | 7 from recipe_engine.config import config_item_context, ConfigGroup |
| 8 from recipe_engine.config import ConfigList, Dict, List, Single, Static | 8 from recipe_engine.config import ConfigList, Dict, List, Single, Static |
| 9 from recipe_engine.config_types import Path | 9 from recipe_engine.config_types import Path |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 run_tree_truth = Single(bool, required=False, empty_val=True), | 22 run_tree_truth = Single(bool, required=False, empty_val=True), |
| 23 deps_file = Single(basestring, required=False, empty_val='.DEPS.git'), | 23 deps_file = Single(basestring, required=False, empty_val='.DEPS.git'), |
| 24 internal_dir_name = Single(basestring, required=False), | 24 internal_dir_name = Single(basestring, required=False), |
| 25 # deps_dir: where to checkout the gclient deps file | 25 # deps_dir: where to checkout the gclient deps file |
| 26 deps_dir = Single(basestring, required=False, empty_val=REPO_NAME), | 26 deps_dir = Single(basestring, required=False, empty_val=REPO_NAME), |
| 27 managed = Single(bool, required=False, empty_val=True), | 27 managed = Single(bool, required=False, empty_val=True), |
| 28 extra_deploy_opts = List(inner_type=basestring), | 28 extra_deploy_opts = List(inner_type=basestring), |
| 29 tests = List(inner_type=basestring), | 29 tests = List(inner_type=basestring), |
| 30 cr_build_android = Static(Path('[CHECKOUT]', 'build', 'android')), | 30 cr_build_android = Static(Path('[CHECKOUT]', 'build', 'android')), |
| 31 test_runner = Single(Path), | 31 test_runner = Single(Path), |
| 32 default_logcat_dir = Single(Path), | |
| 33 gclient_custom_deps = Dict(value_type=(basestring, types.NoneType)), | 32 gclient_custom_deps = Dict(value_type=(basestring, types.NoneType)), |
| 34 channel = Single(basestring, empty_val='chrome'), | 33 channel = Single(basestring, empty_val='chrome'), |
| 35 gclient_custom_vars = Dict(value_type=(basestring, types.NoneType)), | 34 gclient_custom_vars = Dict(value_type=(basestring, types.NoneType)), |
| 36 coverage = Single(bool, required=False, empty_val=False), | 35 coverage = Single(bool, required=False, empty_val=False), |
| 37 chrome_specific_wipe = Single(bool, required=False, empty_val=False), | 36 chrome_specific_wipe = Single(bool, required=False, empty_val=False), |
| 38 incremental_coverage = Single(bool, required=False, empty_val=False), | 37 incremental_coverage = Single(bool, required=False, empty_val=False), |
| 39 env = ConfigGroup( | 38 env = ConfigGroup( |
| 40 LLVM_FORCE_HEAD_REVISION = Single(basestring, required=False), | 39 LLVM_FORCE_HEAD_REVISION = Single(basestring, required=False), |
| 41 ), | 40 ), |
| 42 gce_setup = Single(bool, required=False, empty_val=False), | 41 gce_setup = Single(bool, required=False, empty_val=False), |
| 43 ) | 42 ) |
| 44 | 43 |
| 45 | 44 |
| 46 config_ctx = config_item_context(BaseConfig) | 45 config_ctx = config_item_context(BaseConfig) |
| 47 | 46 |
| 48 @config_ctx(is_root=True) | 47 @config_ctx(is_root=True) |
| 49 def base_config(c): | 48 def base_config(c): |
| 50 c.default_logcat_dir = Path('[CHECKOUT]', 'out', 'logcat_dir') | |
| 51 c.internal_dir_name = 'clank' | 49 c.internal_dir_name = 'clank' |
| 52 c.test_runner = Path('[CHECKOUT]', 'build', 'android', 'test_runner.py') | 50 c.test_runner = Path('[CHECKOUT]', 'build', 'android', 'test_runner.py') |
| 53 | 51 |
| 54 @config_ctx() | 52 @config_ctx() |
| 55 def main_builder(c): | 53 def main_builder(c): |
| 56 pass | 54 pass |
| 57 | 55 |
| 58 @config_ctx() | 56 @config_ctx() |
| 59 def clang_builder(c): | 57 def clang_builder(c): |
| 60 pass | 58 pass |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 def webview_perf(c): | 197 def webview_perf(c): |
| 200 pass | 198 pass |
| 201 | 199 |
| 202 @config_ctx() | 200 @config_ctx() |
| 203 def cast_builder(c): | 201 def cast_builder(c): |
| 204 pass | 202 pass |
| 205 | 203 |
| 206 @config_ctx(includes=['x86_builder']) | 204 @config_ctx(includes=['x86_builder']) |
| 207 def gce_builder(c): | 205 def gce_builder(c): |
| 208 c.gce_setup = True | 206 c.gce_setup = True |
| OLD | NEW |