Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: scripts/slave/recipe_modules/webrtc/chromium_config.py

Issue 1923883003: build: use class path bases, not strings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « scripts/slave/recipe_modules/webrtc/chromium_android_config.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 = Path('[CHECKOUT]', 'tools', 19 c.runtests.memory_tests_runner = c.CHECKOUT_PATH.join(
20 'valgrind-webrtc', 'webrtc_tests', 20 'tools', 'valgrind-webrtc', 'webrtc_tests',
21 platform_ext={'win': '.bat', 21 platform_ext={'win': '.bat', 'mac': '.sh', 'linux': '.sh'})
22 'mac': '.sh', 22
23 'linux': '.sh'})
24 @CONFIG_CTX(includes=['ninja', 'gcc', 'goma']) 23 @CONFIG_CTX(includes=['ninja', 'gcc', 'goma'])
25 def webrtc_gcc(c): 24 def webrtc_gcc(c):
26 _compiler_defaults(c) 25 _compiler_defaults(c)
27 26
28 @CONFIG_CTX(includes=['chromium_clang', 'dcheck', 'webrtc_openh264']) 27 @CONFIG_CTX(includes=['chromium_clang', 'dcheck', 'webrtc_openh264'])
29 def webrtc_clang(c): 28 def webrtc_clang(c):
30 _compiler_defaults(c) 29 _compiler_defaults(c)
31 30
32 @CONFIG_CTX(includes=['gn']) 31 @CONFIG_CTX(includes=['gn'])
33 def webrtc_gn(c): 32 def webrtc_gn(c):
(...skipping 15 matching lines...) Expand all
49 def webrtc_openh264(c): 48 def webrtc_openh264(c):
50 if c.TARGET_PLATFORM == 'ios': 49 if c.TARGET_PLATFORM == 'ios':
51 raise BadConf('ffmpeg decode not supported for iOS') # pragma: no cover 50 raise BadConf('ffmpeg decode not supported for iOS') # pragma: no cover
52 if c.TARGET_PLATFORM == 'android': 51 if c.TARGET_PLATFORM == 'android':
53 raise BadConf('h264 decode not supported for Android') # pragma: no cover 52 raise BadConf('h264 decode not supported for Android') # pragma: no cover
54 c.gyp_env.GYP_DEFINES['ffmpeg_branding'] = 'Chrome' 53 c.gyp_env.GYP_DEFINES['ffmpeg_branding'] = 'Chrome'
55 c.gyp_env.GYP_DEFINES['rtc_use_264'] = 1 54 c.gyp_env.GYP_DEFINES['rtc_use_264'] = 1
56 55
57 def _compiler_defaults(c): 56 def _compiler_defaults(c):
58 c.compile_py.default_targets = ['All'] 57 c.compile_py.default_targets = ['All']
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/webrtc/chromium_android_config.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698