[QBS] Get product property from another product

Denis Shienkov denis.shienkov at gmail.com
Mon Jun 2 19:46:17 CEST 2014


Ahh.. This that is necessary, many thanks! :)

BR,
Denis


02.06.2014 18:49, Joerg Bornemann пишет:
> 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




More information about the Qbs mailing list