Chromium Code Reviews| Index: scripts/slave/recipe_modules/webrtc/gclient_config.py |
| diff --git a/scripts/slave/recipe_modules/webrtc/gclient_config.py b/scripts/slave/recipe_modules/webrtc/gclient_config.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5f29a9f879af6217d9ed84d985e00c19ca44a8e3 |
| --- /dev/null |
| +++ b/scripts/slave/recipe_modules/webrtc/gclient_config.py |
| @@ -0,0 +1,37 @@ |
| +# Copyright 2013 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +from RECIPE_MODULES.gclient import CONFIG_CTX |
| +from slave.recipe_config import BadConf |
| +from slave.recipe_modules.gclient.config import ChromeSvnSubURL,\ |
| + ChromiumSvnSubURL |
| + |
| + |
| +@CONFIG_CTX(includes=['chromium', '_webrtc_additional_solutions']) |
| +def webrtc_android_apk_try_builder(c): |
| + c.target_os = ['android'] |
| + |
| + c.solutions[0].custom_deps['src/third_party/webrtc'] = ( |
| + 'http://webrtc.googlecode.com/svn/trunk/webrtc') |
|
kjellander_chromium
2013/11/20 14:29:16
I don't have a good way of getting the revision at
iannucci
2013/11/21 00:33:59
If you look in DEPS, for webkit we have a webkit_t
kjellander_chromium
2013/11/22 12:49:09
It's correct we have a webrtc_revision variable, b
|
| + |
| + |
| +@CONFIG_CTX() |
| +def _webrtc_additional_solutions(c): |
| + """Helper config for loading additional solutions. |
| + |
| + The webrtc-limited solution contains non-redistributable code. |
| + The webrtc.DEPS solution pulls in additional DEPS for building Android tests |
| + and running special test setups. |
| + """ |
| + if c.GIT_MODE: |
| + raise BadConf('WebRTC only supports svn') |
| + |
| + s = c.solutions.add() |
| + s.name = 'webrtc-limited' |
| + s.url = ChromeSvnSubURL(c, 'chrome-internal', 'trunk', 'webrtc-limited') |
| + |
| + s = c.solutions.add() |
| + s.name = 'webrtc.DEPS' |
| + s.url = ChromiumSvnSubURL(c, 'chrome', 'trunk', 'deps', 'third_party', |
| + 'webrtc', 'webrtc.DEPS') |
|
iannucci
2013/11/21 00:33:59
Why not just put this in the other method?
kjellander_chromium
2013/11/22 12:49:09
I plan to use it for all our "normal" bots later o
|