Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Side by Side Diff: recipes/blink.py

Issue 1186053007: Fix 'fetch blink' recipe for proper management. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: rebase Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import json 5 import json
6 import sys 6 import sys
7 7
8 import recipe_util # pylint: disable=F0401 8 import recipe_util # pylint: disable=F0401
9 9
10 10
11 # This class doesn't need an __init__ method, so we disable the warning 11 # This class doesn't need an __init__ method, so we disable the warning
12 # pylint: disable=W0232 12 # pylint: disable=W0232
13 class Blink(recipe_util.Recipe): 13 class Blink(recipe_util.Recipe):
14 """Basic Recipe alias for Blink -> Chromium.""" 14 """Basic Recipe alias for Blink -> Chromium."""
15 15
16 @staticmethod 16 @staticmethod
17 def fetch_spec(props): 17 def fetch_spec(props):
18 submodule_spec = { 18 chromium_url = 'https://chromium.googlesource.com/chromium/src.git'
19 'third_party/WebKit': { 19 chromium_solution = {'name': 'src',
20 'auto': True, 20 'url': chromium_url,
21 } 21 'deps_file': 'DEPS',
22 'managed': False,
23 'custom_deps': {
24 'src/third_party/WebKit': None,
25 },
22 } 26 }
27 blink_url = 'https://chromium.googlesource.com/chromium/blink.git'
28 blink_solution = {'name': 'src/third_party/WebKit',
29 'url': blink_url,
30 'deps_file': '.DEPS.git',
31 'managed': False,
32 'custom_deps': {},
33 }
34 spec = {
35 'solutions': [chromium_solution, blink_solution],
36 'auto': True,
37 }
38 if props.get('target_os'):
39 spec['target_os'] = props['target_os'].split(',')
40 if props.get('target_os_only'):
41 spec['target_os_only'] = props['target_os_only']
42 toolchain_hook = [sys.executable, 'src/build/confirm_toolchain.py']
43 spec['fetch_hooks'] = [toolchain_hook]
23 return { 44 return {
24 'alias': { 45 'type': 'gclient_git_svn',
25 'recipe': 'chromium', 46 'gclient_git_svn_spec': spec,
26 'props': [
27 '--webkit_revision=ToT',
28 '--submodule_git_svn_spec=' + json.dumps(submodule_spec),
29 ],
30 },
31 } 47 }
32 48
33 @staticmethod 49 @staticmethod
34 def expected_root(_props): 50 def expected_root(_props):
35 return '' 51 return 'src/third_party/WebKit'
36 52
37 53
38 def main(argv=None): 54 def main(argv=None):
39 return Blink().handle_args(argv) 55 return Blink().handle_args(argv)
40 56
41 57
42 if __name__ == '__main__': 58 if __name__ == '__main__':
43 sys.exit(main(sys.argv)) 59 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698