[QBS] Referencing Rule properties
Dennis Tomas
den.t at gmx.de
Mon Aug 1 10:24:21 CEST 2016
Am 01.08.2016 um 09:20 schrieb Christian Kandeler:
> 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?
>
Yes, this also results in a ReferenceError. I've also tried setting 'id:
rule' on the rule and referencing 'rule.baseName' in the Artifact,
leading to a ReferenceError as well.
More information about the Qbs
mailing list