aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonlib.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-02-12 20:04:23 +0200
committerGitHub <noreply@github.com>2019-02-12 20:04:23 +0200
commit82e4cb7731e59237746e480f9611700f1d4fda76 (patch)
tree24e8133c742258833badd29a03188cb72bb0e044 /mesonbuild/mesonlib.py
parentccdac894eedebfb49a90f87a3752cbcfeb28083e (diff)
parent0eccce799f5643dda7a65f3e841cd54785f03ec5 (diff)
downloadmeson-82e4cb7731e59237746e480f9611700f1d4fda76.zip
meson-82e4cb7731e59237746e480f9611700f1d4fda76.tar.gz
meson-82e4cb7731e59237746e480f9611700f1d4fda76.tar.bz2
Merge pull request #4743 from dcbaker/native-file-extended
Extend native files to store install path information
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r--mesonbuild/mesonlib.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py
index 540fcdc..9a55c26 100644
--- a/mesonbuild/mesonlib.py
+++ b/mesonbuild/mesonlib.py
@@ -308,7 +308,15 @@ class OrderedEnum(Enum):
return self.value < other.value
return NotImplemented
-MachineChoice = OrderedEnum('MachineChoice', ['BUILD', 'HOST', 'TARGET'])
+class MachineChoice(OrderedEnum):
+
+ """Enum class representing one of the three possible values for binaries,
+ the build, host, and target machines.
+ """
+
+ BUILD = 0
+ HOST = 1
+ TARGET = 2
class PerMachine:
def __init__(self, build, host, target):