| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 GYP_INCLUDE_LAST = Single(Path, required=False), | 61 GYP_INCLUDE_LAST = Single(Path, required=False), |
| 62 GYP_LINK_CONCURRENCY = Single(int, required=False), | 62 GYP_LINK_CONCURRENCY = Single(int, required=False), |
| 63 GYP_MSVS_VERSION = Single(basestring, required=False), | 63 GYP_MSVS_VERSION = Single(basestring, required=False), |
| 64 GYP_USE_SEPARATE_MSPDBSRV = Single(int, jsonish_fn=str, required=False), | 64 GYP_USE_SEPARATE_MSPDBSRV = Single(int, jsonish_fn=str, required=False), |
| 65 LLVM_DOWNLOAD_GOLD_PLUGIN = Single(int, required=False), | 65 LLVM_DOWNLOAD_GOLD_PLUGIN = Single(int, required=False), |
| 66 ), | 66 ), |
| 67 env = ConfigGroup( | 67 env = ConfigGroup( |
| 68 PATH = List(Path), | 68 PATH = List(Path), |
| 69 ADB_VENDOR_KEYS = Single(Path, required=False), | 69 ADB_VENDOR_KEYS = Single(Path, required=False), |
| 70 LLVM_FORCE_HEAD_REVISION = Single(basestring, required=False), | 70 LLVM_FORCE_HEAD_REVISION = Single(basestring, required=False), |
| 71 GOMA_STUBBY_PROXY_IP_ADDRESS = Single(basestring, required=False), |
| 71 ), | 72 ), |
| 72 project_generator = ConfigGroup( | 73 project_generator = ConfigGroup( |
| 73 tool = Single(basestring, empty_val='gyp'), | 74 tool = Single(basestring, empty_val='gyp'), |
| 74 args = Set(basestring), | 75 args = Set(basestring), |
| 75 ), | 76 ), |
| 76 build_dir = Single(Path), | 77 build_dir = Single(Path), |
| 77 cros_sdk = ConfigGroup( | 78 cros_sdk = ConfigGroup( |
| 78 external = Single(bool, empty_val=True, required=False), | 79 external = Single(bool, empty_val=True, required=False), |
| 79 args = List(basestring), | 80 args = List(basestring), |
| 80 ), | 81 ), |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 | 250 |
| 250 @config_ctx() | 251 @config_ctx() |
| 251 def msvs2013(c): | 252 def msvs2013(c): |
| 252 c.gyp_env.GYP_MSVS_VERSION = '2013' | 253 c.gyp_env.GYP_MSVS_VERSION = '2013' |
| 253 | 254 |
| 254 @config_ctx() | 255 @config_ctx() |
| 255 def goma_canary(c): | 256 def goma_canary(c): |
| 256 c.compile_py.goma_hermetic = 'error' | 257 c.compile_py.goma_hermetic = 'error' |
| 257 | 258 |
| 258 @config_ctx() | 259 @config_ctx() |
| 260 def goma_staging(c): |
| 261 c.env.GOMA_STUBBY_PROXY_IP_ADDRESS = 'sandbox.google.com' |
| 262 |
| 263 @config_ctx() |
| 259 def goma_hermetic_fallback(c): | 264 def goma_hermetic_fallback(c): |
| 260 c.compile_py.goma_hermetic = 'fallback' | 265 c.compile_py.goma_hermetic = 'fallback' |
| 261 | 266 |
| 262 @config_ctx() | 267 @config_ctx() |
| 263 def goma_linktest(c): | 268 def goma_linktest(c): |
| 264 c.compile_py.goma_enable_remote_link = True | 269 c.compile_py.goma_enable_remote_link = True |
| 265 c.compile_py.goma_store_local_run_output = True | 270 c.compile_py.goma_store_local_run_output = True |
| 266 | 271 |
| 267 @config_ctx() | 272 @config_ctx() |
| 268 def ninja_confirm_noop(c): | 273 def ninja_confirm_noop(c): |
| (...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 817 @config_ctx() | 822 @config_ctx() |
| 818 # TODO(erikchen): This config is used by bots that run tests, but don't compile. | 823 # TODO(erikchen): This config is used by bots that run tests, but don't compile. |
| 819 # If these bots are given the 10.10 SDK, we wouldn't need this special config. | 824 # If these bots are given the 10.10 SDK, we wouldn't need this special config. |
| 820 # http://crbug.com/515310 | 825 # http://crbug.com/515310 |
| 821 def chromium_mac_sdk_10_6(c): | 826 def chromium_mac_sdk_10_6(c): |
| 822 c.gyp_env.GYP_DEFINES['mac_sdk_min'] = '10.6' | 827 c.gyp_env.GYP_DEFINES['mac_sdk_min'] = '10.6' |
| 823 | 828 |
| 824 @config_ctx(includes=['chromium_clang']) | 829 @config_ctx(includes=['chromium_clang']) |
| 825 def cast_linux(c): | 830 def cast_linux(c): |
| 826 c.gyp_env.GYP_DEFINES['chromecast'] = 1 | 831 c.gyp_env.GYP_DEFINES['chromecast'] = 1 |
| OLD | NEW |