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,
|
2020-01-08 07:47:55 +08:00
|
|
|
PkgConfigDependency, CMakeDependency, find_external_dependency, get_dep_identifier, packages, _packages_accept_language,
|
|
|
|
DependencyFactory)
|
2020-01-09 06:05:03 +08:00
|
|
|
from .dev import ValgrindDependency, gmock_factory, gtest_factory, llvm_factory
|
2020-01-10 04:56:06 +08:00
|
|
|
from .coarrays import coarray_factory
|
2019-11-21 06:03:28 +08:00
|
|
|
from .mpi import MPIDependency
|
2019-11-24 13:13:54 +08:00
|
|
|
from .scalapack import ScalapackDependency
|
2020-01-15 03:21:52 +08:00
|
|
|
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,
|
|
|
|
)
|
2017-04-16 04:48:47 +08:00
|
|
|
from .platform import AppleFrameworks
|
2020-01-09 07:43:52 +08:00
|
|
|
from .ui import GnuStepDependency, Qt4Dependency, Qt5Dependency, WxDependency, gl_factory, sdl2_factory, vulkan_factory
|
2017-04-16 04:22:29 +08:00
|
|
|
|
|
|
|
|
|
|
|
packages.update({
|
2017-04-16 04:36:32 +08:00
|
|
|
# From dev:
|
2020-01-11 08:35:15 +08:00
|
|
|
'gtest': gtest_factory,
|
2020-01-09 06:05:03 +08:00
|
|
|
'gmock': gmock_factory,
|
2020-01-08 07:47:55 +08:00
|
|
|
'llvm': llvm_factory,
|
2017-04-16 04:36:32 +08:00
|
|
|
'valgrind': ValgrindDependency,
|
|
|
|
|
2019-10-05 07:34:02 +08:00
|
|
|
'boost': BoostDependency,
|
|
|
|
'cuda': CudaDependency,
|
|
|
|
|
2019-11-24 13:13:54 +08:00
|
|
|
# per-file
|
2020-01-10 04:56:06 +08:00
|
|
|
'coarray': coarray_factory,
|
2019-01-27 12:56:32 +08:00
|
|
|
'hdf5': HDF5Dependency,
|
2019-11-24 13:13:54 +08:00
|
|
|
'mpi': MPIDependency,
|
|
|
|
'scalapack': ScalapackDependency,
|
|
|
|
|
|
|
|
# From misc:
|
|
|
|
'blocks': BlocksDependency,
|
2020-01-15 03:21:52 +08:00
|
|
|
'curses': curses_factory,
|
2020-01-09 08:30:06 +08:00
|
|
|
'netcdf': netcdf_factory,
|
2018-04-07 16:06:29 +08:00
|
|
|
'openmp': OpenMPDependency,
|
2020-01-09 07:11:33 +08:00
|
|
|
'python3': python3_factory,
|
2020-01-10 03:33:06 +08:00
|
|
|
'threads': threads_factory,
|
2020-01-09 06:27:02 +08:00
|
|
|
'pcap': pcap_factory,
|
2020-01-09 07:17:29 +08:00
|
|
|
'cups': cups_factory,
|
2020-01-09 07:20:24 +08:00
|
|
|
'libwmf': libwmf_factory,
|
2020-01-09 07:23:02 +08:00
|
|
|
'libgcrypt': libgcrypt_factory,
|
2020-01-09 07:25:35 +08:00
|
|
|
'gpgme': gpgme_factory,
|
2020-01-09 08:13:26 +08:00
|
|
|
'shaderc': shaderc_factory,
|
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:
|
2020-01-09 07:39:33 +08:00
|
|
|
'gl': gl_factory,
|
2017-04-16 04:22:29 +08:00
|
|
|
'gnustep': GnuStepDependency,
|
|
|
|
'qt4': Qt4Dependency,
|
|
|
|
'qt5': Qt5Dependency,
|
2020-01-09 07:43:52 +08:00
|
|
|
'sdl2': sdl2_factory,
|
2017-04-16 04:22:29 +08:00
|
|
|
'wxwidgets': WxDependency,
|
2020-01-08 08:02:14 +08:00
|
|
|
'vulkan': vulkan_factory,
|
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
|
|
|
})
|