[Qbs] Evaluation of Conditional Depends

Christian Kandeler christian.kandeler at qt.io
Wed Jun 10 12:32:40 CEST 2020


On Wed, 10 Jun 2020 11:37:02 +0200 (CEST)
"Richard Weickelt" <richard at weickelt.de> wrote:

> ... And module properties set in the profile. I had a glance look at the source code. When evaluating the condition property, we are taking the following information from the product context into account:
> 
> - module values set in the profile (can even be a local profile within the product item)
> - a fully(?) resolved instance of the qbs module
> 
> The result is then cached since this module might be loaded multiple times in the same product context. I don't see why we could not allow access to product as well as project properties and module properties set in the product item.
> 
> Christian, is that restriction by purpose?

Well, there was no use case so far, and it does seem a bit dubious at first glance. But if there's a compelling case, perhaps it could be added (if it is actually possible; it's been a while since I've done work in that area).


Christian


More information about the Qbs mailing list