Chromium Code Reviews| Index: recipes/webrtc.py |
| diff --git a/recipes/chromium.py b/recipes/webrtc.py |
| similarity index 58% |
| copy from recipes/chromium.py |
| copy to recipes/webrtc.py |
| index 6416ee0bbd7a4b1240e7a04acd2132a018906499..7e6cfff7221edf561235b72eb7123d7eb0a512cc 100644 |
| --- a/recipes/chromium.py |
| +++ b/recipes/webrtc.py |
| @@ -1,4 +1,4 @@ |
| -# Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +# Copyright (c) 2014 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. |
| @@ -9,31 +9,31 @@ import recipe_util # pylint: disable=F0401 |
| # This class doesn't need an __init__ method, so we disable the warning |
| # pylint: disable=W0232 |
| -class Chromium(recipe_util.Recipe): |
| - """Basic Recipe class for Chromium.""" |
| +class WebRTC(recipe_util.Recipe): |
| + """Basic Recipe class for WebRTC.""" |
| @staticmethod |
| def fetch_spec(props): |
| - url = 'https://chromium.googlesource.com/chromium/src.git' |
| + url = 'https://chromium.googlesource.com/external/webrtc.git' |
| solution = { 'name' :'src', |
|
agable
2014/11/24 21:21:45
Please format this more like the one in the infra_
kjellander_chromium
2014/11/24 21:46:03
Done.
|
| 'url' : url, |
| - 'deps_file': '.DEPS.git', |
| + 'deps_file': 'DEPS', |
| 'managed' : False, |
| 'custom_deps': {}, |
| 'safesync_url': '', |
| } |
| - if props.get('webkit_revision', '') == 'ToT': |
| - solution['custom_vars'] = {'webkit_revision': ''} |
| spec = { |
| 'solutions': [solution], |
| + 'auto': True, # Runs git auto-svn as a part of the fetch. |
| } |
| if props.get('target_os'): |
| spec['target_os'] = props['target_os'].split(',') |
| - if props.get('target_os_only'): |
| - spec['target_os_only'] = props['target_os_only'] |
| + |
| + checkout_type = 'gclient_git_svn' |
| + spec_type = '%s_spec' % checkout_type |
|
agable
2014/11/24 21:21:45
Similarly, just use spec_type = "gclient_git_svn_s
kjellander_chromium
2014/11/24 21:46:03
Done.
|
| return { |
| - 'type': 'gclient_git', |
| - 'gclient_git_spec': spec, |
| + 'type': checkout_type, |
| + spec_type: spec, |
| } |
| @staticmethod |
| @@ -42,7 +42,7 @@ class Chromium(recipe_util.Recipe): |
| def main(argv=None): |
| - return Chromium().handle_args(argv) |
| + return WebRTC().handle_args(argv) |
| if __name__ == '__main__': |