Commit 52a091f4 authored by John Budorick's avatar John Budorick Committed by Commit Bot

Add android_internal fetch spec.

Bug: 856278
Change-Id: I9aa7cd933a54ba675bdeadb7888d0205a080ea62
Reviewed-on: https://chromium-review.googlesource.com/c/1315470Reviewed-by: 's avatarEdward Lesmes <ehmaldonado@chromium.org>
Commit-Queue: John Budorick <jbudorick@chromium.org>
parent 6d6e0a80
# 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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment