GNOME Bugzilla – Bug 780657
meson: Use dep.get_pkgconfig_variable()
Last modified: 2017-03-28 18:04:13 UTC
We currently uses the pkg-config command line directly, which isn't very nice (at least in tests/check). We should probably use the new get_pkgconfig_variable() method on the dep object. Note that meson may need to be extended, since the get_pkgconfig_variable() does not allow setting a variable. An example is for bash completion, we set prefix, in order to transform the returned value. With current meson, we'd have to get the prefix, and variable, subtract the prefix and add the configured prefix.
Why do we need to bump meson version for this? get_pkgconfig_variable() was added in 0.36.0 according to Meson docs, and we require Meson >= 0.36.0
Apparently not, well, the bash completion will be a git ugly, but should work still. Commit: 1b3bdf3e10c12532ba363154176d329bada383a2 URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=1b3bdf3e10c12532ba363154176d329bada383a2 Author: Thibault Saunier <thibault.saunier@osg.samsung.com> Date: Tue Mar 28 14:22:41 2017 -0300 pkgconfig: Do not ever build an installed .pc file Commit: a7be8815b50b68214074a97e6f2ce84368e16f30 URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=a7be8815b50b68214074a97e6f2ce84368e16f30 Author: Thibault Saunier <thibault.saunier@osg.samsung.com> Date: Tue Mar 28 14:23:16 2017 -0300 meson: Use get_pkgconfig_variable instead of calling pkg-config ourself It is avalaible in meson 0.36 which is now are requirement Commit: 69a10f67a5d353f328f638c671aee7f1c18d03be URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=69a10f67a5d353f328f638c671aee7f1c18d03be Author: Thibault Saunier <thibault.saunier@osg.samsung.com> Date: Tue Mar 28 14:31:34 2017 -0300 meson: Use get_pkgconfig_variable instead of calling pkg-config ourself It is avalaible in meson 0.36 which is now are requirement Commit: 4df327a69b9739929433f8bb7eb0c030a70d4e6d URL: http://cgit.freedesktop.org/gstreamer/gst-build/commit/?id=4df327a69b9739929433f8bb7eb0c030a70d4e6d Author: Thibault Saunier <thibault.saunier@osg.samsung.com> Date: Tue Mar 28 14:32:24 2017 -0300 uninstalled: Take into account -good pkgconfig uninstalled file Commit: 6a37782549f25535ea2624b7a9c34a78d45bb626 URL: http://cgit.freedesktop.org/gstreamer/gst-editing-services/commit/?id=6a37782549f25535ea2624b7a9c34a78d45bb626 Author: Thibault Saunier <thibault.saunier@osg.samsung.com> Date: Tue Mar 28 14:25:06 2017 -0300 meson: Use get_pkgconfig_variable instead of calling pkg-config ourself It is avalaible in meson 0.36 which is now are requirement Nothing happens on not found dependencies.