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']) | 15 @CONFIG_CTX(includes=['chromium', 'dcheck']) |
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 = Path('[CHECKOUT]', 'tools', | 19 c.runtests.memory_tests_runner = Path('[CHECKOUT]', 'tools', |
20 'valgrind-webrtc', 'webrtc_tests', | 20 'valgrind-webrtc', 'webrtc_tests', |
21 platform_ext={'win': '.bat', | 21 platform_ext={'win': '.bat', |
22 'mac': '.sh', | 22 'mac': '.sh', |
23 'linux': '.sh'}) | 23 'linux': '.sh'}) |
| 24 @CONFIG_CTX(includes=['ninja', 'gcc', 'goma']) |
| 25 def webrtc_gcc(c): |
| 26 _compiler_defaults(c) |
24 | 27 |
25 @CONFIG_CTX(includes=['chromium_clang', 'dcheck']) | 28 @CONFIG_CTX(includes=['chromium_clang', 'dcheck']) |
26 def webrtc_clang(c): | 29 def webrtc_clang(c): |
27 _compiler_defaults(c) | 30 _compiler_defaults(c) |
28 | 31 |
29 @CONFIG_CTX(includes=['chromium', 'dcheck', 'static_library']) | 32 @CONFIG_CTX(includes=['chromium', 'dcheck', 'static_library']) |
30 def webrtc_ios(c): | 33 def webrtc_ios(c): |
31 if c.HOST_PLATFORM != 'mac': | 34 if c.HOST_PLATFORM != 'mac': |
32 raise BadConf('Only "mac" host platform is supported for iOS (got: "%s")' % | 35 raise BadConf('Only "mac" host platform is supported for iOS (got: "%s")' % |
33 c.HOST_PLATFORM) # pragma: no cover | 36 c.HOST_PLATFORM) # pragma: no cover |
(...skipping 14 matching lines...) Expand all Loading... |
48 | 51 |
49 @CONFIG_CTX(includes=['gn']) | 52 @CONFIG_CTX(includes=['gn']) |
50 def webrtc_gn(c): | 53 def webrtc_gn(c): |
51 c.compile_py.default_targets = ['all'] | 54 c.compile_py.default_targets = ['all'] |
52 c.project_generator.args = ['build_with_chromium=false'] | 55 c.project_generator.args = ['build_with_chromium=false'] |
53 | 56 |
54 def _compiler_defaults(c): | 57 def _compiler_defaults(c): |
55 c.compile_py.default_targets = ['All'] | 58 c.compile_py.default_targets = ['All'] |
56 if c.TARGET_PLATFORM in ('mac', 'ios'): | 59 if c.TARGET_PLATFORM in ('mac', 'ios'): |
57 c.gyp_env.GYP_DEFINES['mac_sdk'] = '10.9' | 60 c.gyp_env.GYP_DEFINES['mac_sdk'] = '10.9' |
OLD | NEW |