[Qbs] Accessing qbs.architecture in Probe
Denis Shienkov
denis.shienkov at gmail.com
Thu Jan 30 11:26:44 CET 2020
>However, qbs.architectures is not yet evaluated at the time the probe is
executed.
> Is there a way to get the required information at this early stage?
Hi. Most likelly, you need to store your qbs.architecture to a temporary
property:
YourProbe {
// Inputs
property string myArchitecture: qbs.architecture
configure: {
// HERE YOU CAN GET ACCESS TO THE LOCAL 'myArchitecture' property.
}
}
If I'm understanding correctly.
BR,
Denis
чт, 30 янв. 2020 г. в 13:01, Leon Buckel <leon.buckel at clausmark.com>:
> Hi all,
>
>
>
> I’m running conan from a probe to get all required dependencies for the
> build and to be able to directly include the generated qbs file into the
> project.
>
> For the windows build I need to know whether to request the package for 64
> or 32 bit. However, qbs.architectures is not yet evaluated at the time the
> probe is executed.
>
> Is there a way to get the required information at this early stage?
>
>
>
> Kind Regards,
>
> Leon
> _______________________________________________
> Qbs mailing list
> Qbs at qt-project.org
> https://lists.qt-project.org/listinfo/qbs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20200130/8755c7e0/attachment.html>
More information about the Qbs
mailing list