[QBS] Multiple products, sharing the same settings, within single .qbs file
NIkolai Marchenko
enmarantispam at gmail.com
Thu Aug 25 01:44:40 CEST 2016
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 <atelszewski at gmail.com>
wrote:
> 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 if so, then I don't actually want that.
>
> I want both common settings and multiple products to be in *single* file.
>
> I'm using qbs 1.5.2
>
> Thanks.
>
>
>> On Thu, Aug 25, 2016 at 2:11 AM, Andrzej Telszewski
>> <atelszewski at gmail.com <mailto:atelszewski at gmail.com>> wrote:
>>
>> 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"
>> files: "p1.c"
>> }
>>
>> Product {
>> SomehowReference: Settings
>> name: "p2"
>> files: "p2.c"
>> }
>> }
>>
>> I would love to have all of this in a single file.
>>
>> Thanks in advance!
>>
>> --
>> Best regards,
>> Andrzej Telszewski
>> _______________________________________________
>> QBS mailing list
>> QBS at qt-project.org <mailto:QBS at qt-project.org>
>> http://lists.qt-project.org/mailman/listinfo/qbs
>> <http://lists.qt-project.org/mailman/listinfo/qbs>
>>
>>
>>
>
> --
> Best regards,
> Andrzej Telszewski
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20160825/65816420/attachment.html>
More information about the Qbs
mailing list