aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies/cmake.py
AgeCommit message (Collapse)AuthorFilesLines
2022-02-16flake8: fix typoed whitespace surrounding tokensEli Schwartz1-1/+1
2022-01-27fix some flake8 violations for unused importsEli Schwartz1-1/+1
And one undefined T.cast name in a file that isn't yet mypy-ready anyway.
2022-01-10port from embedded data to importlib.resourcesEli Schwartz1-2/+2
2021-12-01cmake: Fix old style dependency lookup with imported targetsDaniel Mensinger1-91/+17
This also includes some refactoring, since the alternaticve would have been to duplicate the huge traceparser target code block again. fixes #9581
2021-11-20cmake: Use find_library() on bare library names in cmake dependenciesJon Turney1-6/+4
Convert bare library names to a dependency linker argument using find_library(), rather than hardcoding the MSVC transformation.
2021-10-24cmake: Add support for the Linux CMake registry (fixes #9418)Daniel Mensinger1-0/+6
2021-10-06cmake: Implement support for interpreting link "keywords"Daniel Mensinger1-10/+32
CMakes `target_link_libraries()` supports certain keywords to only enable specific libraries for specific CMake configurations. We now try our best to replicate this for Meson dependencies. Fixes #9197
2021-10-06cmake: Warn if we could use IMPORTED CMake targetsDaniel Mensinger1-1/+32
2021-07-13dependencies: drop Dependency.methods and Dependency.get_methods()Dylan Baker1-5/+1
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
2021-06-29fix: Always explicitly set encoding for text files (fixes #8263)Daniel Mensinger1-1/+1
2021-06-14dependencies: Use a typing.NewType for Dependency.type_nameDylan Baker1-2/+2
This allow mypy to catch cases where we accidently assign the dependency name to the type_name, as it sees them as having different types (though at runtime they're all strings).
2021-06-06typing: Fully annotate dependencies.cmakeDaniel Mensinger1-59/+69
2021-06-03deps: Split dependencies.baseDaniel Mensinger1-0/+655
Split the Factory and dependency classes out of the base.py script to improve maintainability.