[QBS] Get product property from another product
Joerg Bornemann
joerg.bornemann at digia.com
Mon Jun 2 16:49:05 CEST 2014
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