mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
Add android_internal fetch spec.
Bug: 856278 Change-Id: I9aa7cd933a54ba675bdeadb7888d0205a080ea62 Reviewed-on: https://chromium-review.googlesource.com/c/1315470 Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org> Commit-Queue: John Budorick <jbudorick@chromium.org>
This commit is contained in:
committed by
Commit Bot
parent
6d6e0a8009
commit
52a091f419
34
fetch_configs/android_internal.py
Normal file
34
fetch_configs/android_internal.py
Normal file
@@ -0,0 +1,34 @@
|
||||
# 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
|
||||
|
||||
import config_util # pylint: disable=import-error
|
||||
|
||||
|
||||
# This class doesn't need an __init__ method, so we disable the warning
|
||||
# pylint: disable=no-init
|
||||
class AndroidInternal(config_util.Config):
|
||||
"""Basic Config alias for AndroidInternal -> Chromium."""
|
||||
|
||||
@staticmethod
|
||||
def fetch_spec(props):
|
||||
return {
|
||||
'alias': {
|
||||
'config': 'chromium',
|
||||
'props': ['--target_os=android', '--internal=1'],
|
||||
},
|
||||
}
|
||||
|
||||
@staticmethod
|
||||
def expected_root(_props):
|
||||
return ''
|
||||
|
||||
|
||||
def main(argv=None):
|
||||
return AndroidInternal().handle_args(argv)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main(sys.argv))
|
||||
@@ -19,9 +19,15 @@ class Chromium(config_util.Config):
|
||||
'url' : url,
|
||||
'managed' : False,
|
||||
'custom_deps': {},
|
||||
'custom_vars': {},
|
||||
}
|
||||
if props.get('webkit_revision', '') == 'ToT':
|
||||
solution['custom_vars'] = {'webkit_revision': ''}
|
||||
solution['custom_vars']['webkit_revision'] = ''
|
||||
if bool(props.get('internal', False)):
|
||||
solution['custom_vars']['checkout_src_internal'] = True
|
||||
# TODO(jbudorick): Remove this once crbug.com/803846 and
|
||||
# crbug.com/856278 are complete.
|
||||
solution['custom_vars']['checkout_mobile_internal'] = True
|
||||
spec = {
|
||||
'solutions': [solution],
|
||||
}
|
||||
@@ -29,6 +35,7 @@ class Chromium(config_util.Config):
|
||||
spec['target_os'] = props['target_os'].split(',')
|
||||
if props.get('target_os_only'):
|
||||
spec['target_os_only'] = props['target_os_only']
|
||||
|
||||
return {
|
||||
'type': 'gclient_git',
|
||||
'gclient_git_spec': spec,
|
||||
|
||||
Reference in New Issue
Block a user