<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 01/06/2018 01:27, Dylan Baker wrote:<br>
</div>
<blockquote type="cite"
cite="mid:151519125432.28592.7543782060239620673@localhost.localdomain">
<pre wrap="">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:</pre>
</blockquote>
That is exactly the problem I've described.<br>
<br>
Looks like the linked bug starts with a different problem, but I
linked it because it mentions "allow calling <code>get_pkgconfig_variable("Cflags")</code>
and <code>get_pkgconfig_variable("Libs")".</code>
<code></code>
<blockquote type="cite"
cite="mid:151519125432.28592.7543782060239620673@localhost.localdomain">
<pre wrap="">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.
</pre>
</blockquote>
Yeah, that's great :)<br>
</body>
</html>