> Sorry. I meant how to extract the environment variables from the yocto script.
> My idea was to source the script in a process
> with https://doc.qt.io/qbs/jsextension-process.html 
> and then just query all the process environment variables with
> https://doc.qt.io/qbs/jsextension-environment.html#currentenv.
> This way I would not need to parse the yocto script myself in the
> "YoctoEnvProbe".

Maybe you can write another script that
1. prints the environment variables
2. then sources the yocto script
3. then prints the environment variables again

Run this script in a Probe (with an appropriate shell) and parse the output
somehow. You may also omit step 1 and just use all environment variables
printed by script.

Richard
_______________________________________________
Qbs mailing list
Qbs@qt-project.org
https://lists.qt-project.org/listinfo/qbs

Reply via email to