Re: [Qbs] Evaluation of Conditional Depends
On Sun, 7 Jun 2020 at 04:30, Christian Gudrian wrote: > > 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. That looks like a weird scenario, maybe this means that the enableFeature property is not in the right place. Can't you move it to the top project, and pull it in Module A & B? Or maybe proxy the property in module B, e.g. your product assigns the same value to ModuleA.enableFeature and ModuleB.enableSameFeature? Chris ___ Qbs mailing list Qbs@qt-project.org https://lists.qt-project.org/listinfo/qbs
Re: [Qbs] Evaluation of Conditional Depends
> 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. Could you clarify the relationship between ModuleA and ModuleB? Maybe post some minimal example code. ___ Qbs mailing list Qbs@qt-project.org https://lists.qt-project.org/listinfo/qbs
[Qbs] Evaluation of Conditional Depends
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 ___ Qbs mailing list Qbs@qt-project.org https://lists.qt-project.org/listinfo/qbs