From 65780941ce496884cae98bd12b833258b30b3246 Mon Sep 17 00:00:00 2001 From: agilob Date: Sat, 18 Oct 2014 08:47:42 +0100 Subject: [PATCH] version in debug message based on git HEAD --- qtox.pro | 3 +++ src/main.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/qtox.pro b/qtox.pro index 790318888..10a17f2fc 100644 --- a/qtox.pro +++ b/qtox.pro @@ -44,6 +44,9 @@ TRANSLATIONS = translations/de.ts \ RESOURCES += res.qrc +GIT_VERSION = $$system(git rev-parse HEAD) +DEFINES += GIT_VERSION=\\\"$$GIT_VERSION\\\" + contains(JENKINS,YES) { INCLUDEPATH += ./libs/include/ } else { diff --git a/src/main.cpp b/src/main.cpp index 1d447dbf9..44e3f9b9f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -31,6 +31,9 @@ int main(int argc, char *argv[]) // Windows platform plugins DLL hell fix QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath()); a.addLibraryPath("platforms"); + + qDebug() << "built on: " << __TIME__ << __DATE__; + qDebug() << "commit: " << GIT_VERSION << "\n"; // Load translations QTranslator translator;