diff options
Diffstat (limited to 'mesonbuild/dependencies/misc.py')
-rw-r--r-- | mesonbuild/dependencies/misc.py | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/mesonbuild/dependencies/misc.py b/mesonbuild/dependencies/misc.py index 789015a..bfd450c 100644 --- a/mesonbuild/dependencies/misc.py +++ b/mesonbuild/dependencies/misc.py @@ -30,53 +30,6 @@ from .base import ( ) -class HDF5Dependency(ExternalDependency): - - def __init__(self, environment, kwargs): - language = kwargs.get('language', 'c') - super().__init__('hdf5', environment, language, kwargs) - kwargs['required'] = False - kwargs['silent'] = True - self.is_found = False - - pkgconfig_files = ['hdf5'] - - if language not in ('c', 'cpp', 'fortran'): - raise DependencyException('Language {} is not supported with HDF5.'.format(language)) - - for pkg in pkgconfig_files: - try: - pkgdep = PkgConfigDependency(pkg, environment, kwargs, language=self.language) - if pkgdep.found(): - self.compile_args = pkgdep.get_compile_args() - # derive needed libraries by language - pd_link_args = pkgdep.get_link_args() - link_args = [] - for larg in pd_link_args: - lpath = Path(larg) - if lpath.is_file(): - if language == 'cpp': - link_args.append(str(lpath.parent / (lpath.stem + '_hl_cpp' + lpath.suffix))) - link_args.append(str(lpath.parent / (lpath.stem + '_cpp' + lpath.suffix))) - elif language == 'fortran': - link_args.append(str(lpath.parent / (lpath.stem + 'hl_fortran' + lpath.suffix))) - link_args.append(str(lpath.parent / (lpath.stem + '_fortran' + lpath.suffix))) - - # HDF5 C libs are required by other HDF5 languages - link_args.append(str(lpath.parent / (lpath.stem + '_hl' + lpath.suffix))) - link_args.append(larg) - else: - link_args.append(larg) - - self.link_args = link_args - self.version = pkgdep.get_version() - self.is_found = True - self.pcdep = pkgdep - break - except Exception: - pass - - class NetCDFDependency(ExternalDependency): def __init__(self, environment, kwargs): |