[Qbs] Rule with merging of inputs tuples (pairs)

Joerg Bornemann joerg.bornemann at qt.io
Wed Oct 11 11:12:25 CEST 2017


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



More information about the Qbs mailing list