[Qbs] Include current git branch in installation directory
Christian Kandeler
Christian.Kandeler at qt.io
Fri Nov 9 14:41:49 CET 2018
On Fri, 9 Nov 2018 13:53:25 +0100
Christian Gudrian <christian.gudrian at aucos.de> wrote:
> Am 09.11.2018 um 13:49 schrieb richard at weickelt.de:
> > I think You can use the Probe item for that purpose.
>
> That would help to determine the current git branch. But how do I tell
> Qbs to prefix that branch to all installation paths? Neither
> qbs.installPrefix nor qbs.installRoot (which shouldn't be touched within
> qbs files anyway) can apparently be set globally at project level but
> only in the respective Group item.
You'll have to do it in all products. Typically, you do that by pulling in a central module that's responsible for your build configuration.
Christian
More information about the Qbs
mailing list