[Qbs] Rule.Return dynamic list for outputArtifacts
Richard Weickelt
richard at weickelt.de
Tue Jul 21 15:43:54 CEST 2020
> 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 to understand - are there other ways?
> For example, to ignore section
> {
> filePath: generatedFilesDir + "/sip" + moduleSipName + "part5.cpp",
> fileTags: ["cpp"],
> cpp: {
> cxxFlags: sipCxxFlags
> }
> }
> if the file ("sip" + moduleSipName + "part5.cpp") does not exist
The number of output files depends on the input file content and cannot be
known in advance? Then maybe this thread gives you some ideas:
https://www.mail-archive.com/qbs@qt-project.org/msg01022.html
The situation hasn't changed since then.
More information about the Qbs
mailing list