[QBS] Get property from parent project

Christian Kandeler christian.kandeler at digia.com
Thu May 22 16:14:42 CEST 2014


On 05/22/2014 04:00 PM, Tim Hutt wrote:
> Relatedly, how can I access properties from a Rule's prepare script?
> E.g. this does not work - it thinks foo is not defined.
>
> 		Rule  {
>
>
> 			property  string  foo:  "baz"
>
>
> 			prepare:  {
>
> 				var  /a = foo;/
>
> /
> /

Yeah, Rules (much like Artifacts) are not first-class items in that they 
don't really support adding custom properties in a meaningful way (i.e. 
you can't access them later from prepare scripts). Maybe that is worth 
changing. Jörg, what's your opinion on this?


Christian



More information about the Qbs mailing list