[Mesa-dev] [PATCH 09/14] meson: do not redeclare pkg-config dependencies (yet)
Greg V
greg at unrelenting.technology
Sat Jan 6 01:04:59 UTC 2018
On 01/06/2018 01:27, Dylan Baker wrote:
> We absolutely can't merge this as-is, it will break all of the these since
> they'll end up linking the backend and frontend, which we're not supposed to do.
>
> The bug you linked to has nothing to do with the problem you describe either,
> that issue is that `dependency("threads")` is special in meson, and then evolved
> into a larger issue about the pkg-config generator.
>
> The actual problem here is real, but quite different. You can't use
> get_pkgconfig_variable to get the cflags. The actual workaround is to do
> something like:
That is exactly the problem I've described.
Looks like the linked bug starts with a different problem, but I linked
it because it mentions "allow calling |get_pkgconfig_variable("Cflags")|
and |get_pkgconfig_variable("Libs")".| ||
> prog_pkgconfig = find_program('pkg-config')
> dep_vdpau = declare_dependency(
> compile_args : run_command(prog_pkgconfig, ['vdpau', '--cflags']).stdout().split(),
> )
> ...
>
> And we'll need a new meson feature for doing this without calling pkg-config
> directly. I'll write that feature.
Yeah, that's great :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180106/7391ec48/attachment.html>
More information about the mesa-dev
mailing list