> 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
_______________________________________________
Qbs mailing list
Qbs@qt-project.org
https://lists.qt-project.org/listinfo/qbs

Reply via email to