Meson: Cleanup and fix libxml2 dep search #51
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
This attempts to clean up the Visual Studio parts of the Meson build files by letting CMake help finding libxml2 (which does a more comprehensive version of using
%INCLUDE%
and%LIB%
so that we don't have to reinvent wheels), and consolidate the libxml2 search in a singledependency()
call as this is supported since Meson 0.60.0 and later.Also update the libxml2 CMake subproject by using CMake to find ICU and liblzma in the same manner, and work a bit harder to ensure that we have the correct libxml2 .lib in the resulting pkg-config file for libxml++, by using CMake's info where applicable, before falling back to the plain
LibXml2.lib
.With blessings, thank you!