[Qbs] Dynamic generation of the resource file

Иван Комиссаров abbapoh at gmail.com
Fri Oct 8 10:07:13 CEST 2021


You can just do 


outputArtifacts: {
    return [{
        fileTags: input.fileTags.contains("encription") ? ["encript-resource"] : ["encript-resource2"],
        filePath: FileInfo.joinPaths(project.buildDirectory, "encription", input.baseName + ".enc")
    }];
}


Ivan

> 8 окт. 2021 г., в 10:45, Карелин Павел <hkarel at yandex.ru> написал(а):
> 
> Hi. 
> 
> Ivan, only now have "reached the hands" to see your decision. Everything turned out, the only thing at first I created two separate rules (according to the rule for each group). It looked like a flaw. However, then I figured out how to make a universal rule. See comment-section "Variant 1" and "Variant 2" in the attached file.
> 
> Denis, Ivan, thank you for your help in solving this problem!
> 
> BR, Pavel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20211008/acff1013/attachment-0001.html>


More information about the Qbs mailing list