Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 from RECIPE_MODULES.gclient import CONFIG_CTX | |
| 6 from slave.recipe_config import BadConf | |
| 7 from slave.recipe_modules.gclient.config import ChromeSvnSubURL,\ | |
| 8 ChromiumSvnSubURL | |
| 9 | |
| 10 | |
| 11 @CONFIG_CTX(includes=['chromium', '_webrtc_additional_solutions']) | |
| 12 def webrtc_android_apk_try_builder(c): | |
| 13 c.target_os = ['android'] | |
| 14 | |
| 15 c.solutions[0].custom_deps['src/third_party/webrtc'] = ( | |
| 16 '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
| |
| 17 | |
| 18 | |
| 19 @CONFIG_CTX() | |
| 20 def _webrtc_additional_solutions(c): | |
| 21 """Helper config for loading additional solutions. | |
| 22 | |
| 23 The webrtc-limited solution contains non-redistributable code. | |
| 24 The webrtc.DEPS solution pulls in additional DEPS for building Android tests | |
| 25 and running special test setups. | |
| 26 """ | |
| 27 if c.GIT_MODE: | |
| 28 raise BadConf('WebRTC only supports svn') | |
| 29 | |
| 30 s = c.solutions.add() | |
| 31 s.name = 'webrtc-limited' | |
| 32 s.url = ChromeSvnSubURL(c, 'chrome-internal', 'trunk', 'webrtc-limited') | |
| 33 | |
| 34 s = c.solutions.add() | |
| 35 s.name = 'webrtc.DEPS' | |
| 36 s.url = ChromiumSvnSubURL(c, 'chrome', 'trunk', 'deps', 'third_party', | |
| 37 '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
| |
| OLD | NEW |