[QBS] 'Large' projects with hierarchy

Joerg Bornemann joerg.bornemann at theqtcompany.com
Mon Jan 5 10:40:08 CET 2015


On 02-Jan-15 14:38, Marcel Mulder wrote:

[...]
>> I can also get this to compile by adding Depends { name: “cpp”} to the product but than it does not use my compiler setting which I need for my ARM cortex controller.
>> I few question raises:
>>
>> 1. Is there another way of dealing with defining the compile option in one qbs file and and define include paths and source files in another abs file?

You could use inheritance to define products with special properties.
Qt Creator or qbs itself are good examples for doing things like this.

>> 2. Is it an idea that if you depend on a product the files defined in the sub product are added the the files list of the product which depends on it? Just as the include path is added to the compile options.

Sounds like QBS-59.


BR,

Joerg



More information about the Qbs mailing list