diff options
Diffstat (limited to 'chromium/tools/cr/cr/base/buildtype.py')
-rw-r--r-- | chromium/tools/cr/cr/base/buildtype.py | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/chromium/tools/cr/cr/base/buildtype.py b/chromium/tools/cr/cr/base/buildtype.py deleted file mode 100644 index 17558128c1b..00000000000 --- a/chromium/tools/cr/cr/base/buildtype.py +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright 2013 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -"""A module for the basic build type support in cr.""" - -import cr - - -class BuildType(cr.Plugin, cr.Plugin.Type): - """Base class for implementing cr build types. - - A build type corresponds to the second directory level in the standard output - directory format, and the BUILDTYPE environment variable used by chromium - tools. - """ - - SELECTOR = 'CR_BUILDTYPE' - - DEFAULT = cr.Config.From( - BUILDTYPE='{CR_BUILDTYPE}', - ) - - def __init__(self): - super(BuildType, self).__init__() - self.active_config.Set( - CR_TEST_MODE=self.name, - ) - - @classmethod - def AddArguments(cls, parser): - parser.add_argument( - '--type', dest=cls.SELECTOR, - choices=cls.Choices(), - default=None, - help='Sets the build type to use. Overrides ' + cls.SELECTOR - ) - - -class DebugBuildType(BuildType): - """A concrete implementation of BuildType for Debug builds.""" - - def __init__(self): - super(DebugBuildType, self).__init__() - self._name = 'Debug' - - -class ReleaseBuildType(BuildType): - """A concrete implementation of BuildType for Release builds.""" - - def __init__(self): - super(ReleaseBuildType, self).__init__() - self._name = 'Release' - - @property - def priority(self): - return BuildType.GetPlugin('Debug').priority + 1 - |