[QBS] Retreive git describe result to set cpp.defines value

Joerg Bornemann joerg.bornemann at digia.com
Mon Sep 9 09:54:00 CEST 2013

On 09/09/2013 09:36, Orgad Shaneh wrote:

> If there's a way to pass environment variables, you can also set GIT_DIR
> (but then again, you need access to product.sourceDirectory).

There is, but as you already said, it doesn't help us because 
product.sourceDirectory is undefined.

var p = new Process();
p.setEnv("GIT_DIR", "/somewhere");



Joerg Bornemann
Digia, Qt

More information about the Qbs mailing list