On 10/11/2017 10:38 AM, Denis Shienkov wrote:
[...]
I have created a Rule:

Rule{
    inputs:["a_binary","b_binary"]
    Artifact{
        fileTags:["c_binary"]
        filePath:"c.bin";
    }
[...]
}


but is is unclear how to define an output artifact's file pach, because it should be different
for each input, e.g. should be c1.bin, c2.bin and so on.?

IIUC you want the rule to be run once on the whole set of inputs. That's what we call a multiplex rule. Write

Rule {
    multiplex: true
    ...
}

And you can operate on all a_binary and b_binary artifacts in your product.


BR,

Joerg
_______________________________________________
Qbs mailing list
Qbs@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qbs

Reply via email to