[QBS] A way to reuse Depends item's value by Export item?
Christian Kandeler
christian.kandeler at digia.com
Mon Sep 22 09:51:20 CEST 2014
On 09/19/2014 09:31 PM, Dmitrii Volosnykh wrote:
> As of now I have to duplicate Depends item inside Product and Export
> items in order to make the original product and any dependent ones
> compile nicely.
>
> Is there a way to specify something like follows?
> Export {
> Depends: product.depends
> }
No. And while such a thing can probably be added, I'm not so sure it
would be a good idea: Most of the time a product's dependencies are not
identical with what its dependents need, and offering a simple way to
make the two things the same would probably lead to a lot of people
exporting too much in order to save keystrokes.
Something like this would not have that drawback:
Depends {
name: "xyz"
export: true
}
Although it seems a bit questionable that now export information is
outside the Export block.
Christian
More information about the Qbs
mailing list