diff options
| author | 2022-03-14 01:25:47 +0530 | |
|---|---|---|
| committer | 2022-03-14 01:29:33 +0530 | |
| commit | 9308711725629bb9255a209455a22d6e83f57623 (patch) | |
| tree | 196ebad94bcceffb8cb631e3b801f0ca0b1ae2f8 /src/WhatsApp.pro | |
| parent | 3e96cc6bbade480376ab9d554318a1233578d323 (diff) | |
| download | whatsie-9308711725629bb9255a209455a22d6e83f57623.tar.gz whatsie-9308711725629bb9255a209455a22d6e83f57623.zip | |
add more debug info in util class
- pro: define new macros to get git info
- main: -v print version info
- util: - more info in debug; use QRandomGenerator
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 \ |
