From 26e11f5fd88c2bb65fe692015cf9c6ae9afcbcf0 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Sun, 10 Jun 2018 07:35:09 +0530 Subject: Add missing FeatureNew for libwmf dependency Also add it to the release notes for the 0.44 release. https://github.com/mesonbuild/meson/pull/3709#issuecomment-395738573 --- docs/markdown/Release-notes-for-0.44.0.md | 6 ++++++ mesonbuild/dependencies/misc.py | 1 + 2 files changed, 7 insertions(+) diff --git a/docs/markdown/Release-notes-for-0.44.0.md b/docs/markdown/Release-notes-for-0.44.0.md index 56956d7..d765940 100644 --- a/docs/markdown/Release-notes-for-0.44.0.md +++ b/docs/markdown/Release-notes-for-0.44.0.md @@ -145,3 +145,9 @@ myprog = find_program('myscript.py') ``` Then Meson will run the script with its internal Python version if necessary. + +## Libwmf dependency now supports libwmf-config + +Earlier, `dependency('libwmf')` could only detect the library with pkg-config +files. Now, if pkg-config files are not found, Meson will look for +`libwmf-config` and if it's found, will use that to find the library. diff --git a/mesonbuild/dependencies/misc.py b/mesonbuild/dependencies/misc.py index a628151..37195cc 100644 --- a/mesonbuild/dependencies/misc.py +++ b/mesonbuild/dependencies/misc.py @@ -517,6 +517,7 @@ class CupsDependency(ExternalDependency): class LibWmfDependency(ExternalDependency): + @FeatureNew('LibWMF Dependency', '0.44.0') def __init__(self, environment, kwargs): super().__init__('libwmf', environment, None, kwargs) -- cgit v1.1