[Qbs] Evaluation of Conditional Depends

Christian Gudrian qbs at gudrian.org
Sat Jun 6 18:30:38 CEST 2020


Hello!

In ModuleA there is a property enableFeature which by default is false.

ModuleB conditionally depends on ModuleC, if ModuleA.enableFeature is true.

A Product depends on ModuleA and ModuleB and sets ModuleA.enableFeature to true. However, ModuleC is not used as a dependency.

I assume this is expected behaviour, because otherwise it might be impossible to reach a stable dependency graph. But how can I achieve what I’m trying to do here?

Thanks!

Christian


More information about the Qbs mailing list