| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright 2013 The Chromium Authors. All rights reserved. | 2 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Utility class to generate a Dart-specific BuildFactory. | 6 """Utility class to generate a Dart-specific BuildFactory. |
| 7 | 7 |
| 8 Based on gclient_factory.py. | 8 Based on gclient_factory.py. |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 CUSTOM_DEPS_WIN7_SDK = ( | 67 CUSTOM_DEPS_WIN7_SDK = ( |
| 68 "src/third_party/platformsdk_win7", | 68 "src/third_party/platformsdk_win7", |
| 69 config.Master.trunk_internal_url + "/third_party/platformsdk_win7@23175") | 69 config.Master.trunk_internal_url + "/third_party/platformsdk_win7@23175") |
| 70 CUSTOM_DEPS_WIN8_SDK = ( | 70 CUSTOM_DEPS_WIN8_SDK = ( |
| 71 "src/third_party/platformsdk_win8", | 71 "src/third_party/platformsdk_win8", |
| 72 config.Master.trunk_internal_url | 72 config.Master.trunk_internal_url |
| 73 + "/third_party/platformsdk_win8_9200@32005") | 73 + "/third_party/platformsdk_win8_9200@32005") |
| 74 CUSTOM_DEPS_DIRECTX_SDK = ( | 74 CUSTOM_DEPS_DIRECTX_SDK = ( |
| 75 "src/third_party/directxsdk", | 75 "src/third_party/directxsdk", |
| 76 config.Master.trunk_internal_url + "/third_party/directxsdk@20250") | 76 config.Master.trunk_internal_url + "/third_party/directxsdk@20250") |
| 77 | |
| 78 custom_deps_list_win = [CUSTOM_DEPS_WIN7_SDK, | 77 custom_deps_list_win = [CUSTOM_DEPS_WIN7_SDK, |
| 79 CUSTOM_DEPS_WIN8_SDK, | 78 CUSTOM_DEPS_WIN8_SDK, |
| 80 CUSTOM_DEPS_DIRECTX_SDK] | 79 CUSTOM_DEPS_DIRECTX_SDK] |
| 81 else: | 80 else: |
| 82 custom_deps_list_win = [] | 81 custom_deps_list_win = [] |
| 82 |
| 83 # Wix custom deps |
| 84 if config.Master.trunk_internal_url: |
| 85 custom_wix_deps = [( |
| 86 'dart/third_party/wix', |
| 87 config.Master.trunk_internal_url + "/third_party/wix/v3_6_3303")] |
| 88 else: |
| 89 custom_wix_deps = [] |
| 90 |
| 83 custom_deps_list_chromeOnAndroid = [ | 91 custom_deps_list_chromeOnAndroid = [ |
| 84 ('dart/third_party/android_tools', android_tools_url), | 92 ('dart/third_party/android_tools', android_tools_url), |
| 85 ] | 93 ] |
| 86 if android_resources_url: | 94 if android_resources_url: |
| 87 custom_deps_list_chromeOnAndroid.append( | 95 custom_deps_list_chromeOnAndroid.append( |
| 88 ('dart/third_party/android_testing_resources', android_resources_url)) | 96 ('dart/third_party/android_testing_resources', android_resources_url)) |
| 89 | 97 |
| 90 def BuildChromiumFactory(channel, target_platform='win32', trunk=False): | 98 def BuildChromiumFactory(channel, target_platform='win32', trunk=False): |
| 91 def new_solution(deps_url, custom_vars, custom_deps): | 99 def new_solution(deps_url, custom_vars, custom_deps): |
| 92 return gclient_factory.GClientSolution( | 100 return gclient_factory.GClientSolution( |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 factory_base = { | 367 factory_base = { |
| 360 'posix' + postfix: DartFactory(channel), | 368 'posix' + postfix: DartFactory(channel), |
| 361 'posix-standalone' + postfix: DartFactory(channel, is_standalone=True), | 369 'posix-standalone' + postfix: DartFactory(channel, is_standalone=True), |
| 362 'posix-standalone-noRunhooks' + postfix: | 370 'posix-standalone-noRunhooks' + postfix: |
| 363 DartFactory(channel, nohooks_on_update=True, is_standalone=True), | 371 DartFactory(channel, nohooks_on_update=True, is_standalone=True), |
| 364 'chromeOnAndroid' + postfix: | 372 'chromeOnAndroid' + postfix: |
| 365 DartFactory(channel, | 373 DartFactory(channel, |
| 366 custom_deps_list=custom_deps_list_chromeOnAndroid), | 374 custom_deps_list=custom_deps_list_chromeOnAndroid), |
| 367 'android' + postfix: DartFactory(channel, target_os='android'), | 375 'android' + postfix: DartFactory(channel, target_os='android'), |
| 368 'windows' + postfix: DartFactory(channel, target_platform='win32'), | 376 'windows' + postfix: DartFactory(channel, target_platform='win32'), |
| 377 'windows-wix' + postfix: |
| 378 DartFactory(channel, target_platform='win32', |
| 379 custom_deps_list=custom_wix_deps), |
| 369 } | 380 } |
| 370 if channel.name == 'be': | 381 if channel.name == 'be': |
| 371 factory_base.update({ | 382 factory_base.update({ |
| 372 'posix-trunk': DartFactory(channel, trunk=True), | 383 'posix-trunk': DartFactory(channel, trunk=True), |
| 373 'windows-trunk': | 384 'windows-trunk': |
| 374 DartFactory(channel, target_platform='win32', trunk=True), | 385 DartFactory(channel, target_platform='win32', trunk=True), |
| 375 }) | 386 }) |
| 376 return factory_base | 387 return factory_base |
| 377 | 388 |
| 378 @staticmethod | 389 @staticmethod |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 False) | 725 False) |
| 715 statuses.append( | 726 statuses.append( |
| 716 MailNotifier(fromaddr=self._active_master.from_address, | 727 MailNotifier(fromaddr=self._active_master.from_address, |
| 717 mode='problem', | 728 mode='problem', |
| 718 sendToInterestedUsers=send_to_interested_useres, | 729 sendToInterestedUsers=send_to_interested_useres, |
| 719 extraRecipients=extra_recipients, | 730 extraRecipients=extra_recipients, |
| 720 lookup=master_utils.FilterDomain(), | 731 lookup=master_utils.FilterDomain(), |
| 721 builders=notifying_builders)) | 732 builders=notifying_builders)) |
| 722 return statuses | 733 return statuses |
| 723 | 734 |
| OLD | NEW |