[Qbs] Creating many products from a list

Orgad Shaneh orgads at gmail.com
Thu Sep 13 11:10:20 CEST 2018


Hi,

I have a bunch of single-file example apps, which I need to build.

I'd like to create a project with many products, provided by a list.

I can do something like:

--- Example.qbs ---

import qbs


CppApplication {

    files: name + ".cpp"

}


--- Examples.qbs ---

import qbs


Project {

    Example { name: "ex1" }

    Example { name: "ex2" }

    ...

}

But I'm looking for something more dynamic. Is there a way to have a
list-driven products generator?


- Orgad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20180913/94adf80f/attachment.html>


More information about the Qbs mailing list