| OLD | NEW |
| (Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 from slave.recipe_config import BadConf |
| 6 |
| 7 from RECIPE_MODULES.chromium import CONFIG_CTX |
| 8 |
| 9 |
| 10 SUPPORTED_TARGET_ARCHS = ('intel', 'arm') |
| 11 |
| 12 @CONFIG_CTX(includes=['android']) |
| 13 def webrtc_android_apk_try_builder(c): |
| 14 if c.TARGET_PLATFORM != 'android': |
| 15 raise BadConf('Only "android" platform is supported (got: "%s")' % |
| 16 c.TARGET_PLATFORM) |
| 17 if c.TARGET_ARCH not in SUPPORTED_TARGET_ARCHS: |
| 18 raise BadConf('Only "%s" architectures are supported (got: "%s")' % |
| 19 (','.join(SUPPORTED_TARGET_ARCHS), c.TARGET_ARCH)) |
| 20 |
| 21 c.compile_py.default_targets = ['android_builder_webrtc'] |
| 22 c.gyp_env.GYP_GENERATOR_FLAGS['default_target'] = 'android_builder_webrtc' |
| 23 c.gyp_env.GYP_DEFINES['include_tests'] = 1 |
| 24 |
| OLD | NEW |