[Qbs] Set properties via command line

Stephan Gatzka stephan.gatzka at gmail.com
Thu Jun 8 11:51:55 CEST 2017


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.showCoverageData:true
the if branch is never entered.

Am I miss something? I'm pretty sure that this setup worked well with 
former versions of qbs. Currently I'm running 1.8.0.

Regards,
Stephan



More information about the Qbs mailing list