diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2021-07-13 13:22:39 -0700 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2021-07-13 16:43:14 -0700 |
| commit | dd97ec607d9ae073cb5d07da5b7e476afbfc0a0d (patch) | |
| tree | b109e127dc1858cae63a5d8f7666c11e05fdc2d4 /mesonbuild/dependencies/ui.py | |
| parent | eac2d5eec53ca9d9a83a51ff03292dda3ae4a67f (diff) | |
| download | meson-dd97ec607d9ae073cb5d07da5b7e476afbfc0a0d.tar.gz | |
dependencies: drop Dependency.methods and Dependency.get_methods()
Both of these are artifacts of the time before Dependency Factories,
when a dependency that could be discovered multiple ways did ugly stuff
like finding a specific dependency, then replacing it's own attributes
with that dependency's attributes. We don't have cases of that left in
the tree, so let's get rid of this code too
Diffstat (limited to 'mesonbuild/dependencies/ui.py')
| -rw-r--r-- | mesonbuild/dependencies/ui.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/mesonbuild/dependencies/ui.py b/mesonbuild/dependencies/ui.py index f256a370c..530a1011b 100644 --- a/mesonbuild/dependencies/ui.py +++ b/mesonbuild/dependencies/ui.py @@ -50,13 +50,6 @@ class GLDependencySystem(SystemDependency): # FIXME: Detect version using self.clib_compiler return - @staticmethod - def get_methods() -> T.List[DependencyMethods]: - if mesonlib.is_osx() or mesonlib.is_windows(): - return [DependencyMethods.PKGCONFIG, DependencyMethods.SYSTEM] - else: - return [DependencyMethods.PKGCONFIG] - def log_tried(self) -> str: return 'system' @@ -149,13 +142,6 @@ class SDL2DependencyConfigTool(ConfigToolDependency): self.compile_args = self.get_config_value(['--cflags'], 'compile_args') self.link_args = self.get_config_value(['--libs'], 'link_args') - @staticmethod - def get_methods() -> T.List[DependencyMethods]: - if mesonlib.is_osx(): - return [DependencyMethods.PKGCONFIG, DependencyMethods.CONFIG_TOOL, DependencyMethods.EXTRAFRAMEWORK] - else: - return [DependencyMethods.PKGCONFIG, DependencyMethods.CONFIG_TOOL] - class WxDependency(ConfigToolDependency): @@ -251,10 +237,6 @@ class VulkanDependencySystem(SystemDependency): self.link_args.append(lib) return - @staticmethod - def get_methods() -> T.List[DependencyMethods]: - return [DependencyMethods.SYSTEM] - def log_tried(self) -> str: return 'system' |
