diff options
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/backend/backends.py | 2 | ||||
-rw-r--r-- | mesonbuild/backend/vs2010backend.py | 4 | ||||
-rw-r--r-- | mesonbuild/backend/vs2012backend.py | 4 | ||||
-rw-r--r-- | mesonbuild/backend/vs2013backend.py | 4 | ||||
-rw-r--r-- | mesonbuild/backend/vs2015backend.py | 4 | ||||
-rw-r--r-- | mesonbuild/backend/vs2017backend.py | 4 | ||||
-rw-r--r-- | mesonbuild/backend/vs2019backend.py | 4 | ||||
-rw-r--r-- | mesonbuild/backend/vs2022backend.py | 4 | ||||
-rw-r--r-- | mesonbuild/backend/xcodebackend.py | 4 |
9 files changed, 25 insertions, 9 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index c7615b7..aa9ba3e 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -258,6 +258,7 @@ def get_backend_from_name(backend: str, build: T.Optional[build.Build] = None, i class Backend: environment: T.Optional['Environment'] + name = '<UNKNOWN>' def __init__(self, build: T.Optional[build.Build], interpreter: T.Optional['Interpreter']): # Make it possible to construct a dummy backend @@ -269,7 +270,6 @@ class Backend: self.interpreter = interpreter self.environment = build.environment self.processed_targets: T.Set[str] = set() - self.name = '<UNKNOWN>' self.build_dir = self.environment.get_build_dir() self.source_dir = self.environment.get_source_dir() self.build_to_src = mesonlib.relpath(self.environment.get_source_dir(), diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py index cf15175..5718004 100644 --- a/mesonbuild/backend/vs2010backend.py +++ b/mesonbuild/backend/vs2010backend.py @@ -101,9 +101,11 @@ def detect_microsoft_gdk(platform: str) -> bool: return re.match(r'Gaming\.(Desktop|Xbox.XboxOne|Xbox.Scarlett)\.x64', platform, re.IGNORECASE) class Vs2010Backend(backends.Backend): + + name = 'vs2010' + def __init__(self, build: T.Optional[build.Build], interpreter: T.Optional[Interpreter]): super().__init__(build, interpreter) - self.name = 'vs2010' self.project_file_version = '10.0.30319.1' self.sln_file_version = '11.00' self.sln_version_comment = '2010' diff --git a/mesonbuild/backend/vs2012backend.py b/mesonbuild/backend/vs2012backend.py index af8d5df..76e5c40 100644 --- a/mesonbuild/backend/vs2012backend.py +++ b/mesonbuild/backend/vs2012backend.py @@ -23,9 +23,11 @@ if T.TYPE_CHECKING: from ..interpreter import Interpreter class Vs2012Backend(Vs2010Backend): + + name = 'vs2012' + def __init__(self, build: T.Optional[Build], interpreter: T.Optional[Interpreter]): super().__init__(build, interpreter) - self.name = 'vs2012' self.vs_version = '2012' self.sln_file_version = '12.00' self.sln_version_comment = '2012' diff --git a/mesonbuild/backend/vs2013backend.py b/mesonbuild/backend/vs2013backend.py index 44d45d6..1fbde46 100644 --- a/mesonbuild/backend/vs2013backend.py +++ b/mesonbuild/backend/vs2013backend.py @@ -22,9 +22,11 @@ if T.TYPE_CHECKING: from ..interpreter import Interpreter class Vs2013Backend(Vs2010Backend): + + name = 'vs2013' + def __init__(self, build: T.Optional[Build], interpreter: T.Optional[Interpreter]): super().__init__(build, interpreter) - self.name = 'vs2013' self.vs_version = '2013' self.sln_file_version = '12.00' self.sln_version_comment = '2013' diff --git a/mesonbuild/backend/vs2015backend.py b/mesonbuild/backend/vs2015backend.py index 25e0a5e..8e4da36 100644 --- a/mesonbuild/backend/vs2015backend.py +++ b/mesonbuild/backend/vs2015backend.py @@ -23,9 +23,11 @@ if T.TYPE_CHECKING: from ..interpreter import Interpreter class Vs2015Backend(Vs2010Backend): + + name = 'vs2015' + def __init__(self, build: T.Optional[Build], interpreter: T.Optional[Interpreter]): super().__init__(build, interpreter) - self.name = 'vs2015' self.vs_version = '2015' self.sln_file_version = '12.00' self.sln_version_comment = '14' diff --git a/mesonbuild/backend/vs2017backend.py b/mesonbuild/backend/vs2017backend.py index 4ed5e48..375d660 100644 --- a/mesonbuild/backend/vs2017backend.py +++ b/mesonbuild/backend/vs2017backend.py @@ -26,9 +26,11 @@ if T.TYPE_CHECKING: class Vs2017Backend(Vs2010Backend): + + name = 'vs2017' + def __init__(self, build: T.Optional[Build], interpreter: T.Optional[Interpreter]): super().__init__(build, interpreter) - self.name = 'vs2017' self.vs_version = '2017' self.sln_file_version = '12.00' self.sln_version_comment = '15' diff --git a/mesonbuild/backend/vs2019backend.py b/mesonbuild/backend/vs2019backend.py index 0734336..f01f7ec 100644 --- a/mesonbuild/backend/vs2019backend.py +++ b/mesonbuild/backend/vs2019backend.py @@ -25,9 +25,11 @@ if T.TYPE_CHECKING: class Vs2019Backend(Vs2010Backend): + + name = 'vs2019' + def __init__(self, build: T.Optional[Build], interpreter: T.Optional[Interpreter]): super().__init__(build, interpreter) - self.name = 'vs2019' self.sln_file_version = '12.00' self.sln_version_comment = 'Version 16' if self.environment is not None: diff --git a/mesonbuild/backend/vs2022backend.py b/mesonbuild/backend/vs2022backend.py index b1f93c3..ca35ac3 100644 --- a/mesonbuild/backend/vs2022backend.py +++ b/mesonbuild/backend/vs2022backend.py @@ -25,9 +25,11 @@ if T.TYPE_CHECKING: class Vs2022Backend(Vs2010Backend): + + name = 'vs2022' + def __init__(self, build: T.Optional[Build], interpreter: T.Optional[Interpreter]): super().__init__(build, interpreter) - self.name = 'vs2022' self.sln_file_version = '12.00' self.sln_version_comment = 'Version 17' if self.environment is not None: diff --git a/mesonbuild/backend/xcodebackend.py b/mesonbuild/backend/xcodebackend.py index 605ee22..e4195e2 100644 --- a/mesonbuild/backend/xcodebackend.py +++ b/mesonbuild/backend/xcodebackend.py @@ -191,9 +191,11 @@ class PbxDict: ofile.write(';\n') class XCodeBackend(backends.Backend): + + name = 'xcode' + def __init__(self, build: T.Optional[build.Build], interpreter: T.Optional[Interpreter]): super().__init__(build, interpreter) - self.name = 'xcode' self.project_uid = self.environment.coredata.lang_guids['default'].replace('-', '')[:24] self.buildtype = self.environment.coredata.get_option(OptionKey('buildtype')) self.project_conflist = self.gen_id() |