| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 # Sets up all the builders we want this buildbot master to run. | 5 # Sets up all the builders we want this buildbot master to run. |
| 6 | 6 |
| 7 #pylint: disable=C0301 | 7 #pylint: disable=C0301 |
| 8 | 8 |
| 9 from skia_master_scripts import android_factory | 9 from skia_master_scripts import android_factory |
| 10 from skia_master_scripts import chromeos_factory | 10 from skia_master_scripts import chromeos_factory |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 'x86': {'skia_arch_width': '32'}, | 33 'x86': {'skia_arch_width': '32'}, |
| 34 'x86_64': {'skia_arch_width': '64'}, | 34 'x86_64': {'skia_arch_width': '64'}, |
| 35 'Arm7': {'skia_arch_width': '32'}, | 35 'Arm7': {'skia_arch_width': '32'}, |
| 36 'NaCl': None, | 36 'NaCl': None, |
| 37 } | 37 } |
| 38 | 38 |
| 39 | 39 |
| 40 CHROMEOS_BOARD_NAME = { | 40 CHROMEOS_BOARD_NAME = { |
| 41 'Alex': 'x86-alex', | 41 'Alex': 'x86-alex', |
| 42 'Link': 'link', | 42 'Link': 'link', |
| 43 'daisy': 'daisy', | 43 'Daisy': 'daisy', |
| 44 } | 44 } |
| 45 | 45 |
| 46 | 46 |
| 47 def GetExtraFactoryArgs(compile_builder_info): | 47 def GetExtraFactoryArgs(compile_builder_info): |
| 48 factory_type = compile_builder_info[7] | 48 factory_type = compile_builder_info[7] |
| 49 if factory_type == android_factory.AndroidFactory: | 49 if factory_type == android_factory.AndroidFactory: |
| 50 # AndroidFactory requires a "device" argument. | 50 # AndroidFactory requires a "device" argument. |
| 51 return {'device': utils.CapWordsToUnderscores(compile_builder_info[4])} | 51 return {'device': utils.CapWordsToUnderscores(compile_builder_info[4])} |
| 52 elif factory_type == chromeos_factory.ChromeOSFactory: | 52 elif factory_type == chromeos_factory.ChromeOSFactory: |
| 53 # ChromeOSFactory requires a "board" argument. | 53 # ChromeOSFactory requires a "board" argument. |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 ('Ubuntu12', 'GCC', 'Debug', 'Arm7', 'Xoom', None, True
, f, p) : [('Test', 'Android', 'Xoom', 'Tegra2', None, 'ba
se-android-xoom')], | 196 ('Ubuntu12', 'GCC', 'Debug', 'Arm7', 'Xoom', None, True
, f, p) : [('Test', 'Android', 'Xoom', 'Tegra2', None, 'ba
se-android-xoom')], |
| 197 ('Ubuntu12', 'GCC', 'Release', 'Arm7', 'Xoom', None, True
, f, p) : [('Test', 'Android', 'Xoom', 'Tegra2', None, 'ba
se-android-xoom'), | 197 ('Ubuntu12', 'GCC', 'Release', 'Arm7', 'Xoom', None, True
, f, p) : [('Test', 'Android', 'Xoom', 'Tegra2', None, 'ba
se-android-xoom'), |
| 198
('Perf', 'Android', 'Xoom', 'Tegra2', None, Non
e)], | 198
('Perf', 'Android', 'Xoom', 'Tegra2', None, Non
e)], |
| 199 ('Ubuntu12', 'GCC', 'Debug', 'x86', 'RazrI', None, True
, f, p) : [('Test', 'Android', 'RazrI', 'SGX540', None, 'ba
se-android-razr-i')], | 199 ('Ubuntu12', 'GCC', 'Debug', 'x86', 'RazrI', None, True
, f, p) : [('Test', 'Android', 'RazrI', 'SGX540', None, 'ba
se-android-razr-i')], |
| 200 ('Ubuntu12', 'GCC', 'Release', 'x86', 'RazrI', None, True
, f, p) : [('Test', 'Android', 'RazrI', 'SGX540', None, 'ba
se-android-razr-i'), | 200 ('Ubuntu12', 'GCC', 'Release', 'x86', 'RazrI', None, True
, f, p) : [('Test', 'Android', 'RazrI', 'SGX540', None, 'ba
se-android-razr-i'), |
| 201
('Perf', 'Android', 'RazrI', 'SGX540', None, Non
e)],}) | 201
('Perf', 'Android', 'RazrI', 'SGX540', None, Non
e)],}) |
| 202 f = chromeos_factory.ChromeOSFactory | 202 f = chromeos_factory.ChromeOSFactory |
| 203 builder_specs.update({ | 203 builder_specs.update({ |
| 204 ('Ubuntu12', 'GCC', 'Debug', 'x86', 'Alex', None, True
, f, p) : [('Test', 'ChromeOS', 'Alex', 'GMA3150', None, Non
e)], | 204 ('Ubuntu12', 'GCC', 'Debug', 'x86', 'Alex', None, True
, f, p) : [('Test', 'ChromeOS', 'Alex', 'GMA3150', None, Non
e)], |
| 205 ('Ubuntu12', 'GCC', 'Release', 'x86', 'Alex', None, True
, f, p) : [('Test', 'ChromeOS', 'Alex', 'GMA3150', None, Non
e), | 205 ('Ubuntu12', 'GCC', 'Release', 'x86', 'Alex', None, True
, f, p) : [('Test', 'ChromeOS', 'Alex', 'GMA3150', None, Non
e), |
| 206
('Perf', 'ChromeOS', 'Alex', 'GMA3150', None, Non
e)],}) | 206
('Perf', 'ChromeOS', 'Alex', 'GMA3150', None, Non
e)], |
| 207 ('Ubuntu12', 'GCC', 'Debug', 'x86_64', 'Link', None, True
, f, p) : [('Test', 'ChromeOS', 'Link', 'HD4000', None, Non
e)], |
| 208 ('Ubuntu12', 'GCC', 'Release', 'x86_64', 'Link', None, True
, f, p) : [('Test', 'ChromeOS', 'Link', 'HD4000', None, Non
e), |
| 209
('Perf', 'ChromeOS', 'Link', 'HD4000', None, Non
e)], |
| 210 ('Ubuntu12', 'GCC', 'Debug', 'Arm7', 'Daisy', None, True
, f, p) : [('Test', 'ChromeOS', 'Daisy', 'MaliT604', None, Non
e)], |
| 211 ('Ubuntu12', 'GCC', 'Release', 'Arm7', 'Daisy', None, True
, f, p) : [('Test', 'ChromeOS', 'Daisy', 'MaliT604', None, Non
e), |
| 212
('Perf', 'ChromeOS', 'Daisy', 'MaliT604', None, Non
e)],}) |
| 207 f = ios_factory.iOSFactory | 213 f = ios_factory.iOSFactory |
| 208 p = skia_factory.TARGET_PLATFORM_MAC | 214 p = skia_factory.TARGET_PLATFORM_MAC |
| 209 builder_specs.update({ | 215 builder_specs.update({ |
| 210 ('Mac10.7', 'Clang', 'Debug', 'Arm7', 'iOS', gyp_ios, True
, f, p) : [], | 216 ('Mac10.7', 'Clang', 'Debug', 'Arm7', 'iOS', gyp_ios, True
, f, p) : [], |
| 211 ('Mac10.7', 'Clang', 'Release', 'Arm7', 'iOS', gyp_ios, True
, f, p) : [],}) | 217 ('Mac10.7', 'Clang', 'Release', 'Arm7', 'iOS', gyp_ios, True
, f, p) : [],}) |
| 212 | 218 |
| 213 for compile_builder in sorted(builder_specs.keys()): | 219 for compile_builder in sorted(builder_specs.keys()): |
| 214 factory_type = compile_builder[7] | 220 factory_type = compile_builder[7] |
| 215 factory_args = GetExtraFactoryArgs(compile_builder) | 221 factory_args = GetExtraFactoryArgs(compile_builder) |
| 216 target_platform = compile_builder[8] | 222 target_platform = compile_builder[8] |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 helper.Builder(builder_name, 'f_%s' % builder_name, scheduler=scheduler) | 299 helper.Builder(builder_name, 'f_%s' % builder_name, scheduler=scheduler) |
| 294 helper.Factory('f_%s' % builder_name, | 300 helper.Factory('f_%s' % builder_name, |
| 295 factory( | 301 factory( |
| 296 do_upload_results=do_upload_results, | 302 do_upload_results=do_upload_results, |
| 297 target_platform=skia_factory.TARGET_PLATFORM_LINUX, | 303 target_platform=skia_factory.TARGET_PLATFORM_LINUX, |
| 298 builder_name=builder_name, | 304 builder_name=builder_name, |
| 299 do_patch_step=(scheduler == utils.TRY_SCHEDULERS_STR), | 305 do_patch_step=(scheduler == utils.TRY_SCHEDULERS_STR), |
| 300 ).Build()) | 306 ).Build()) |
| 301 | 307 |
| 302 return helper.Update(cfg) | 308 return helper.Update(cfg) |
| OLD | NEW |