add more information to about

This commit is contained in:
Yannik Schmidt
2020-09-04 12:59:33 +02:00
parent 41c29d43ce
commit 916005ddea
2 changed files with 24 additions and 5 deletions

View File

@@ -5,6 +5,8 @@
#-------------------------------------------------
GIT_STR_VERSION = $$system(git describe)
DATE_STR = $$system(date)
HOSTNAME_STR = $$system(hostname)
QT += core gui network
@@ -19,6 +21,8 @@ TEMPLATE = app
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
DEFINES += "GIT_VERSION=\"\\\"$$GIT_STR_VERSION\\\"\""
DEFINES += "BUILD_DATE=\"\\\"$$DATE_STR\\\"\""
DEFINES += "BUILD_HOST=\"\\\"$$HOSTNAME_STR\\\"\""
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.