[QBS] concatenating propierties / outer.concat

Joerg Bornemann joerg.bornemann at digia.com
Wed May 29 09:48:25 CEST 2013

On 28/05/2013 20:28, Christian Stoitner wrote:

> In older versions (conditionaly) concatenating properties was done using a
> properties block and outer.concat (see http://qt-project.org/wiki/Qbs-Quick-
> Reference).
> So, whats the current way to conditionaly add defines or cxxFlags?

Long story told short: use the Properties item for mutual exclusive 
conditions. The magic outer value is not available there anymore.

The Properties item slightly changed. The current documentation for it 
is available here: 

For more complicated conditions use JS on the right hand side of the 
property assignment.

Note that outer still works as described in the quickref for Group items.

> Also, while trying to find a way around that problem I found a crash instead -
> not sure if this is already reported. Defining a property twice results in a
> segmentation fault in revision b0d22a99756c250d384cd911bd7612d516cfd6fb.

Whoops! Thanks, we'll fix it.



More information about the Qbs mailing list