| 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 recipe_engine.config_types import Path | 5 from recipe_engine.config_types import Path |
| 6 from recipe_engine import config as recipe_config | 6 from recipe_engine import config as recipe_config |
| 7 | 7 |
| 8 import DEPS | 8 import DEPS |
| 9 CONFIG_CTX = DEPS['chromium'].CONFIG_CTX | 9 CONFIG_CTX = DEPS['chromium'].CONFIG_CTX |
| 10 | 10 |
| 11 @CONFIG_CTX(includes=['android_common', 'ninja', 'static_library'], | 11 @CONFIG_CTX(includes=['android_common', 'ninja', 'ninja_confirm_noop', |
| 12 'static_library'], |
| 12 config_vars={'TARGET_ARCH': 'arm', 'TARGET_BITS': 32, | 13 config_vars={'TARGET_ARCH': 'arm', 'TARGET_BITS': 32, |
| 13 'TARGET_PLATFORM': 'android', 'BUILD_CONFIG': 'Debug'}) | 14 'TARGET_PLATFORM': 'android', 'BUILD_CONFIG': 'Debug'}) |
| 14 def base_config(c): | 15 def base_config(c): |
| 15 c.compile_py.default_targets=[] | 16 c.compile_py.default_targets=[] |
| 16 | 17 |
| 17 if c.HOST_PLATFORM != 'linux': # pragma: no cover | 18 if c.HOST_PLATFORM != 'linux': # pragma: no cover |
| 18 raise recipe_config.BadConf('Can only build android on linux.') | 19 raise recipe_config.BadConf('Can only build android on linux.') |
| 19 | 20 |
| 20 @CONFIG_CTX(includes=['base_config', 'default_compiler', 'goma']) | 21 @CONFIG_CTX(includes=['base_config', 'default_compiler', 'goma']) |
| 21 def main_builder(c): | 22 def main_builder(c): |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 c.gyp_env.GYP_DEFINES['chromecast'] = 1 | 203 c.gyp_env.GYP_DEFINES['chromecast'] = 1 |
| 203 | 204 |
| 204 @CONFIG_CTX() | 205 @CONFIG_CTX() |
| 205 def disable_neon(c): # pragma: no cover | 206 def disable_neon(c): # pragma: no cover |
| 206 c.gn_args.append('arm_use_neon=false') | 207 c.gn_args.append('arm_use_neon=false') |
| 207 c.gyp_env.GYP_DEFINES['arm_neon'] = 0 | 208 c.gyp_env.GYP_DEFINES['arm_neon'] = 0 |
| 208 | 209 |
| 209 @CONFIG_CTX() | 210 @CONFIG_CTX() |
| 210 def errorprone(c): | 211 def errorprone(c): |
| 211 c.gyp_env.GYP_DEFINES['enable_errorprone'] = 1 | 212 c.gyp_env.GYP_DEFINES['enable_errorprone'] = 1 |
| OLD | NEW |