1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

version in debug message based on git HEAD

This commit is contained in:
agilob 2014-10-18 08:47:42 +01:00
parent 26eb08aa00
commit 65780941ce
No known key found for this signature in database
GPG Key ID: 2CACF3EEF598C663
2 changed files with 6 additions and 0 deletions

View File

@ -44,6 +44,9 @@ TRANSLATIONS = translations/de.ts \
RESOURCES += res.qrc RESOURCES += res.qrc
GIT_VERSION = $$system(git rev-parse HEAD)
DEFINES += GIT_VERSION=\\\"$$GIT_VERSION\\\"
contains(JENKINS,YES) { contains(JENKINS,YES) {
INCLUDEPATH += ./libs/include/ INCLUDEPATH += ./libs/include/
} else { } else {

View File

@ -32,6 +32,9 @@ int main(int argc, char *argv[])
QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath()); QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath());
a.addLibraryPath("platforms"); a.addLibraryPath("platforms");
qDebug() << "built on: " << __TIME__ << __DATE__;
qDebug() << "commit: " << GIT_VERSION << "\n";
// Load translations // Load translations
QTranslator translator; QTranslator translator;
if (Settings::getInstance().getUseTranslations()) if (Settings::getInstance().getUseTranslations())