| 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 import BadConf | 5 from slave.recipe_config import BadConf |
| 6 | 6 |
| 7 from RECIPE_MODULES.chromium import CONFIG_CTX | 7 from RECIPE_MODULES.chromium import CONFIG_CTX |
| 8 from slave.recipe_config_types import Path | 8 from slave.recipe_config_types import Path |
| 9 | 9 |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 'suppressions.txt') | 47 'suppressions.txt') |
| 48 | 48 |
| 49 @CONFIG_CTX(includes=['android']) | 49 @CONFIG_CTX(includes=['android']) |
| 50 def webrtc_android(c): | 50 def webrtc_android(c): |
| 51 pass | 51 pass |
| 52 | 52 |
| 53 @CONFIG_CTX(includes=['android_clang']) | 53 @CONFIG_CTX(includes=['android_clang']) |
| 54 def webrtc_android_clang(c): | 54 def webrtc_android_clang(c): |
| 55 pass | 55 pass |
| 56 | 56 |
| 57 @CONFIG_CTX(includes=['android']) | |
| 58 def webrtc_android_apk(c): | |
| 59 if c.TARGET_PLATFORM != 'android': | |
| 60 raise BadConf('Only "android" platform is supported (got: "%s")' % | |
| 61 c.TARGET_PLATFORM) | |
| 62 if c.TARGET_ARCH not in SUPPORTED_TARGET_ARCHS: | |
| 63 raise BadConf('Only "%s" architectures are supported (got: "%s")' % | |
| 64 (','.join(SUPPORTED_TARGET_ARCHS), c.TARGET_ARCH)) | |
| 65 | |
| 66 c.compile_py.default_targets = ['android_builder_webrtc'] | |
| 67 c.gyp_env.GYP_GENERATOR_FLAGS['default_target'] = 'android_builder_webrtc' | |
| 68 c.gyp_env.GYP_DEFINES['include_tests'] = 1 | |
| 69 | |
| 70 @CONFIG_CTX(includes=['chromium', 'static_library']) | 57 @CONFIG_CTX(includes=['chromium', 'static_library']) |
| 71 def webrtc_ios(c): | 58 def webrtc_ios(c): |
| 72 if c.HOST_PLATFORM != 'mac': | 59 if c.HOST_PLATFORM != 'mac': |
| 73 raise BadConf('Only "mac" host platform is supported for iOS (got: "%s")' % | 60 raise BadConf('Only "mac" host platform is supported for iOS (got: "%s")' % |
| 74 c.HOST_PLATFORM) | 61 c.HOST_PLATFORM) |
| 75 if c.TARGET_PLATFORM != 'ios': | 62 if c.TARGET_PLATFORM != 'ios': |
| 76 raise BadConf('Only "ios" target platform is supported (got: "%s")' % | 63 raise BadConf('Only "ios" target platform is supported (got: "%s")' % |
| 77 c.TARGET_PLATFORM) | 64 c.TARGET_PLATFORM) |
| 78 c.build_config_fs = c.BUILD_CONFIG + '-iphoneos' | 65 c.build_config_fs = c.BUILD_CONFIG + '-iphoneos' |
| 79 | 66 |
| 80 gyp_defs = c.gyp_env.GYP_DEFINES | 67 gyp_defs = c.gyp_env.GYP_DEFINES |
| 81 gyp_defs['build_with_libjingle'] = 1 | 68 gyp_defs['build_with_libjingle'] = 1 |
| 82 gyp_defs['chromium_ios_signing'] = 0 | 69 gyp_defs['chromium_ios_signing'] = 0 |
| 83 gyp_defs['key_id'] = '' | 70 gyp_defs['key_id'] = '' |
| 84 gyp_defs['target_arch'] = 'armv7' | 71 gyp_defs['target_arch'] = 'armv7' |
| 85 gyp_defs['OS'] = c.TARGET_PLATFORM | 72 gyp_defs['OS'] = c.TARGET_PLATFORM |
| 86 | 73 |
| 87 c.compile_py.default_targets = ['All'] | 74 c.compile_py.default_targets = ['All'] |
| 88 | 75 |
| 89 @CONFIG_CTX(includes=['gn']) | 76 @CONFIG_CTX(includes=['gn']) |
| 90 def webrtc_gn(c): | 77 def webrtc_gn(c): |
| 91 c.project_generator.args = ['build_with_chromium=false'] | 78 c.project_generator.args = ['build_with_chromium=false'] |
| OLD | NEW |