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 e02db84a1..c683f462c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -30,6 +30,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"; // Install Unicode 6.1 supporting font QFontDatabase::addApplicationFont("://DejaVuSans.ttf");