[Qbs] Using ConanfileProbe with yocto cross compiling toolchain
Kai Dohmen
psykai1993 at googlemail.com
Fri May 15 12:23:14 CEST 2020
> 1. Add an additionalEnvironmentVariables property to ConanfileProbe
> 2. Append these to the process environment in ConanfileProbe. See
> https://doc.qt.io/qbs/jsextension-process.html#setenv
> 3. Add an additional Probe item in your project file that extracts
> the environment variables from the script.
>
> Probes are currently executed in the order of their appearance in the
qbs
> file, so make sure it comes first.
>
> Would that be a solution for you? Then I would warmthly welcome a patch.
I will try this approach. But maybe I use `conan install -e` instead of
setting the environment variables for the complete process.
Do you know how I can easily extract the environment variables?
https://doc.qt.io/qbs/jsextension-environment.html#currentenv seems like
a solution but I don't know how to access a process environment with this.
Thanks for the help so far.
Kai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20200515/472b03b5/attachment.html>
More information about the Qbs
mailing list