Re: [QBS] Multiple products, sharing the same settings, within single .qbs file

2016-08-25 Thread Christian Kandeler
On 08/25/2016 01:11 AM, Andrzej Telszewski wrote: > Is it possible to have multiple products, with common settings, in > single qbs file? > > Say, something like: > > Project { > Settings { > cpp.warningLevel: "all" > cpp.cxxLanguageVersion: "gnu99" > } > > Product {

Re: [QBS] Multiple products, sharing the same settings, within single .qbs file

2016-08-24 Thread Andrzej Telszewski
On 25/08/16 01:44, NIkolai Marchenko wrote: yes, I meant a separate settings file. I do not know if it is possible to do what you want in a single file. Oh, I see. I'll do it with separate file then. Thanks! On Thu, Aug 25, 2016 at 2:31 AM, Andrzej Telszewski mailto:atelszew...@gmail.com>>

Re: [QBS] Multiple products, sharing the same settings, within single .qbs file

2016-08-24 Thread NIkolai Marchenko
yes, I meant a separate settings file. I do not know if it is possible to do what you want in a single file. On Thu, Aug 25, 2016 at 2:31 AM, Andrzej Telszewski wrote: > On 25/08/16 01:17, NIkolai Marchenko wrote: > >> Yes, you can. >> >> import CommonFile as Base >> Base{ >> name: "product 1" >

Re: [QBS] Multiple products, sharing the same settings, within single .qbs file

2016-08-24 Thread Andrzej Telszewski
On 25/08/16 01:17, NIkolai Marchenko wrote: Yes, you can. import CommonFile as Base Base{ name: "product 1" } Base{ name: "product 2" } etc This: import CommonFile as Base gives me error: error: import CommonFile not found Unless by CommonFile you meant MY file with common settings? But

Re: [QBS] Multiple products, sharing the same settings, within single .qbs file

2016-08-24 Thread NIkolai Marchenko
Yes, you can. import CommonFile as Base Base{ name: "product 1" } Base{ name: "product 2" } etc On Thu, Aug 25, 2016 at 2:11 AM, Andrzej Telszewski wrote: > Hi, > > Is it possible to have multiple products, with common settings, in single > qbs file? > > Say, something like: > > Project { >

[QBS] Multiple products, sharing the same settings, within single .qbs file

2016-08-24 Thread Andrzej Telszewski
Hi, Is it possible to have multiple products, with common settings, in single qbs file? Say, something like: Project { Settings { cpp.warningLevel: "all" cpp.cxxLanguageVersion: "gnu99" } Product { SomehowReference: Settings name: "p1" file