aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies/__init__.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2021-05-31 19:46:09 +0200
committerDylan Baker <dylan@pnwbakers.com>2021-06-03 10:23:27 -0700
commit95b70bcb97afa9177645e4926afdf3792fb73eb5 (patch)
treedea7c5ec83a7b2a90b533f58d50ad88b8961bc8f /mesonbuild/dependencies/__init__.py
parent201dc6422683858f9656c8b572530237c810feef (diff)
downloadmeson-95b70bcb97afa9177645e4926afdf3792fb73eb5.zip
meson-95b70bcb97afa9177645e4926afdf3792fb73eb5.tar.gz
meson-95b70bcb97afa9177645e4926afdf3792fb73eb5.tar.bz2
deps: Split dependencies.base
Split the Factory and dependency classes out of the base.py script to improve maintainability.
Diffstat (limited to 'mesonbuild/dependencies/__init__.py')
-rw-r--r--mesonbuild/dependencies/__init__.py40
1 files changed, 33 insertions, 7 deletions
diff --git a/mesonbuild/dependencies/__init__.py b/mesonbuild/dependencies/__init__.py
index 722ede4..bfa2902 100644
--- a/mesonbuild/dependencies/__init__.py
+++ b/mesonbuild/dependencies/__init__.py
@@ -15,12 +15,15 @@
from .boost import BoostDependency
from .cuda import CudaDependency
from .hdf5 import hdf5_factory
-from .base import ( # noqa: F401
- Dependency, DependencyException, DependencyMethods, ExternalDependency,
- NotFoundDependency, ExternalLibrary, ExtraFrameworkDependency,
- InternalDependency, PkgConfigDependency, CMakeDependency,
- find_external_dependency, get_dep_identifier, packages,
- _packages_accept_language, DependencyFactory)
+from .base import Dependency, InternalDependency, ExternalDependency, NotFoundDependency
+from .base import ExternalLibrary, DependencyException, DependencyMethods
+from .cmake import CMakeDependency
+from .configtool import ConfigToolDependency
+from .dub import DubDependency
+from .framework import ExtraFrameworkDependency
+from .pkgconfig import PkgConfigDependency
+from .factory import DependencyFactory
+from .detect import find_external_dependency, get_dep_identifier, packages, _packages_accept_language
from .dev import (
ValgrindDependency, JDKSystemDependency, gmock_factory, gtest_factory,
llvm_factory, zlib_factory)
@@ -30,12 +33,35 @@ from .scalapack import scalapack_factory
from .misc import (
BlocksDependency, OpenMPDependency, cups_factory, curses_factory, gpgme_factory,
libgcrypt_factory, libwmf_factory, netcdf_factory, pcap_factory, python3_factory,
- shaderc_factory, threads_factory,
+ shaderc_factory, threads_factory, ThreadDependency,
)
from .platform import AppleFrameworks
from .qt import qt4_factory, qt5_factory, qt6_factory
from .ui import GnuStepDependency, WxDependency, gl_factory, sdl2_factory, vulkan_factory
+__all__ = [
+ 'Dependency',
+ 'InternalDependency',
+ 'ExternalDependency',
+ 'NotFoundDependency',
+ 'ExternalLibrary',
+ 'DependencyException',
+ 'DependencyMethods',
+
+ 'CMakeDependency',
+ 'ConfigToolDependency',
+ 'DubDependency',
+ 'ExtraFrameworkDependency',
+ 'PkgConfigDependency',
+
+ 'DependencyFactory',
+
+ 'ThreadDependency',
+
+ 'find_external_dependency',
+ 'get_dep_identifier',
+]
+
"""Dependency representations and discovery logic.
Meson attempts to largely abstract away dependency discovery information, and