| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import BadConf | 5 from recipe_engine.config import BadConf |
| 6 | 6 |
| 7 import DEPS | 7 import DEPS |
| 8 CONFIG_CTX = DEPS['chromium'].CONFIG_CTX | 8 CONFIG_CTX = DEPS['chromium'].CONFIG_CTX |
| 9 from slave.recipe_config_types import Path | 9 from recipe_engine.config_types import Path |
| 10 | 10 |
| 11 | 11 |
| 12 @CONFIG_CTX(includes=['chromium']) | 12 @CONFIG_CTX(includes=['chromium']) |
| 13 def libyuv(c): | 13 def libyuv(c): |
| 14 _libyuv_common(c) | 14 _libyuv_common(c) |
| 15 | 15 |
| 16 c.runtests.memory_tests_runner = Path('[CHECKOUT]', 'tools', | 16 c.runtests.memory_tests_runner = Path('[CHECKOUT]', 'tools', |
| 17 'valgrind-libyuv', 'libyuv_tests', | 17 'valgrind-libyuv', 'libyuv_tests', |
| 18 platform_ext={'win': '.bat', | 18 platform_ext={'win': '.bat', |
| 19 'mac': '.sh', | 19 'mac': '.sh', |
| (...skipping 27 matching lines...) Expand all Loading... |
| 47 | 47 |
| 48 gyp_defs = c.gyp_env.GYP_DEFINES | 48 gyp_defs = c.gyp_env.GYP_DEFINES |
| 49 gyp_defs['OS'] = c.TARGET_PLATFORM | 49 gyp_defs['OS'] = c.TARGET_PLATFORM |
| 50 if c.TARGET_BITS == 64: | 50 if c.TARGET_BITS == 64: |
| 51 gyp_defs['target_subarch'] = 'arm64' | 51 gyp_defs['target_subarch'] = 'arm64' |
| 52 | 52 |
| 53 _libyuv_common(c) | 53 _libyuv_common(c) |
| 54 | 54 |
| 55 def _libyuv_common(c): | 55 def _libyuv_common(c): |
| 56 c.compile_py.default_targets = ['All'] | 56 c.compile_py.default_targets = ['All'] |
| OLD | NEW |