| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2006-2010 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 """Set of utilities to build the chromium master.""" | 6 """Set of utilities to build the chromium master.""" |
| 7 | 7 |
| 8 import os | 8 import os |
| 9 from buildbot.steps import trigger, shell | 9 from buildbot.steps import trigger, shell |
| 10 from buildbot.process import factory | 10 from buildbot.process import factory |
| 11 from build_factory import BuildFactory | 11 from build_factory import BuildFactory |
| 12 | 12 |
| 13 | 13 |
| 14 import chromium_config as config | 14 from master.factory import chromeos_commands |
| 15 import chromeos_commands | 15 from master.factory import chromeos_build_factory |
| 16 import chromeos_build_factory | 16 from master.factory import gclient_factory |
| 17 import chromeos_revision_source | 17 from master import chromeos_revision_source |
| 18 | 18 |
| 19 import gclient_factory | 19 import config |
| 20 | 20 |
| 21 from buildbot.process.properties import WithProperties | 21 from buildbot.process.properties import WithProperties |
| 22 | 22 |
| 23 class ChromeOSFactory(gclient_factory.GClientFactory): | 23 class ChromeOSFactory(gclient_factory.GClientFactory): |
| 24 """Encapsulates data and methods common to the chromium master.cfg files.""" | 24 """Encapsulates data and methods common to the chromium master.cfg files.""" |
| 25 | 25 |
| 26 DEFAULT_TARGET_PLATFORM = config.Master.default_platform | 26 DEFAULT_TARGET_PLATFORM = config.Master.default_platform |
| 27 | 27 |
| 28 def __init__(self, build_dir, target_platform=None, target_arch=None, | 28 def __init__(self, build_dir, target_platform=None, target_arch=None, |
| 29 official_build=None): | 29 official_build=None): |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 description='triagelog') | 371 description='triagelog') |
| 372 | 372 |
| 373 def get_factory(self): | 373 def get_factory(self): |
| 374 """ | 374 """ |
| 375 Return the produced factory. | 375 Return the produced factory. |
| 376 | 376 |
| 377 Returns: | 377 Returns: |
| 378 a buildbot factory object | 378 a buildbot factory object |
| 379 """ | 379 """ |
| 380 return self.f_cbuild | 380 return self.f_cbuild |
| OLD | NEW |