diff options
Diffstat (limited to 'src/WhatsApp.pro')
-rw-r--r-- | src/WhatsApp.pro | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/WhatsApp.pro b/src/WhatsApp.pro index 103032b..083f339 100644 --- a/src/WhatsApp.pro +++ b/src/WhatsApp.pro @@ -35,17 +35,21 @@ DEFINES += QT_DEPRECATED_WARNINGS # No debug output in release mode CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT -# You can also make your code fail to compile if you use deprecated APIs. -# In order to do so, uncomment the following line. -# You can also select to disable deprecated APIs only up to a certain version of Qt. -#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 - - +# Define git info +GIT_HASH="\\\"$$system(git -C \""$$_PRO_FILE_PWD_"\" rev-parse --short HEAD)\\\"" +GIT_BRANCH="\\\"$$system(git -C \""$$_PRO_FILE_PWD_"\" rev-parse --abbrev-ref HEAD)\\\"" +BUILD_TIMESTAMP="\\\"$$system(date -u +\""%Y-%m-%dT%H:%M:%SUTC\"")\\\"" +DEFINES += GIT_HASH=$$GIT_HASH GIT_BRANCH=$$GIT_BRANCH BUILD_TIMESTAMP=$$BUILD_TIMESTAMP # Set program version VERSION = 3.0 DEFINES += VERSIONSTR=\\\"$${VERSION}\\\" +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + SOURCES += \ SunClock.cpp \ about.cpp \ |