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 <[email protected]>
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
> [email protected]
> http://lists.qt-project.org/mailman/listinfo/qbs
>
_______________________________________________
QBS mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qbs

Reply via email to