Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 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 types | 5 import types |
| 6 | 6 |
| 7 from recipe_engine.config import config_item_context, ConfigGroup, BadConf | 7 from recipe_engine.config import config_item_context, ConfigGroup, BadConf |
| 8 from recipe_engine.config import ConfigList, Dict, Single, Static, Set, List | 8 from recipe_engine.config import ConfigList, Dict, Single, Static, Set, List |
| 9 | 9 |
| 10 from . import api as gclient_api | 10 from . import api as gclient_api |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 124 s.custom_vars = mirror_only(c, { | 124 s.custom_vars = mirror_only(c, { |
| 125 'googlecode_url': 'svn://svn-mirror.golo.chromium.org/%s', | 125 'googlecode_url': 'svn://svn-mirror.golo.chromium.org/%s', |
| 126 'nacl_trunk': 'svn://svn-mirror.golo.chromium.org/native_client/trunk', | 126 'nacl_trunk': 'svn://svn-mirror.golo.chromium.org/native_client/trunk', |
| 127 'sourceforge_url': 'svn://svn-mirror.golo.chromium.org/%(repo)s', | 127 'sourceforge_url': 'svn://svn-mirror.golo.chromium.org/%(repo)s', |
| 128 'webkit_trunk': BlinkURL(c)}) | 128 'webkit_trunk': BlinkURL(c)}) |
| 129 m = c.got_revision_mapping | 129 m = c.got_revision_mapping |
| 130 m['src'] = 'got_revision' | 130 m['src'] = 'got_revision' |
| 131 m['src/native_client'] = 'got_nacl_revision' | 131 m['src/native_client'] = 'got_nacl_revision' |
| 132 m['src/tools/swarming_client'] = 'got_swarming_client_revision' | 132 m['src/tools/swarming_client'] = 'got_swarming_client_revision' |
| 133 m['src/v8'] = 'got_v8_revision' | 133 m['src/v8'] = 'got_v8_revision' |
| 134 m['src/third_party/WebKit'] = 'got_webkit_revision' | |
| 135 m['src/third_party/webrtc'] = 'got_webrtc_revision' | 134 m['src/third_party/webrtc'] = 'got_webrtc_revision' |
| 136 | 135 |
| 137 p = c.parent_got_revision_mapping | 136 p = c.parent_got_revision_mapping |
| 138 p['parent_got_revision'] = None | 137 p['parent_got_revision'] = None |
| 139 p['parent_got_nacl_revision'] = 'nacl_revision' | 138 p['parent_got_nacl_revision'] = 'nacl_revision' |
| 140 p['parent_got_swarming_client_revision'] = 'swarming_revision' | 139 p['parent_got_swarming_client_revision'] = 'swarming_revision' |
| 141 p['parent_got_v8_revision'] = 'v8_revision' | 140 p['parent_got_v8_revision'] = 'v8_revision' |
| 142 p['parent_got_webkit_revision'] = 'webkit_revision' | |
| 143 p['parent_got_webrtc_revision'] = 'webrtc_revision' | 141 p['parent_got_webrtc_revision'] = 'webrtc_revision' |
| 144 | 142 |
| 145 # Patch project revisions are applied whenever patch_project is set. E.g. if | 143 # Patch project revisions are applied whenever patch_project is set. E.g. if |
| 146 # a v8 stand-alone patch is sent to a chromium trybot, patch_project is v8 | 144 # a v8 stand-alone patch is sent to a chromium trybot, patch_project is v8 |
| 147 # and can be used to sync v8 to HEAD instead of the pinned chromium | 145 # and can be used to sync v8 to HEAD instead of the pinned chromium |
| 148 # version. | 146 # version. |
| 149 patch_project_revisions = { | 147 patch_project_revisions = { |
| 150 'v8': ('src/v8', 'HEAD'), | 148 'v8': ('src/v8', 'HEAD'), |
| 151 } | 149 } |
| 152 | 150 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 230 c.solutions[0].revision = 'HEAD' | 228 c.solutions[0].revision = 'HEAD' |
| 231 del c.solutions[0].custom_deps | 229 del c.solutions[0].custom_deps |
| 232 c.revisions['src/third_party/WebKit'] = 'HEAD' | 230 c.revisions['src/third_party/WebKit'] = 'HEAD' |
| 233 | 231 |
| 234 @config_ctx(includes=['chromium']) | 232 @config_ctx(includes=['chromium']) |
| 235 def blink_or_chromium(c): | 233 def blink_or_chromium(c): |
| 236 c.solutions[0].revision = gclient_api.ProjectRevisionResolver('chromium') | 234 c.solutions[0].revision = gclient_api.ProjectRevisionResolver('chromium') |
| 237 del c.solutions[0].custom_deps | 235 del c.solutions[0].custom_deps |
| 238 c.revisions['src/third_party/WebKit'] = \ | 236 c.revisions['src/third_party/WebKit'] = \ |
| 239 gclient_api.ProjectRevisionResolver( | 237 gclient_api.ProjectRevisionResolver( |
| 240 'webkit', parent_got_revision='parent_got_webkit_revision') | 238 'webkit', parent_got_revision='parent_got_webkit_revision') |
|
Primiano Tucci (use gerrit)
2015/09/23 17:07:07
shouldn't we remove this as well?
| |
| 241 | 239 |
| 242 @config_ctx(includes=['chromium']) | 240 @config_ctx(includes=['chromium']) |
| 243 def blink_merged(c): | 241 def blink_merged(c): |
| 244 c.solutions[0].url = \ | 242 c.solutions[0].url = \ |
| 245 'https://chromium.googlesource.com/playground/chromium-blink-merge.git' | 243 'https://chromium.googlesource.com/playground/chromium-blink-merge.git' |
| 246 | 244 |
| 247 @config_ctx() | 245 @config_ctx() |
| 248 def android(c): | 246 def android(c): |
| 249 c.target_os.add('android') | 247 c.target_os.add('android') |
| 250 | 248 |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 573 c.with_branch_heads = True | 571 c.with_branch_heads = True |
| 574 | 572 |
| 575 @config_ctx() | 573 @config_ctx() |
| 576 def custom_tabs_client(c): | 574 def custom_tabs_client(c): |
| 577 soln = c.solutions.add() | 575 soln = c.solutions.add() |
| 578 soln.name = 'custom_tabs_client' | 576 soln.name = 'custom_tabs_client' |
| 579 # TODO(pasko): test custom-tabs-client within a full chromium checkout. | 577 # TODO(pasko): test custom-tabs-client within a full chromium checkout. |
| 580 soln.url = ('https://chromium.googlesource.com/external/github.com/' | 578 soln.url = ('https://chromium.googlesource.com/external/github.com/' |
| 581 'GoogleChrome/custom-tabs-client.git') | 579 'GoogleChrome/custom-tabs-client.git') |
| 582 c.got_revision_mapping['custom_tabs_client'] = 'got_revision' | 580 c.got_revision_mapping['custom_tabs_client'] = 'got_revision' |
| OLD | NEW |