Re: [Qbs] Evaluation of Conditional Depends

2020-06-10 Thread Christian Kandeler
On Wed, 10 Jun 2020 11:37:02 +0200 (CEST) "Richard Weickelt" 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

Re: [Qbs] Evaluation of Conditional Depends

2020-06-10 Thread Richard Weickelt
> And of course the module's own properties set in the module file, except > those referring to probes. But we do evaluate the module condition in a > product context. Is that not the real product context or at least very > close? E.g. if product sets moduleX.propA to true and depends on moduleX,

Re: [Qbs] Evaluation of Conditional Depends

2020-06-10 Thread Richard Weickelt
Christian Kandeler wrote on 10. June 2020 10:09 (GMT +02:00): > On Tue, 9 Jun 2020 20:55:43 +0200 > Christian Gudrian wrote: > >> Could it be that only a restricted set of variables is available during >> evaluation of the module’s „condition“ property? Neither >> „product“ nor any imported

Re: [Qbs] Evaluation of Conditional Depends

2020-06-10 Thread Christian Kandeler
On Tue, 9 Jun 2020 20:55:43 +0200 Christian Gudrian wrote: > Could it be that only a restricted set of variables is available during > evaluation of the module’s „condition“ property? Neither „product“ nor any > imported modules’ variables can be accessed („Can’t find variable“ error). > > Is

Re: [Qbs] Evaluation of Conditional Depends

2020-06-09 Thread Christian Gudrian
Hello, again! Richard Weickelt wrote: > You need to add a expression in the modules' condition that evaluates to true > only for one module variant. Could it be that only a restricted set of variables is available during evaluation of the module’s „condition“ property? Neither „product“ nor

Re: [Qbs] Evaluation of Conditional Depends

2020-06-07 Thread Richard Weickelt
Christian Gudrian wrote on 7. June 2020 10:48 (GMT +02:00): > > I’ve put a simple example project on GitHub: > https://github.com/cgudrian/QbsConfigurationDemo > . > > I am trying to implement basic Qbs support for the RT operating system >

Re: [Qbs] Evaluation of Conditional Depends

2020-06-07 Thread Christian Gudrian
Hello! > Could you clarify the relationship between ModuleA and ModuleB? Maybe post > some minimal example code. I’ve put a simple example project on GitHub: https://github.com/cgudrian/QbsConfigurationDemo . I am trying to implement basic

Re: [Qbs] Evaluation of Conditional Depends

2020-06-06 Thread Christian Gagneraud
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

Re: [Qbs] Evaluation of Conditional Depends

2020-06-06 Thread Richard Weickelt
> 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

[Qbs] Evaluation of Conditional Depends

2020-06-06 Thread Christian Gudrian
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