| 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 from slave.recipe_configs_util import config_item_context, ConfigGroup | 5 from slave.recipe_configs_util import config_item_context, ConfigGroup |
| 6 from slave.recipe_configs_util import DictConfig, ListConfig, SimpleConfig | 6 from slave.recipe_configs_util import DictConfig, ListConfig, SimpleConfig |
| 7 from slave.recipe_configs_util import StaticConfig | 7 from slave.recipe_configs_util import StaticConfig |
| 8 | 8 |
| 9 def BaseConfig(INTERNAL, REPO_NAME, REPO_URL, **_kwargs): | 9 def BaseConfig(INTERNAL, REPO_NAME, REPO_URL, **_kwargs): |
| 10 return ConfigGroup( | 10 return ConfigGroup( |
| 11 INTERNAL = StaticConfig(INTERNAL), | 11 INTERNAL = StaticConfig(INTERNAL), |
| 12 REPO_NAME = StaticConfig(REPO_NAME), | 12 REPO_NAME = StaticConfig(REPO_NAME), |
| 13 REPO_URL = StaticConfig(REPO_URL), | 13 REPO_URL = StaticConfig(REPO_URL), |
| 14 target_arch = SimpleConfig(basestring, required=False, empty_val=''), | 14 target_arch = SimpleConfig(basestring, required=False, empty_val=''), |
| 15 custom_vars = DictConfig(value_type=basestring), | |
| 16 extra_env = DictConfig(value_type=(basestring,int,list)), | 15 extra_env = DictConfig(value_type=(basestring,int,list)), |
| 17 run_findbugs = SimpleConfig(bool, required=False, empty_val=False), | 16 run_findbugs = SimpleConfig(bool, required=False, empty_val=False), |
| 18 run_lint = SimpleConfig(bool, required=False, empty_val=False), | 17 run_lint = SimpleConfig(bool, required=False, empty_val=False), |
| 19 run_checkdeps = SimpleConfig(bool, required=False, empty_val=False) | 18 run_checkdeps = SimpleConfig(bool, required=False, empty_val=False) |
| 20 ) | 19 ) |
| 21 | 20 |
| 22 | 21 |
| 23 VAR_TEST_MAP = { | 22 VAR_TEST_MAP = { |
| 24 'INTERNAL': [True, False], | 23 'INTERNAL': [True, False], |
| 25 'REPO_NAME': ['src', 'internal'], | 24 'REPO_NAME': ['src', 'internal'], |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 'ANDROID_SDK_BUILD_TOOLS_VERSION': 'android-KeyLimePie', | 59 'ANDROID_SDK_BUILD_TOOLS_VERSION': 'android-KeyLimePie', |
| 61 'ANDROID_SDK_ROOT': ['third_party', 'android_tools_internal', 'sdk'], | 60 'ANDROID_SDK_ROOT': ['third_party', 'android_tools_internal', 'sdk'], |
| 62 'ANDROID_SDK_VERSION': 'KeyLimePie' | 61 'ANDROID_SDK_VERSION': 'KeyLimePie' |
| 63 } | 62 } |
| 64 | 63 |
| 65 @config_ctx() | 64 @config_ctx() |
| 66 def try_builder(c): | 65 def try_builder(c): |
| 67 if c.INTERNAL: | 66 if c.INTERNAL: |
| 68 c.run_findbugs = True | 67 c.run_findbugs = True |
| 69 c.run_lint = True | 68 c.run_lint = True |
| OLD | NEW |