Re: [Qbs] Rule.Return dynamic list for outputArtifacts

2020-07-24 Thread Карелин Павел
23.07.2020 14:34, Christian Kandeler пишет: On Thu, 23 Jul 2020 14:13:13 +0300 Карелин Павел wrote: Having weighed all the "pros" and "cons", I have decided not to use qbs.Process in outputArtifacts. Now I settled on a stupidly-simple solution: I reduced the number of generated files from 6

Re: [Qbs] Rule.Return dynamic list for outputArtifacts

2020-07-23 Thread Christian Kandeler
On Thu, 23 Jul 2020 14:13:13 +0300 Карелин Павел wrote: > Having weighed all the "pros" and "cons", I have decided not to use > qbs.Process in outputArtifacts. Now I settled on a stupidly-simple > solution: I reduced the number of generated files from 6 to 5. But how do you know there will ne

Re: [Qbs] Rule.Return dynamic list for outputArtifacts

2020-07-23 Thread Карелин Павел
Having weighed all the "pros" and "cons", I have decided not to use qbs.Process in outputArtifacts. Now I settled on a stupidly-simple solution: I reduced the number of generated files from 6 to 5. The increase in compilation time in the assembly scale of a large project is almost imperceptible

Re: [Qbs] Rule.Return dynamic list for outputArtifacts

2020-07-21 Thread Christian Kandeler
On Tue, 21 Jul 2020 18:32:10 +0300 Карелин Павел wrote: > How can I execute Command from outputArtifacts? You can't, you need to use a JavaScript command and qbs.Process. Christian ___ Qbs mailing list Qbs@qt-project.org https://lists.qt-project.org/

Re: [Qbs] Rule.Return dynamic list for outputArtifacts

2020-07-21 Thread Карелин Павел
21.07.2020 16:45, Christian Kandeler пишет: On Tue, 21 Jul 2020 15:10:38 +0300 Карелин Павел wrote: I recently needed to develop a rule for a sip generator (see below). Basically, the rule works well, but yesterday it failed. At the output, sip-generator create 6 cpp-files of the following f

Re: [Qbs] Rule.Return dynamic list for outputArtifacts

2020-07-21 Thread Christian Kandeler
On Tue, 21 Jul 2020 15:10:38 +0300 Карелин Павел wrote: > I recently needed to develop a rule for a sip generator (see below). > Basically, the rule works well, but yesterday it failed. At the output, > sip-generator create 6 cpp-files of the following format: > sip_corepartX.cpp (this is just

Re: [Qbs] Rule.Return dynamic list for outputArtifacts

2020-07-21 Thread Richard Weickelt
> However, yesterday I came across a small > sip-file, and the generated cpp-files turned out to be not 6, but only 5. > Naturally, my rule failed. > > Question: how can I resolve my situation? > Of course, I can tell the sip-generator to create fewer cpp-files (parameter > -j), but I would like t

[Qbs] Rule.Return dynamic list for outputArtifacts

2020-07-21 Thread Карелин Павел
Hello. I recently needed to develop a rule for a sip generator (see below). Basically, the rule works well, but yesterday it failed. At the output, sip-generator create 6 cpp-files of the following format: sip_corepartX.cpp (this is justified from the point of view of parallel compilation, cp