[Qbs] Set properties via command line

2017-06-08 Thread Stephan Gatzka
Hi all, I have a problem to set a property in a product from the qbs command line: Product { name: "unitTestRunner" property bool showCoverageData: false ... Rule { ... prepare: { if (product.showCoverageData) { } } } } If I run: qbs unitTestRunner.showCoverag

Re: [Qbs] Qbs and QtC status

2017-06-08 Thread Christian Kandeler
On Thu, 8 Jun 2017 09:38:47 +1200 Christian Gagneraud wrote: > I've just went through the "New project" dialog/wizard (Official > OpenSource QtC 4.3 for Windows), and here is the list of project > template that allows you or not to choose your build system: > > Application: > - Qt Widget: KO > -

Re: [Qbs] Set properties via command line

2017-06-08 Thread Christian Kandeler
On Thu, 8 Jun 2017 11:51:55 +0200 Stephan Gatzka wrote: > I have a problem to set a property in a product from the qbs command line: > Product { >name: "unitTestRunner" >property bool showCoverageData: false > >... > >Rule { > ... > prepare: { >if (product.show

Re: [Qbs] Set properties via command line

2017-06-08 Thread Stephan Gatzka
Thanks, that works. > We should probably emit a warning if the prefix is missing; I'll make > a note. In addition, it could be helpful to update the language intro: http://doc.qt.io/qbs/language-introduction.html Regards, Stephan ___ Qbs mailing l

Re: [Qbs] Set properties via command line

2017-06-08 Thread Christian Kandeler
On Thu, 8 Jun 2017 14:54:53 +0200 Stephan Gatzka wrote: > In addition, it could be helpful to update the language intro: > http://doc.qt.io/qbs/language-introduction.html Hm, I did not find outdated info there. Which part are you referring to? Christian