Browse Source

version in debug message based on git HEAD

pull/464/head
agilob 11 years ago
parent
commit
65780941ce
No known key found for this signature in database
GPG Key ID: 2CACF3EEF598C663
  1. 3
      qtox.pro
  2. 3
      src/main.cpp

3
qtox.pro

@ -44,6 +44,9 @@ TRANSLATIONS = translations/de.ts \ @@ -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 {

3
src/main.cpp

@ -31,6 +31,9 @@ int main(int argc, char *argv[]) @@ -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;

Loading…
Cancel
Save