summaryrefslogtreecommitdiffstats
path: root/chromium/tools/cr/cr/base/arch.py
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/tools/cr/cr/base/arch.py')
-rw-r--r--chromium/tools/cr/cr/base/arch.py70
1 files changed, 0 insertions, 70 deletions
diff --git a/chromium/tools/cr/cr/base/arch.py b/chromium/tools/cr/cr/base/arch.py
deleted file mode 100644
index 743ac8efe47..00000000000
--- a/chromium/tools/cr/cr/base/arch.py
+++ /dev/null
@@ -1,70 +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 architectures supported by cr."""
-
-import cr
-
-DEFAULT = cr.Config.From(
- CR_ENVSETUP_ARCH='{CR_ARCH}',
-)
-
-
-class Arch(cr.Plugin, cr.Plugin.Type):
- """Base class for implementing cr architecture targets."""
-
- SELECTOR = 'CR_ARCH'
-
- @classmethod
- def AddArguments(cls, parser):
- parser.add_argument(
- '--architecture', dest=cls.SELECTOR,
- choices=cls.Choices(),
- default=None,
- help='Sets the target architecture to use. Overrides ' + cls.SELECTOR
- )
-
-
-class IA32Arch(Arch):
-
- ACTIVE = cr.Config.From(
- CR_ENVSETUP_ARCH='x86',
- )
-
-
-class Mips32Arch(Arch):
-
- ACTIVE = cr.Config.From(
- CR_ENVSETUP_ARCH='mips',
- )
-
- @property
- def enabled(self):
- return cr.AndroidPlatform.GetInstance().is_active
-
-
-class X64Arch(Arch):
-
- ACTIVE = cr.Config.From(
- CR_ENVSETUP_ARCH='x64',
- )
-
- @property
- def priority(self):
- return super(X64Arch, self).priority + 1
-
-
-class Arm32Arch(Arch):
-
- ACTIVE = cr.Config.From(
- CR_ENVSETUP_ARCH='arm',
- )
-
- @property
- def priority(self):
- return super(Arm32Arch, self).priority + 2
-
- @property
- def enabled(self):
- return cr.AndroidPlatform.GetInstance().is_active