Chromium Code Reviews| 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_MODULES.gclient import CONFIG_CTX | 5 from RECIPE_MODULES.gclient import CONFIG_CTX |
| 6 from slave.recipe_config import BadConf | 6 from slave.recipe_config import BadConf |
| 7 from slave.recipe_modules.gclient.config import ChromeSvnSubURL,\ | 7 from slave.recipe_modules.gclient.config import ChromeSvnSubURL,\ |
| 8 ChromiumSvnSubURL | 8 ChromiumSvnSubURL |
| 9 | 9 |
| 10 | 10 |
| 11 @CONFIG_CTX() | 11 @CONFIG_CTX(includes=['webrtc', '_webrtc_limited']) |
| 12 def webrtc_standalone(c): | 12 def webrtc_standalone(c): |
| 13 s = c.solutions.add() | |
| 14 s.name = 'src' | |
| 15 s.url = 'http://webrtc.googlecode.com/svn/trunk' | |
| 16 s.custom_vars['root_dir'] = 'src' | |
| 17 c.got_revision_mapping['webrtc'] = 'got_revision' | 13 c.got_revision_mapping['webrtc'] = 'got_revision' |
| 18 | 14 |
| 19 | 15 |
| 20 @CONFIG_CTX(includes=['chromium', '_webrtc_additional_solutions']) | 16 @CONFIG_CTX(includes=['chromium', '_webrtc_limited']) |
| 21 def webrtc_android_apk(c): | 17 def webrtc_android_apk(c): |
| 22 c.target_os = ['android'] | 18 c.target_os = ['android'] |
| 23 | 19 |
| 24 # TODO(kjellander): Switch to use the webrtc_revision gyp variable in DEPS | 20 # TODO(kjellander): Switch to use the webrtc_revision gyp variable in DEPS |
| 25 # as soon we've switched over to use the trunk branch instead of the stable | 21 # as soon we've switched over to use the trunk branch instead of the stable |
| 26 # branch (which is about to be retired). | 22 # branch (which is about to be retired). |
| 27 c.solutions[0].custom_deps['src/third_party/webrtc'] = ( | 23 c.solutions[0].custom_deps['src/third_party/webrtc'] = ( |
| 28 'http://webrtc.googlecode.com/svn/trunk/webrtc') | 24 'http://webrtc.googlecode.com/svn/trunk/webrtc') |
| 29 | 25 |
| 26 # The webrtc.DEPS solution pulls in additional resources needed for running | |
| 27 # WebRTC-specific test setups in Chrome. | |
| 28 s = c.solutions.add() | |
| 29 s.name = 'webrtc.DEPS' | |
| 30 s.url = ChromiumSvnSubURL(c, 'chrome', 'trunk', 'deps', 'third_party', | |
| 31 'webrtc', 'webrtc.DEPS') | |
| 32 | |
| 30 | 33 |
| 31 @CONFIG_CTX(includes=['webrtc_android_apk']) | 34 @CONFIG_CTX(includes=['webrtc_android_apk']) |
| 32 def webrtc_android_apk_try_builder(c): | 35 def webrtc_android_apk_try_builder(c): |
| 33 pass | 36 pass |
| 34 | 37 |
| 35 | 38 |
| 36 @CONFIG_CTX() | 39 @CONFIG_CTX() |
| 37 def _webrtc_additional_solutions(c): | 40 def webrtc(c): |
| 38 """Helper config for loading additional solutions. | 41 s = c.solutions.add() |
| 42 s.name = 'src' | |
| 43 s.url = 'http://webrtc.googlecode.com/svn/trunk' | |
|
iannucci
2014/03/05 23:34:17
Don't we mirror this in the golo?
kjellander_chromium
2014/03/14 12:46:25
Yes we do. I updated it to use the mirror.
| |
| 44 s.custom_vars['root_dir'] = 'src' | |
| 45 | |
| 46 | |
| 47 @CONFIG_CTX() | |
| 48 def _webrtc_limited(c): | |
| 49 """Helper config for loading the webrtc-limited solution. | |
| 39 | 50 |
| 40 The webrtc-limited solution contains non-redistributable code. | 51 The webrtc-limited solution contains non-redistributable code. |
| 41 The webrtc.DEPS solution pulls in additional resources needed for running | |
| 42 WebRTC-specific test setups. | |
| 43 """ | 52 """ |
| 44 if c.GIT_MODE: | 53 if c.GIT_MODE: |
| 45 raise BadConf('WebRTC only supports svn') | 54 raise BadConf('WebRTC only supports svn') |
| 46 | 55 |
| 47 s = c.solutions.add() | 56 s = c.solutions.add() |
| 48 s.name = 'webrtc-limited' | 57 s.name = 'webrtc-limited' |
| 49 s.url = ChromeSvnSubURL(c, 'chrome-internal', 'trunk', 'webrtc-limited') | 58 s.url = ChromeSvnSubURL(c, 'chrome-internal', 'trunk', 'webrtc-limited') |
| 50 | 59 s.custom_vars['root_dir'] = 'src' |
| 51 s = c.solutions.add() | |
| 52 s.name = 'webrtc.DEPS' | |
| 53 s.url = ChromiumSvnSubURL(c, 'chrome', 'trunk', 'deps', 'third_party', | |
| 54 'webrtc', 'webrtc.DEPS') | |
| OLD | NEW |