| 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 import BadConf | 5 from recipe_engine.config import BadConf |
| 6 from recipe_engine.config_types import Path | 6 from recipe_engine.config_types import Path |
| 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 | 11 |
| 12 SUPPORTED_TARGET_ARCHS = ('intel', 'arm') | 12 SUPPORTED_TARGET_ARCHS = ('intel', 'arm') |
| 13 | 13 |
| 14 | 14 @CONFIG_CTX(includes=['chromium']) |
| 15 @CONFIG_CTX(includes=['chromium', 'dcheck', 'webrtc_openh264']) | 15 def webrtc_minimal(c): |
| 16 def webrtc_standalone(c): | |
| 17 _compiler_defaults(c) | 16 _compiler_defaults(c) |
| 18 | 17 |
| 18 @CONFIG_CTX(includes=['webrtc_minimal', 'dcheck', 'webrtc_openh264']) |
| 19 def webrtc_standalone(c): |
| 19 c.runtests.memory_tests_runner = c.CHECKOUT_PATH.join( | 20 c.runtests.memory_tests_runner = c.CHECKOUT_PATH.join( |
| 20 'tools', 'valgrind-webrtc', 'webrtc_tests', | 21 'tools', 'valgrind-webrtc', 'webrtc_tests', |
| 21 platform_ext={'win': '.bat', 'mac': '.sh', 'linux': '.sh'}) | 22 platform_ext={'win': '.bat', 'mac': '.sh', 'linux': '.sh'}) |
| 22 | 23 |
| 23 # TOOD(kjellander): Cleanup after migrating client.webrtc.fyi bots to MB. | 24 # TOOD(kjellander): Cleanup after migrating client.webrtc.fyi bots to MB. |
| 24 @CONFIG_CTX(includes=['ninja', 'gcc', 'goma']) | 25 @CONFIG_CTX(includes=['ninja', 'gcc', 'goma']) |
| 25 def webrtc_gcc(c): | 26 def webrtc_gcc(c): |
| 26 _compiler_defaults(c) | 27 _compiler_defaults(c) |
| 27 | 28 |
| 28 # TOOD(kjellander): Cleanup after migrating client.webrtc.fyi bots to MB. | 29 # TOOD(kjellander): Cleanup after migrating client.webrtc.fyi bots to MB. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 46 raise BadConf('h264 decode not supported for Android') # pragma: no cover | 47 raise BadConf('h264 decode not supported for Android') # pragma: no cover |
| 47 c.gyp_env.GYP_DEFINES['ffmpeg_branding'] = 'Chrome' | 48 c.gyp_env.GYP_DEFINES['ffmpeg_branding'] = 'Chrome' |
| 48 c.gyp_env.GYP_DEFINES['rtc_use_h264'] = 1 | 49 c.gyp_env.GYP_DEFINES['rtc_use_h264'] = 1 |
| 49 c.gn_args = [ | 50 c.gn_args = [ |
| 50 'ffmpeg_branding="Chrome"', | 51 'ffmpeg_branding="Chrome"', |
| 51 'rtc_use_h264=true', | 52 'rtc_use_h264=true', |
| 52 ] | 53 ] |
| 53 | 54 |
| 54 def _compiler_defaults(c): | 55 def _compiler_defaults(c): |
| 55 c.compile_py.default_targets = [] | 56 c.compile_py.default_targets = [] |
| OLD | NEW |