mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
More GIT qmake stuff
This commit is contained in:
parent
89f2fb2a51
commit
66a7c8f903
@ -38,10 +38,11 @@ TEMPLATE = app
|
||||
|
||||
exists(../.git):{
|
||||
|
||||
DEFINES += GIT_BRANCH=\\\"$$system(git rev-parse --abbrev-ref HEAD)\\\"
|
||||
DEFINES += GIT_REVISION=\\\"$$system(git rev-parse HEAD)\\\"
|
||||
GIT_BRANCH=$$system(git rev-parse --abbrev-ref HEAD)
|
||||
DEFINES += GIT_BRANCH=\\\"$$GIT_BRANCH\"
|
||||
DEFINES += GIT_REVISION=\\\"$$system(git rev-parse HEAD)\"
|
||||
|
||||
equals($$system(git rev-parse --abbrev-ref HEAD),"unstable"):DEFINES += UNSTABLE_BUILD
|
||||
contains(GIT_BRANCH,"unstable"):DEFINES += UNSTABLE_BUILD
|
||||
|
||||
} else {
|
||||
DEFINES += GIT_BRANCH=\\\"UNKNOWN\\\"
|
||||
|
Loading…
Reference in New Issue
Block a user