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 |
15 @CONFIG_CTX(includes=['chromium', 'dcheck', 'webrtc_openh264']) | 15 @CONFIG_CTX(includes=['chromium', 'dcheck', 'webrtc_openh264']) |
16 def webrtc_standalone(c): | 16 def webrtc_standalone(c): |
17 _compiler_defaults(c) | 17 _compiler_defaults(c) |
18 | 18 |
19 c.runtests.memory_tests_runner = c.CHECKOUT_PATH.join( | 19 c.runtests.memory_tests_runner = c.CHECKOUT_PATH.join( |
20 'tools', 'valgrind-webrtc', 'webrtc_tests', | 20 'tools', 'valgrind-webrtc', 'webrtc_tests', |
21 platform_ext={'win': '.bat', 'mac': '.sh', 'linux': '.sh'}) | 21 platform_ext={'win': '.bat', 'mac': '.sh', 'linux': '.sh'}) |
22 | 22 |
| 23 # TOOD(kjellander): Cleanup after migrating client.webrtc.fyi bots to MB. |
23 @CONFIG_CTX(includes=['ninja', 'gcc', 'goma']) | 24 @CONFIG_CTX(includes=['ninja', 'gcc', 'goma']) |
24 def webrtc_gcc(c): | 25 def webrtc_gcc(c): |
25 _compiler_defaults(c) | 26 _compiler_defaults(c) |
26 | 27 |
| 28 # TOOD(kjellander): Cleanup after migrating client.webrtc.fyi bots to MB. |
27 @CONFIG_CTX(includes=['chromium_clang', 'dcheck', 'webrtc_openh264']) | 29 @CONFIG_CTX(includes=['chromium_clang', 'dcheck', 'webrtc_openh264']) |
28 def webrtc_clang(c): | 30 def webrtc_clang(c): |
29 _compiler_defaults(c) | 31 _compiler_defaults(c) |
30 | 32 |
31 @CONFIG_CTX(includes=['gn']) | 33 @CONFIG_CTX() |
32 def webrtc_gn(c): | |
33 c.compile_py.default_targets = ['all'] | |
34 if c.TARGET_PLATFORM != 'ios' and c.TARGET_PLATFORM != 'android': | |
35 c.gn_args = [ | |
36 'ffmpeg_branding="Chrome"', | |
37 'rtc_use_h264=true', | |
38 ] | |
39 | |
40 @CONFIG_CTX(includes=['webrtc_gn']) | |
41 def webrtc_libfuzzer(c): | 34 def webrtc_libfuzzer(c): |
42 c.gn_args.extend([ | 35 c.gn_args.extend([ |
43 'use_libfuzzer=true', | 36 'use_libfuzzer=true', |
44 'is_asan=true', | 37 'is_asan=true', |
45 ]) | 38 ]) |
46 | 39 |
| 40 # TODO(kjellander): Cleanup after migrating client.webrtc.fyi bots to MB. |
47 @CONFIG_CTX() | 41 @CONFIG_CTX() |
48 def webrtc_openh264(c): | 42 def webrtc_openh264(c): |
49 if c.TARGET_PLATFORM == 'ios': | 43 if c.TARGET_PLATFORM == 'ios': |
50 raise BadConf('ffmpeg decode not supported for iOS') # pragma: no cover | 44 raise BadConf('ffmpeg decode not supported for iOS') # pragma: no cover |
51 if c.TARGET_PLATFORM == 'android': | 45 if c.TARGET_PLATFORM == 'android': |
52 raise BadConf('h264 decode not supported for Android') # pragma: no cover | 46 raise BadConf('h264 decode not supported for Android') # pragma: no cover |
53 c.gyp_env.GYP_DEFINES['ffmpeg_branding'] = 'Chrome' | 47 c.gyp_env.GYP_DEFINES['ffmpeg_branding'] = 'Chrome' |
54 c.gyp_env.GYP_DEFINES['rtc_use_h264'] = 1 | 48 c.gyp_env.GYP_DEFINES['rtc_use_h264'] = 1 |
| 49 c.gn_args = [ |
| 50 'ffmpeg_branding="Chrome"', |
| 51 'rtc_use_h264=true', |
| 52 ] |
55 | 53 |
56 def _compiler_defaults(c): | 54 def _compiler_defaults(c): |
57 c.compile_py.default_targets = [] | 55 c.compile_py.default_targets = [] |
OLD | NEW |