[QBS] Get product property from another product
Jake Petroules
jake.petroules at petroules.com
Mon Jun 2 16:54:01 CEST 2014
On 2014-06-02, at 10:49 AM, Joerg Bornemann <joerg.bornemann at digia.com> 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
> QBS at qt-project.org
> 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
More information about the Qbs
mailing list