You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.1 KiB
Python
51 lines
1.1 KiB
Python
10 years ago
|
# 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.
|
||
|
|
||
|
import sys
|
||
|
|
||
9 years ago
|
import config_util # pylint: disable=F0401
|
||
10 years ago
|
|
||
|
|
||
|
# This class doesn't need an __init__ method, so we disable the warning
|
||
|
# pylint: disable=W0232
|
||
9 years ago
|
class WebRTC(config_util.Config):
|
||
|
"""Basic Config class for WebRTC."""
|
||
10 years ago
|
|
||
|
@staticmethod
|
||
|
def fetch_spec(props):
|
||
|
url = 'https://chromium.googlesource.com/external/webrtc.git'
|
||
|
spec = {
|
||
|
'solutions': [
|
||
|
{
|
||
|
'name': 'src',
|
||
|
'url': url,
|
||
|
'deps_file': 'DEPS',
|
||
|
'managed': False,
|
||
|
'custom_deps': {},
|
||
|
'safesync_url': '',
|
||
|
},
|
||
|
],
|
||
10 years ago
|
'with_branch_heads': True,
|
||
10 years ago
|
}
|
||
|
|
||
|
if props.get('target_os'):
|
||
|
spec['target_os'] = props['target_os'].split(',')
|
||
|
|
||
|
return {
|
||
10 years ago
|
'type': 'gclient_git',
|
||
|
'gclient_git_spec': spec,
|
||
10 years ago
|
}
|
||
|
|
||
|
@staticmethod
|
||
|
def expected_root(_props):
|
||
|
return 'src'
|
||
|
|
||
|
|
||
|
def main(argv=None):
|
||
|
return WebRTC().handle_args(argv)
|
||
|
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
sys.exit(main(sys.argv))
|