[Qbs] Mysterious config:<configuration-name> parameter
Christian.Kandeler at qt.io
Mon Nov 5 13:50:31 CET 2018
On Sun, 4 Nov 2018 00:54:25 +0300
Иван Комиссаров <abbapoh at gmail.com> wrote:
> Perhaps, I am blind, but I can’t find any mentions in documentation.
> What’s this is used for?
It's the name of the configuration to which subsequent property assignments apply. For instance:
$ qbs config:x profile:p1 config:y profile:p2
This builds the project twice, for configurations x and y. The former uses profile p1, the latter uses profile p2.
> Does this parameter only specifies the output folder where QBS will build sources?
> Or it has some other usages I am not aware of?
If the name is "debug" or "release", then qbs.buildVariant gets that as its default value.
More information about the Qbs