<div dir="ltr">Yup. "Properties" is exactly what I've been looking for! Thanks.<div><br></div><div>Here is some notes about this question.</div><div>I'll leave it here for anyone who will google for same issue:</div><div><div>    cpp.defines: base.concat([</div><div>            "DEFINE_1",</div><div>            "DEFINE_2",</div><div>    ])<br></div><div><br></div><div>    Properties {</div><div>        condition: project.cpu.contains("NRF51822")</div><div><br></div><div>        cpp.defines: base.concat([</div><div>            "CPU_DEFINE_1",</div><div>            "CPU_DEFINE_2",</div><div>        ])<br></div></div><div>    }</div><div><br></div><div>Resulting cpp.defines includes only CPU_DEFINE_1 and CPU_DEFINE_2.</div><div><br></div><div>I had to use product variable and concatenate it with cpp.defines in Properties item.</div><div>I guess it happens because in Product there could be only one cpp.define assignment.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-12 4:27 GMT+08:00 Andrew Knight <span dir="ltr"><<a href="mailto:qt@panimo.net" target="_blank">qt@panimo.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<div><div class="h5"><br>
<br>
On 01/11/2015 08:02 PM, Andrey Anpilogov wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Seems like condition doesn't work correct:<br>
<br>
Group {<br>
     condition: project.cpu.contains("<u></u>NRF51822")<br>
     cpp.includePaths: ['dir1', 'dir2']<br>
}<br>
<br>
Qbs doesn't add 'dir1' and 'dir2' folders to compiler.<br>
Is it valid definition?<br>
</blockquote>
<br></div></div>
It looks like you want a Properties item instead. Groups apply to files within the Product, not the Product as a whole.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Regards<br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-AK<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">-- <br>WBR,<br>  Andrii Anpilogov<br>  Phone: +86 186-1660-3720<br>  Skype: anpilogov.andrey<br>  mailto:<a href="mailto:anpilog@gmail.com" target="_blank">anpilog@gmail.com</a>, <a href="mailto:andrii.anpilogov@mesheven.com" target="_blank">andrii.anpilogov@mesheven.com</a><br><div><img src="http://qrcoder.ru/code/?BEGIN%3AVCARD%0AN%3AAnpilogov%3BAndrey%0AORG%3ACraneMS%0ATITLE%3Asenior+software+developer%2Fteam+Leader%0ATEL%3A%2B380675455666%0AEMAIL%3Aanpilog%40gmail.com%0ANOTE%3AEmbedded+Software+Development%2C+C%2FC%2B%2B%2C+team+leadership%0AEND%3AVCARD&3&0"><br></div></div></div>
</div>