Re: [Qbs] How do I use Parameter property in a module itself?

2019-06-10 Thread Richard Weickelt
> Is it true that all module properties should be allowed to be set per-file? > > Product { > Depends { name: "mymodule"; } > mymodule.useFeature: true // enable some probes here, do heavy checks > > Group { files: «file»; mymodule.useFeature: false; } // does nothing, > all

Re: [Qbs] How do I use Parameter property in a module itself?

2019-06-10 Thread Иван Комиссаров
However, this is an interesting question. Is it true that all module properties should be allowed to be set per-file? Product { Depends { name: "mymodule"; } mymodule.useFeature: true // enable some probes here, do heavy checks Group { files: «file»; mymodule.useFeature:

Re: [Qbs] How do I use Parameter property in a module itself?

2019-06-10 Thread Иван Комиссаров
Yes, I’d like to have some syntax sugar here. But 2-liner is probably OK too. > 10 июня 2019 г., в 20:32, Richard Weickelt написал(а): > > Ivan, > > Do you actually want to achieve this? > >Module { >property bool useFeature: false > >Probes.BinaryProbe { >

[Qbs] How do I use Parameter property in a module itself?

2019-06-10 Thread Иван Комиссаров
I’d like to do something like this: Module { Parameter { property bool useFeature: false } Probes.BinaryProbe { condition: useFeature } } So I’d be able to write: Depends { name: "mymodule"; useFeature: true; } ___ Qbs