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 760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
771 if not self._build_targets: | 771 if not self._build_targets: |
772 self._build_targets = ['most'] | 772 self._build_targets = ['most'] |
773 self.CommonSteps(clobber) | 773 self.CommonSteps(clobber) |
774 self.NonPerfSteps() | 774 self.NonPerfSteps() |
775 self.PerfSteps() | 775 self.PerfSteps() |
776 elif role == builder_name_schema.BUILDER_ROLE_BUILD: | 776 elif role == builder_name_schema.BUILDER_ROLE_BUILD: |
777 # Compile-only builder. | 777 # Compile-only builder. |
778 self.UpdateSteps() | 778 self.UpdateSteps() |
779 if not self._build_targets: | 779 if not self._build_targets: |
780 self._build_targets = [] | 780 self._build_targets = [] |
781 if (('Win7' in self._builder_name and 'x86_64' in self._builder_name) or | 781 if (('Win' in self._builder_name) or |
782 ('Ubuntu' in self._builder_name and 'x86-' in self._builder_name) or | 782 ('Ubuntu' in self._builder_name and 'x86-' in self._builder_name) or |
783 'Mac10.6' in self._builder_name or 'Mac10.7' in self._builder_name): | 783 'Mac10.6' in self._builder_name or 'Mac10.7' in self._builder_name): |
784 # Don't compile the debugger in 64-bit Win7, Mac 10.6, Mac 10.7, or | 784 # Don't compile the debugger on Windows, 64-bit Mac 10.6, Mac 10.7, or |
785 # 32-bit Linux since the Qt SDK doesn't include libraries for those | 785 # 32-bit Linux since the Qt SDK doesn't include libraries for those |
786 # platforms. | 786 # platforms. |
787 self._build_targets.append('most') | 787 self._build_targets.append('most') |
788 else: | 788 else: |
789 self._build_targets.append('everything') | 789 self._build_targets.append('everything') |
790 self.Compile(clobber=clobber, | 790 self.Compile(clobber=clobber, |
791 retry_without_werr_on_failure=True) | 791 retry_without_werr_on_failure=True) |
792 else: | 792 else: |
793 if not self._build_targets: | 793 if not self._build_targets: |
794 self._build_targets = ['most'] | 794 self._build_targets = ['most'] |
795 self.CommonSteps(clobber) | 795 self.CommonSteps(clobber) |
796 if role == builder_name_schema.BUILDER_ROLE_TEST: | 796 if role == builder_name_schema.BUILDER_ROLE_TEST: |
797 # Test-running builder. | 797 # Test-running builder. |
798 self.NonPerfSteps() | 798 self.NonPerfSteps() |
799 if self._configuration == CONFIG_DEBUG: | 799 if self._configuration == CONFIG_DEBUG: |
800 # Debug-mode testers run all steps, but release-mode testers don't. | 800 # Debug-mode testers run all steps, but release-mode testers don't. |
801 self.PerfSteps() | 801 self.PerfSteps() |
802 elif role == builder_name_schema.BUILDER_ROLE_PERF: | 802 elif role == builder_name_schema.BUILDER_ROLE_PERF: |
803 # Perf-only builder. | 803 # Perf-only builder. |
804 if not self._perf_output_basedir: | 804 if not self._perf_output_basedir: |
805 raise ValueError( | 805 raise ValueError( |
806 'BuildPerfOnly requires perf_output_basedir to be defined.') | 806 'BuildPerfOnly requires perf_output_basedir to be defined.') |
807 if self._configuration != CONFIG_RELEASE: | 807 if self._configuration != CONFIG_RELEASE: |
808 raise ValueError('BuildPerfOnly should run in %s configuration.' % | 808 raise ValueError('BuildPerfOnly should run in %s configuration.' % |
809 CONFIG_RELEASE) | 809 CONFIG_RELEASE) |
810 self.PerfSteps() | 810 self.PerfSteps() |
811 self.Validate() | 811 self.Validate() |
812 return self | 812 return self |
OLD | NEW |