[Qbs] Second rule reads empty file generated by first rule

2017-10-11 Thread Denis Shienkov
Hi all, I have a project with some rules: 'producer' and 'consumer', The 'producer' generates an artifact with the JSON file, and the 'consumer' receive this artifact on input and does trying to read content of this JSON file. BUT: The consumer always reads an empty content, even the file

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

2017-10-11 Thread Denis Shienkov
Many thanks, it works. 2017-10-11 12:18 GMT+03:00 Christian Kandeler : > Your problem is not mainly the output file path, but that you need to > create the mapping first, because qbs cannot know about it. > As for the concrete solution, the first thing to understand is

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

2017-10-11 Thread Christian Kandeler
Your problem is not mainly the output file path, but that you need to create the mapping first, because qbs cannot know about it. As for the concrete solution, the first thing to understand is that you need to create a multiplex rule: Rule { multiplex: true This is because otherwise, the

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

2017-10-11 Thread Joerg Bornemann
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

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

2017-10-11 Thread Denis Shienkov
Hi all, is it possible to do something this? I have following set of files as inputs: 1) a1.bin, a2.bin, a3.bin, ..., aN.bin 2) b1.bin, b2.bin, b3.bin, ..., bN.bin I need to do some processing for this files to have on outputs like: c1.bin = a1.bin + b1.bin c2.bin = a2.bin + b2.bin c3.bin =