I am currently porting my qmake files to Qbs. In my qmake setup I have created few defineTest
in a single .pri
file that is included by all other project files. These typicially just call one of the functions with a parameter (usually a project name) and that is it. Now with Qbs it seems to me that there could potentially be just a single file (docs even hint that) for all the projects.
However I would like to take my previous concept a bit further. Since I have the same structure for each project I could - in theory - iterate over the directories and for each directory name create a Product
. I have a list of directories but now I do not know how to create a loop that would create a Product
for each name in the list.
Does Qbs support loops? What is the syntax? And if not, what would be a workaround, perhaps importing a javascript module that has that logic? But how would I export it back in Qbs?
QMake does have loops but it lacks the file system capabilities and right now t seems that Qbs have file system capabilities but does not have loops the same qmake does...