| 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_config_types import Path | 5 from slave.recipe_config_types import Path |
| 6 from slave import recipe_config | 6 from slave import recipe_config |
| 7 | 7 |
| 8 from RECIPE_MODULES.chromium import CONFIG_CTX | 8 import DEPS |
| 9 CONFIG_CTX = DEPS['chromium'].CONFIG_CTX |
| 9 | 10 |
| 10 @CONFIG_CTX(includes=['android_common', 'ninja', 'static_library'], | 11 @CONFIG_CTX(includes=['android_common', 'ninja', 'static_library'], |
| 11 config_vars={'TARGET_ARCH': 'arm', 'TARGET_BITS': 32, | 12 config_vars={'TARGET_ARCH': 'arm', 'TARGET_BITS': 32, |
| 12 'BUILD_CONFIG': 'Debug'}) | 13 'BUILD_CONFIG': 'Debug'}) |
| 13 def base_config(c): | 14 def base_config(c): |
| 14 c.compile_py.default_targets=[] | 15 c.compile_py.default_targets=[] |
| 15 | 16 |
| 16 if c.HOST_PLATFORM != 'linux': # pragma: no cover | 17 if c.HOST_PLATFORM != 'linux': # pragma: no cover |
| 17 raise recipe_config.BadConf('Can only build android on linux.') | 18 raise recipe_config.BadConf('Can only build android on linux.') |
| 18 | 19 |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 gyp_defs['buildtype'] = 'Official' | 167 gyp_defs['buildtype'] = 'Official' |
| 167 | 168 |
| 168 @CONFIG_CTX(includes=['main_builder']) | 169 @CONFIG_CTX(includes=['main_builder']) |
| 169 def webview_perf(c): | 170 def webview_perf(c): |
| 170 gyp_defs = c.gyp_env.GYP_DEFINES | 171 gyp_defs = c.gyp_env.GYP_DEFINES |
| 171 gyp_defs['android_webview_telemetry_build'] = 1 | 172 gyp_defs['android_webview_telemetry_build'] = 1 |
| 172 | 173 |
| 173 @CONFIG_CTX(includes=['main_builder']) | 174 @CONFIG_CTX(includes=['main_builder']) |
| 174 def cast_builder(c): | 175 def cast_builder(c): |
| 175 c.gyp_env.GYP_DEFINES['chromecast'] = 1 | 176 c.gyp_env.GYP_DEFINES['chromecast'] = 1 |
| OLD | NEW |