| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2006-2009 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 build the chromium master BuildFactory's. | 6 """Utility class to build the chromium master BuildFactory's. |
| 7 | 7 |
| 8 Based on gclient_factory.py and adds chromium-specific steps.""" | 8 Based on gclient_factory.py and adds chromium-specific steps.""" |
| 9 | 9 |
| 10 from buildbot.steps import trigger | 10 from buildbot.steps import trigger |
| 11 | 11 |
| 12 from build_factory import BuildFactory | 12 from build_factory import BuildFactory |
| 13 import chromium_commands | 13 import chromium_commands |
| 14 import chromium_config as config | 14 import chromium_config as config |
| 15 import gclient_factory | 15 import gclient_factory |
| 16 | 16 |
| 17 | 17 |
| 18 class ChromiumFactory(gclient_factory.GClientFactory): | 18 class ChromiumFactory(gclient_factory.GClientFactory): |
| 19 """Encapsulates data and methods common to the chromium master.cfg files.""" | 19 """Encapsulates data and methods common to the chromium master.cfg files.""" |
| 20 | 20 |
| 21 DEFAULT_TARGET_PLATFORM = config.Master.default_platform | 21 DEFAULT_TARGET_PLATFORM = config.Master.default_platform |
| 22 | 22 |
| 23 # On valgrind bots, override the optimizer settings so we don't inline too | 23 # On valgrind bots, override the optimizer settings so we don't inline too |
| 24 # much and make the stacks harder to figure out. Use the same settings | 24 # much and make the stacks harder to figure out. Use the same settings |
| 25 # on all buildbot masters to make it easier to move bots. | 25 # on all buildbot masters to make it easier to move bots. |
| 26 MEMORY_TOOLS_GYP_DEFINES = ( | 26 MEMORY_TOOLS_GYP_DEFINES = ( |
| 27 # gcc flags | 27 # gcc flags |
| 28 'mac_debug_optimization=1 ' | 28 'mac_debug_optimization=s ' |
| 29 'mac_release_optimization=1 ' | 29 'mac_release_optimization=s ' |
| 30 'release_optimize=1 ' | 30 'release_optimize=1 ' |
| 31 'no_gc_sections=1 ' | 31 'no_gc_sections=1 ' |
| 32 'debug_extra_cflags="-g -fno-inline -fno-omit-frame-pointer -fno-builtin" ' | 32 'debug_extra_cflags="-g -fno-inline -fno-omit-frame-pointer -fno-builtin" ' |
| 33 'release_extra_cflags="-g -fno-inline -fno-omit-frame-pointer ' | 33 'release_extra_cflags="-g -fno-inline -fno-omit-frame-pointer ' |
| 34 '-fno-builtin" ' | 34 '-fno-builtin" ' |
| 35 | 35 |
| 36 # MSVS flags | 36 # MSVS flags |
| 37 'win_debug_Optimization=1 ' | 37 'win_debug_Optimization=1 ' |
| 38 'win_debug_RuntimeChecks=0 ' | 38 'win_debug_RuntimeChecks=0 ' |
| 39 'win_debug_InlineFunctionExpansion=0 ' | 39 'win_debug_InlineFunctionExpansion=0 ' |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 def CEFFactory(self, identifier, target='Release', clobber=False, | 449 def CEFFactory(self, identifier, target='Release', clobber=False, |
| 450 tests=None, mode=None, slave_type='BuilderTester', | 450 tests=None, mode=None, slave_type='BuilderTester', |
| 451 options=None, compile_timeout=1200, build_url=None, | 451 options=None, compile_timeout=1200, build_url=None, |
| 452 project=None, factory_properties=None): | 452 project=None, factory_properties=None): |
| 453 self._solutions.append(gclient_factory.GClientSolution( | 453 self._solutions.append(gclient_factory.GClientSolution( |
| 454 'http://chromiumembedded.googlecode.com/svn/trunk', | 454 'http://chromiumembedded.googlecode.com/svn/trunk', |
| 455 'src/cef')) | 455 'src/cef')) |
| 456 return self.ChromiumFactory(identifier, target, clobber, tests, mode, | 456 return self.ChromiumFactory(identifier, target, clobber, tests, mode, |
| 457 slave_type, options, compile_timeout, | 457 slave_type, options, compile_timeout, |
| 458 build_url, project, factory_properties) | 458 build_url, project, factory_properties) |
| OLD | NEW |