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.
50 lines
1.3 KiB
Python
50 lines
1.3 KiB
Python
12 years ago
|
# Copyright (c) 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.
|
||
|
|
||
|
import sys
|
||
|
|
||
10 years ago
|
import config_util # pylint: disable=F0401
|
||
12 years ago
|
|
||
|
|
||
|
# This class doesn't need an __init__ method, so we disable the warning
|
||
12 years ago
|
# pylint: disable=W0232
|
||
10 years ago
|
class Chromium(config_util.Config):
|
||
|
"""Basic Config class for Chromium."""
|
||
12 years ago
|
|
||
|
@staticmethod
|
||
|
def fetch_spec(props):
|
||
|
url = 'https://chromium.googlesource.com/chromium/src.git'
|
||
|
solution = { 'name' :'src',
|
||
|
'url' : url,
|
||
|
'deps_file': '.DEPS.git',
|
||
12 years ago
|
'managed' : False,
|
||
12 years ago
|
'custom_deps': {},
|
||
|
'safesync_url': '',
|
||
|
}
|
||
11 years ago
|
if props.get('webkit_revision', '') == 'ToT':
|
||
|
solution['custom_vars'] = {'webkit_revision': ''}
|
||
12 years ago
|
spec = {
|
||
|
'solutions': [solution],
|
||
|
}
|
||
12 years ago
|
if props.get('target_os'):
|
||
|
spec['target_os'] = props['target_os'].split(',')
|
||
12 years ago
|
if props.get('target_os_only'):
|
||
|
spec['target_os_only'] = props['target_os_only']
|
||
12 years ago
|
return {
|
||
11 years ago
|
'type': 'gclient_git',
|
||
|
'gclient_git_spec': spec,
|
||
12 years ago
|
}
|
||
|
|
||
|
@staticmethod
|
||
|
def expected_root(_props):
|
||
|
return 'src'
|
||
|
|
||
|
|
||
|
def main(argv=None):
|
||
|
return Chromium().handle_args(argv)
|
||
|
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
sys.exit(main(sys.argv))
|