And products presumably, because this also does not work: Product { property string foo: "baz" Rule { prepare: { var a = product.foo;
On 22 May 2014 15:14, Christian Kandeler <christian.kande...@digia.com>wrote: > 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 > _______________________________________________ > QBS mailing list > QBS@qt-project.org > http://lists.qt-project.org/mailman/listinfo/qbs >
_______________________________________________ QBS mailing list QBS@qt-project.org http://lists.qt-project.org/mailman/listinfo/qbs