fix git revision detection
This commit is contained in:
parent
5226f5395e
commit
8eada7eaa3
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ DISTFILES += ../../resources/scripts/uncrustify/uncrustify.cfg
|
||||||
CODECFORTR = UTF-8
|
CODECFORTR = UTF-8
|
||||||
CODECFORSRC = UTF-8
|
CODECFORSRC = UTF-8
|
||||||
|
|
||||||
exists(.git) {
|
exists($PWD/../../.git) {
|
||||||
APP_REVISION = $$system(git rev-parse --short HEAD)
|
APP_REVISION = $$system(git rev-parse --short HEAD)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,4 +33,4 @@ equals(USE_WEBENGINE, false) {
|
||||||
APP_REVISION = $$sprintf('%1-%2', $$APP_REVISION, nowebengine)
|
APP_REVISION = $$sprintf('%1-%2', $$APP_REVISION, nowebengine)
|
||||||
}
|
}
|
||||||
|
|
||||||
DEFINES *= APP_REVISION='"\\\"$$APP_REVISION\\\""'
|
DEFINES *= APP_REVISION='"\\\"$$APP_REVISION\\\""'
|
||||||
|
|
Loading…
Add table
Reference in a new issue