<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 26 May 2017 at 17:08, Daniel Stone <span dir="ltr"><<a href="mailto:daniel@fooishbar.org" target="_blank">daniel@fooishbar.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Jussi,<br>
<span class="gmail-"><br>
On 26 May 2017 at 14:55, Jussi Kukkonen <<a href="mailto:jussi.kukkonen@intel.com">jussi.kukkonen@intel.com</a>> wrote:<br>
> On 26 May 2017 at 14:32, Emil Velikov <<a href="mailto:emil.l.velikov@gmail.com">emil.l.velikov@gmail.com</a>> wrote:<br>
</span><span class="gmail-">>> b) with a wrapper script - see [1].<br>
>> I think that the "export PKG_CONFIG_DIR=" is a typo (should be ..PATH<br>
>> instead) and is not strictly required - feel free to check either way.<br>
>> Note that the exec at the end might need to be amended to<br>
>> /path/to/$(CHOST)-pkg-config.<br>
><br>
> We don't provide a target wrapper -- I believe because it provides no value<br>
> at all on top of the setup we have (the pkg-config that autotools finds has<br>
> all the environment variables set correctly. It is essentially<br>
> $(CHOST)-pkg-config already).<br>
><br>
> If I've missed something, I'd be happy to hear that. At the moment I think<br>
> pkg-config just does not help in this case.<br>
<br>
</span>Thinking out loud, how about searching for a separate pkg-config file<br>
(wayland-scanner-native.pc as a strawman) first, then falling back to<br>
wayland-scanner.pc? The BitBake recipes could then install that<br>
somewhere in $PKG_CONFIG_PATH as a special case in the install target.<br></blockquote><div><br></div><div>Maybe I don't understand but that doesn't sound any easier: wayland would still need to be modified (to install an additional pc-file) and all the wayland-scanner users would need to be modified to look for that new pc file (unless you meant pkg-config would be modified to always look for "-native.pc").</div><div><br></div><div><font color="#500050"><span style="font-size:12.8px">I don't really mind if our case requires a configure option in every wayland-scanner using project, I'd just like to avoid patching build systems.</span></font></div><div><br></div><div>Jussi<br></div></div></div></div>