[Bug 795107] Meson: missing option to enable/disable plugins

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Jun 18 18:26:41 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=795107

Thibault Saunier <tsaunier at gnome.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tsaunier at gnome.org

--- Comment #25 from Thibault Saunier <tsaunier at gnome.org> ---
(In reply to Xavier Claessens from comment #24)
> Checking in gst-plugins-bad, it seems common check for a lib and its header:
> 
> dep = cc.find_library('foo', required : false)
> if dep.found() and cc.has_header_symbol('foo.h', 'something')
>   ...
> endif
> 
> Converting that pattern to the tristate option is annoying, because if the
> option is "enabled" we want to abort if header is not found but there is no
> "required" kwarg for that function.

We probably want cc.find_dependency back:
https://github.com/thiblahute/meson/commits/compiler.find_dependency - not 100%
sure it is the latest code, I will make sure it is.

You can have a look at how I was using it in the -bad meson component branch:
https://github.com/thiblahute/gst-plugins-bad/commit/8bc030477b0f1eed638838e6842fff85efdaae37#diff-f208d0156984b3c606dccdc01ac83d08R9

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list