2017-04-16 03:59:30 +08:00
|
|
|
# Copyright 2017 The Meson development team
|
|
|
|
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2018-02-20 02:31:57 +08:00
|
|
|
from .boost import BoostDependency
|
2019-10-05 07:34:02 +08:00
|
|
|
from .cuda import CudaDependency
|
2019-11-10 23:14:01 +08:00
|
|
|
from .hdf5 import HDF5Dependency
|
2017-04-16 05:42:25 +08:00
|
|
|
from .base import ( # noqa: F401
|
2018-07-08 23:27:09 +08:00
|
|
|
Dependency, DependencyException, DependencyMethods, ExternalProgram, EmptyExternalProgram, NonExistingExternalProgram,
|
2018-04-12 05:11:33 +08:00
|
|
|
ExternalDependency, NotFoundDependency, ExternalLibrary, ExtraFrameworkDependency, InternalDependency,
|
2018-11-23 04:30:12 +08:00
|
|
|
PkgConfigDependency, CMakeDependency, find_external_dependency, get_dep_identifier, packages, _packages_accept_language)
|
2017-04-16 04:36:32 +08:00
|
|
|
from .dev import GMockDependency, GTestDependency, LLVMDependency, ValgrindDependency
|
2019-11-17 14:59:52 +08:00
|
|
|
from .coarrays import CoarrayDependency
|
2019-11-21 06:03:28 +08:00
|
|
|
from .mpi import MPIDependency
|
2019-11-10 23:14:01 +08:00
|
|
|
from .misc import (BlocksDependency, NetCDFDependency, OpenMPDependency, Python3Dependency, ThreadDependency, PcapDependency, CupsDependency, LibWmfDependency, LibGCryptDependency, GpgmeDependency, ShadercDependency)
|
2017-04-16 04:48:47 +08:00
|
|
|
from .platform import AppleFrameworks
|
2017-07-25 00:30:23 +08:00
|
|
|
from .ui import GLDependency, GnuStepDependency, Qt4Dependency, Qt5Dependency, SDL2Dependency, WxDependency, VulkanDependency
|
2017-04-16 04:22:29 +08:00
|
|
|
|
|
|
|
|
|
|
|
packages.update({
|
2017-04-16 04:36:32 +08:00
|
|
|
# From dev:
|
|
|
|
'gtest': GTestDependency,
|
|
|
|
'gmock': GMockDependency,
|
|
|
|
'llvm': LLVMDependency,
|
|
|
|
'valgrind': ValgrindDependency,
|
|
|
|
|
2019-10-05 07:34:02 +08:00
|
|
|
'boost': BoostDependency,
|
|
|
|
'cuda': CudaDependency,
|
|
|
|
|
2017-04-16 04:58:46 +08:00
|
|
|
# From misc:
|
2019-08-15 07:35:29 +08:00
|
|
|
'blocks': BlocksDependency,
|
2019-02-14 03:09:18 +08:00
|
|
|
'coarray': CoarrayDependency,
|
2017-06-04 11:38:52 +08:00
|
|
|
'mpi': MPIDependency,
|
2019-01-27 12:56:32 +08:00
|
|
|
'hdf5': HDF5Dependency,
|
2019-03-01 04:13:38 +08:00
|
|
|
'netcdf': NetCDFDependency,
|
2018-04-07 16:06:29 +08:00
|
|
|
'openmp': OpenMPDependency,
|
2017-04-16 04:58:46 +08:00
|
|
|
'python3': Python3Dependency,
|
|
|
|
'threads': ThreadDependency,
|
2017-07-27 21:40:25 +08:00
|
|
|
'pcap': PcapDependency,
|
2017-09-01 02:38:15 +08:00
|
|
|
'cups': CupsDependency,
|
2017-10-30 18:44:34 +08:00
|
|
|
'libwmf': LibWmfDependency,
|
2018-09-24 03:23:39 +08:00
|
|
|
'libgcrypt': LibGCryptDependency,
|
2019-04-04 00:34:47 +08:00
|
|
|
'gpgme': GpgmeDependency,
|
2019-04-03 03:47:10 +08:00
|
|
|
'shaderc': ShadercDependency,
|
2017-04-16 04:58:46 +08:00
|
|
|
|
2017-04-16 04:48:47 +08:00
|
|
|
# From platform:
|
|
|
|
'appleframeworks': AppleFrameworks,
|
|
|
|
|
2017-04-16 04:36:32 +08:00
|
|
|
# From ui:
|
2017-04-16 04:22:29 +08:00
|
|
|
'gl': GLDependency,
|
|
|
|
'gnustep': GnuStepDependency,
|
|
|
|
'qt4': Qt4Dependency,
|
|
|
|
'qt5': Qt5Dependency,
|
|
|
|
'sdl2': SDL2Dependency,
|
|
|
|
'wxwidgets': WxDependency,
|
2017-07-25 00:30:23 +08:00
|
|
|
'vulkan': VulkanDependency,
|
2017-04-16 04:22:29 +08:00
|
|
|
})
|
2017-08-06 04:44:39 +08:00
|
|
|
_packages_accept_language.update({
|
2019-01-27 12:56:32 +08:00
|
|
|
'hdf5',
|
2017-08-06 04:44:39 +08:00
|
|
|
'mpi',
|
2019-03-01 04:13:38 +08:00
|
|
|
'netcdf',
|
2018-04-07 16:06:29 +08:00
|
|
|
'openmp',
|
2017-08-06 04:44:39 +08:00
|
|
|
})
|