| 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 pipes | 5 import pipes |
| 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 Dict, List, Single, Static, Set, BadConf | 8 from recipe_engine.config import Dict, List, Single, Static, Set, BadConf |
| 9 from recipe_engine.config_types import Path | 9 from recipe_engine.config_types import Path |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 BUILD_CONFIG, TARGET_CROS_BOARD, | 32 BUILD_CONFIG, TARGET_CROS_BOARD, |
| 33 BUILD_PATH, CHECKOUT_PATH, **_kwargs): | 33 BUILD_PATH, CHECKOUT_PATH, **_kwargs): |
| 34 equal_fn = lambda tup: ('%s=%s' % (tup[0], pipes.quote(str(tup[1])))) | 34 equal_fn = lambda tup: ('%s=%s' % (tup[0], pipes.quote(str(tup[1])))) |
| 35 return ConfigGroup( | 35 return ConfigGroup( |
| 36 compile_py = ConfigGroup( | 36 compile_py = ConfigGroup( |
| 37 default_targets = Set(basestring), | 37 default_targets = Set(basestring), |
| 38 build_args = Single(basestring, required=False), | 38 build_args = Single(basestring, required=False), |
| 39 compiler = Single(basestring, required=False), | 39 compiler = Single(basestring, required=False), |
| 40 mode = Single(basestring, required=False), | 40 mode = Single(basestring, required=False), |
| 41 goma_dir = Single(Path, required=False), | 41 goma_dir = Single(Path, required=False), |
| 42 goma_failfast = Single(bool, empty_val=False, required=False), | 42 goma_canary = Single(bool, empty_val=False, required=False), |
| 43 goma_hermetic = Single(basestring, required=False), | 43 goma_hermetic = Single(basestring, required=False), |
| 44 goma_enable_remote_link = Single(bool, empty_val=False, required=False), | 44 goma_enable_remote_link = Single(bool, empty_val=False, required=False), |
| 45 goma_store_local_run_output = Single(bool, empty_val=False, required=False
), | 45 goma_store_local_run_output = Single(bool, empty_val=False, required=False
), |
| 46 xcode_sdk = Single(basestring, required=False), | 46 xcode_sdk = Single(basestring, required=False), |
| 47 ninja_confirm_noop = Single(bool, empty_val=False, required=False), | 47 ninja_confirm_noop = Single(bool, empty_val=False, required=False), |
| 48 set_build_data_dir = Single(bool, empty_val=False, required=False), | 48 set_build_data_dir = Single(bool, empty_val=False, required=False), |
| 49 ), | 49 ), |
| 50 runtest_py = ConfigGroup( | 50 runtest_py = ConfigGroup( |
| 51 src_side = Single(bool), | 51 src_side = Single(bool), |
| 52 ), | 52 ), |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 @config_ctx() | 241 @config_ctx() |
| 242 def msvs2013(c): | 242 def msvs2013(c): |
| 243 c.gyp_env.GYP_MSVS_VERSION = '2013' | 243 c.gyp_env.GYP_MSVS_VERSION = '2013' |
| 244 | 244 |
| 245 @config_ctx() | 245 @config_ctx() |
| 246 def msvs2015(c): | 246 def msvs2015(c): |
| 247 c.gyp_env.GYP_MSVS_VERSION = '2015' | 247 c.gyp_env.GYP_MSVS_VERSION = '2015' |
| 248 | 248 |
| 249 @config_ctx() | 249 @config_ctx() |
| 250 def goma_canary(c): | 250 def goma_canary(c): |
| 251 c.compile_py.goma_failfast = True | 251 c.compile_py.goma_canary = True |
| 252 c.compile_py.goma_hermetic = 'error' | 252 c.compile_py.goma_hermetic = 'error' |
| 253 | 253 |
| 254 @config_ctx() | 254 @config_ctx() |
| 255 def goma_staging(c): | 255 def goma_staging(c): |
| 256 c.compile_py.goma_failfast = True | |
| 257 c.env.GOMA_STUBBY_PROXY_IP_ADDRESS = 'sandbox.google.com' | 256 c.env.GOMA_STUBBY_PROXY_IP_ADDRESS = 'sandbox.google.com' |
| 258 | 257 |
| 259 @config_ctx() | 258 @config_ctx() |
| 260 def goma_hermetic_fallback(c): | 259 def goma_hermetic_fallback(c): |
| 261 c.compile_py.goma_hermetic = 'fallback' | 260 c.compile_py.goma_hermetic = 'fallback' |
| 262 | 261 |
| 263 @config_ctx() | 262 @config_ctx() |
| 264 def goma_linktest(c): | 263 def goma_linktest(c): |
| 265 c.compile_py.goma_enable_remote_link = True | 264 c.compile_py.goma_enable_remote_link = True |
| 266 c.compile_py.goma_store_local_run_output = True | 265 c.compile_py.goma_store_local_run_output = True |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 799 c.gyp_env.GYP_DEFINES['internal_gles2_conform_tests'] = 1 | 798 c.gyp_env.GYP_DEFINES['internal_gles2_conform_tests'] = 1 |
| 800 | 799 |
| 801 @config_ctx() | 800 @config_ctx() |
| 802 def build_angle_deqp_tests(c): | 801 def build_angle_deqp_tests(c): |
| 803 c.gyp_env.GYP_DEFINES['build_angle_deqp_tests'] = 1 | 802 c.gyp_env.GYP_DEFINES['build_angle_deqp_tests'] = 1 |
| 804 | 803 |
| 805 @config_ctx() | 804 @config_ctx() |
| 806 def force_mac_toolchain(c): | 805 def force_mac_toolchain(c): |
| 807 c.env.FORCE_MAC_TOOLCHAIN = 1 | 806 c.env.FORCE_MAC_TOOLCHAIN = 1 |
| 808 c.gyp_env.FORCE_MAC_TOOLCHAIN = 1 | 807 c.gyp_env.FORCE_MAC_TOOLCHAIN = 1 |
| OLD | NEW |