[QBS] Referencing Rule properties

Christian Kandeler christian.kandeler at qt.io
Mon Aug 1 09:20:51 CEST 2016


On 07/29/2016 09:05 PM, Dennis Tomas wrote:
> Rule {
>     property string fileName: "resources"
>     multiplex: true
>     Artifact {
>         filePath: baseName + ".qrc" // ReferenceError
>         fileTags: ["qrc"]
>     }
>     prepare: {
> [...]
>     }
> }
>
> I get a ReferenceError as marked above. Is there a way to somehow
> reference baseName from the Artifact's filePath property?

Have you tried parent.baseName?


Christian



More information about the Qbs mailing list