Add build git commit sha in log file

This commit is contained in:
Simon De Backer
2020-09-04 21:10:43 +02:00
parent f8611c1b6e
commit 1528e1ebe2
2 changed files with 2 additions and 0 deletions

View File

@@ -75,6 +75,7 @@ include(sources/QWidgetAnimation/QWidgetAnimation.pri)
DEFINES += QAPPLICATION_CLASS=QApplication
DEFINES += QT_MESSAGELOGCONTEXT
DEFINES += GIT_COMMIT_SHA="\\\"$(shell git -C \""$$_PRO_FILE_PWD_"\" rev-parse --verify HEAD)\\\""
TEMPLATE = app
DEPENDPATH += .