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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 c.solutions[0].revision = 'HEAD' | 485 c.solutions[0].revision = 'HEAD' |
486 del c.solutions[0].custom_deps | 486 del c.solutions[0].custom_deps |
487 c.revisions['src/third_party/skia'] = ( | 487 c.revisions['src/third_party/skia'] = ( |
488 gclient_api.RevisionFallbackChain('origin/master')) | 488 gclient_api.RevisionFallbackChain('origin/master')) |
489 c.got_revision_mapping['src'] = 'got_chromium_revision' | 489 c.got_revision_mapping['src'] = 'got_chromium_revision' |
490 c.got_revision_mapping['src/third_party/skia'] = 'got_revision' | 490 c.got_revision_mapping['src/third_party/skia'] = 'got_revision' |
491 c.parent_got_revision_mapping['parent_got_revision'] = 'got_revision' | 491 c.parent_got_revision_mapping['parent_got_revision'] = 'got_revision' |
492 | 492 |
493 @config_ctx(includes=['chromium']) | 493 @config_ctx(includes=['chromium']) |
494 def chromium_webrtc(c): | 494 def chromium_webrtc(c): |
495 c.got_revision_mapping['src/third_party/libjingle/source/talk'] = ( | |
496 'got_libjingle_revision') | |
497 c.got_revision_mapping['src/third_party/libvpx/source'] = ( | 495 c.got_revision_mapping['src/third_party/libvpx/source'] = ( |
498 'got_libvpx_revision') | 496 'got_libvpx_revision') |
499 | 497 |
500 @config_ctx(includes=['chromium_webrtc']) | 498 @config_ctx(includes=['chromium_webrtc']) |
501 def chromium_webrtc_tot(c): | 499 def chromium_webrtc_tot(c): |
502 """Configures ToT revisions for WebRTC and Libjingle for Chromium. | 500 """Configures ToT revisions for WebRTC and Libjingle for Chromium. |
503 | 501 |
504 Sets up ToT instead of the DEPS-pinned revision for WebRTC and Libjingle. | 502 Sets up ToT instead of the DEPS-pinned revision for WebRTC and Libjingle. |
505 This is used for some bots to provide data about which revisions are green to | 503 This is used for some bots to provide data about which revisions are green to |
506 roll into Chromium. | 504 roll into Chromium. |
507 """ | 505 """ |
508 c.revisions['src'] = 'HEAD' | 506 c.revisions['src'] = 'HEAD' |
509 c.revisions['src/third_party/webrtc'] = 'HEAD' | 507 c.revisions['src/third_party/webrtc'] = 'HEAD' |
510 c.revisions['src/third_party/libjingle/source/talk'] = 'HEAD' | |
511 | 508 |
512 @config_ctx() | 509 @config_ctx() |
513 def webrtc_test_resources(c): | 510 def webrtc_test_resources(c): |
514 """Add webrtc.DEPS solution for test resources and tools. | 511 """Add webrtc.DEPS solution for test resources and tools. |
515 | 512 |
516 The webrtc.DEPS solution pulls in additional resources needed for running | 513 The webrtc.DEPS solution pulls in additional resources needed for running |
517 WebRTC-specific test setups in Chromium. | 514 WebRTC-specific test setups in Chromium. |
518 """ | 515 """ |
519 s = c.solutions.add() | 516 s = c.solutions.add() |
520 s.name = 'webrtc.DEPS' | 517 s.name = 'webrtc.DEPS' |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 soln = c.solutions.add() | 678 soln = c.solutions.add() |
682 soln.name = 'gerrit-test-cq-normal' | 679 soln.name = 'gerrit-test-cq-normal' |
683 soln.url = 'https://chromium.googlesource.com/playground/gerrit-cq/normal.git' | 680 soln.url = 'https://chromium.googlesource.com/playground/gerrit-cq/normal.git' |
684 | 681 |
685 # TODO(phajdan.jr): Move to proper repo and add coverage. | 682 # TODO(phajdan.jr): Move to proper repo and add coverage. |
686 @config_ctx() | 683 @config_ctx() |
687 def valgrind(c): # pragma: no cover | 684 def valgrind(c): # pragma: no cover |
688 """Add Valgrind binaries to the gclient solution.""" | 685 """Add Valgrind binaries to the gclient solution.""" |
689 c.solutions[0].custom_deps['src/third_party/valgrind'] = \ | 686 c.solutions[0].custom_deps['src/third_party/valgrind'] = \ |
690 ChromiumGitURL(c, 'chromium', 'deps', 'valgrind', 'binaries') | 687 ChromiumGitURL(c, 'chromium', 'deps', 'valgrind', 'binaries') |
OLD | NEW |