On 2014-06-02, at 10:49 AM, Joerg Bornemann <[email protected]> wrote:
> On 02-Jun-14 15:10, Denis Shienkov wrote:
>
>> are available any way to get a product property, similar with a module
>> property way?
>>
>> e.g. by analogy with Module:
>>
>> var moduleProperty = product.moduleProperties(moduleName, propertyName) ;
>>
>> but only for Product:
>>
>> var productProperty = product.poductProperties(productName, propertyName) ;
>>
>> It is possible?
>
> If the product you want to query is a dependency of the current product
> you can traverse product.dependencies:
>
> for (var i in product.dependencies) {
> var dep = product.dependencies[i];
> print(dep.name);
> }
>
> With product.dependencies you can access the dependency tree of the
> current product.
>
>
> BR,
>
> Joerg
> _______________________________________________
> QBS mailing list
> [email protected]
> http://lists.qt-project.org/mailman/listinfo/qbs
That should be documented (it's listed in QBS-203).
--
Jake Petroules - jake.petroules at petroules.com
Chief Technology Officer - Petroules Corporation
_______________________________________________
QBS mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qbs