OLD | NEW |
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 | 5 |
6 """Utility class to build the Skia master BuildFactory's. | 6 """Utility class to build the Skia master BuildFactory's. |
7 | 7 |
8 Based on gclient_factory.py and adds Skia-specific steps.""" | 8 Based on gclient_factory.py and adds Skia-specific steps.""" |
9 | 9 |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 # and thus remove the need for the whole target_platform parameter. | 23 # and thus remove the need for the whole target_platform parameter. |
24 # For now, these must match the target_platform values used in | 24 # For now, these must match the target_platform values used in |
25 # third_party/chromium_buildbot/scripts/master/factory/gclient_factory.py , | 25 # third_party/chromium_buildbot/scripts/master/factory/gclient_factory.py , |
26 # because we pass these values into GClientFactory.__init__() . | 26 # because we pass these values into GClientFactory.__init__() . |
27 TARGET_PLATFORM_LINUX = 'linux' | 27 TARGET_PLATFORM_LINUX = 'linux' |
28 TARGET_PLATFORM_MAC = 'mac' | 28 TARGET_PLATFORM_MAC = 'mac' |
29 TARGET_PLATFORM_WIN32 = 'win32' | 29 TARGET_PLATFORM_WIN32 = 'win32' |
30 | 30 |
31 CONFIG_DEBUG = 'Debug' | 31 CONFIG_DEBUG = 'Debug' |
32 CONFIG_RELEASE = 'Release' | 32 CONFIG_RELEASE = 'Release' |
33 CONFIG_BENCH = 'Bench' | |
34 CONFIGURATIONS = [CONFIG_DEBUG, CONFIG_RELEASE] | 33 CONFIGURATIONS = [CONFIG_DEBUG, CONFIG_RELEASE] |
35 | 34 |
36 | 35 |
37 class SkiaFactory(BuildFactory): | 36 class SkiaFactory(BuildFactory): |
38 """Encapsulates data and methods common to the Skia master.cfg files.""" | 37 """Encapsulates data and methods common to the Skia master.cfg files.""" |
39 | 38 |
40 def __init__(self, other_subdirs=None, do_upload_results=False, | 39 def __init__(self, other_subdirs=None, do_upload_results=False, |
41 do_patch_step=False, build_subdir='trunk', | 40 do_patch_step=False, build_subdir='trunk', |
42 target_platform=None, configuration=CONFIG_DEBUG, | 41 target_platform=None, configuration=CONFIG_DEBUG, |
43 default_timeout=8*60*60, | 42 default_timeout=8*60*60, |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 """ | 528 """ |
530 if not self._perf_output_basedir: | 529 if not self._perf_output_basedir: |
531 raise ValueError( | 530 raise ValueError( |
532 'BuildPerfOnly requires perf_output_basedir to be defined.') | 531 'BuildPerfOnly requires perf_output_basedir to be defined.') |
533 if self._configuration != CONFIG_RELEASE: | 532 if self._configuration != CONFIG_RELEASE: |
534 raise ValueError('BuildPerfOnly should run in %s configuration.' % | 533 raise ValueError('BuildPerfOnly should run in %s configuration.' % |
535 CONFIG_RELEASE) | 534 CONFIG_RELEASE) |
536 self.CommonSteps(clobber) | 535 self.CommonSteps(clobber) |
537 self.PerfSteps() | 536 self.PerfSteps() |
538 return self | 537 return self |
OLD | NEW |