Add creation of BUILD_DATE and BUILD_TIME

This commit is contained in:
Gerhard Hoffmann 2023-10-04 14:34:54 +02:00
parent 2764ef4371
commit 2a2751f6f3

View File

@ -22,15 +22,24 @@ DEFINES += QT_DEPRECATED_WARNINGS
# Always execute contents of opkg_commands-file (even if there are no
# changes).
VERSION=1.3.6
win32 {
BUILD_DATE=$$system("date /t")
BUILD_TIME=$$system("time /t")
} else {
BUILD_DATE=$$system("date +%d-%m-%y")
BUILD_TIME=$$system("date +%H:%M:%S")
}
VERSION="1.3.6"
INCLUDEPATH += plugins
CONFIG += c++17
# CONFIG -= app_bundle
DEFINES+=APP_VERSION=\\\"$$VERSION\\\"
DEFINES+=APP_BUILD_DATE=\\\"$$BUILD_DATE\\\"
DEFINES+=APP_BUILD_TIME=\\\"$$BUILD_TIME\\\"
QMAKE_CXXFLAGS += -g
QMAKE_CXXFLAGS += -Wno-deprecated-copy