summaryrefslogtreecommitdiffstats
path: root/version.pri
blob: 9784944e446440c143ed22a5c941fee96f90c4ba (plain)
1
2
3
4
5
6
7
8
unix:system(which git): HAS_GIT = TRUE
win32:system(where git.exe): HAS_GIT = TRUE
contains(HAS_GIT, TRUE) {
    GIT_VERSION = $$system(git describe --always --dirty --long --tags)
}
isEmpty(GIT_VERSION): GIT_VERSION = "(unknown version)"

DEFINES += "QDB_VERSION=\\\"$$GIT_VERSION\\\""