1# ------------------------------------------------- 2# glogg 3# ------------------------------------------------- 4TARGET = glogg 5TEMPLATE = app 6 7win32:Debug:CONFIG += console 8 9# Input 10SOURCES += main.cpp \ 11 mainwindow.cpp \ 12 crawlerwidget.cpp \ 13 abstractlogdata.cpp \ 14 logdata.cpp \ 15 logfiltereddata.cpp \ 16 abstractlogview.cpp \ 17 logmainview.cpp \ 18 filteredview.cpp \ 19 optionsdialog.cpp \ 20 configuration.cpp \ 21 filtersdialog.cpp \ 22 filterset.cpp \ 23 savedsearches.cpp 24 25HEADERS += version.h \ 26 mainwindow.h \ 27 crawlerwidget.h \ 28 logmainview.h \ 29 log.h \ 30 filteredview.h \ 31 abstractlogdata.h \ 32 logdata.h \ 33 logfiltereddata.h \ 34 abstractlogview.h \ 35 optionsdialog.h \ 36 configuration.h \ 37 filtersdialog.h \ 38 filterset.h \ 39 savedsearches.h 40 41greaterThan(QT_VERSION, "4.4.0") { 42 FORMS += filtersdialog.ui 43} 44else { 45 message(Using old FiltersDialog) 46 FORMS += filtersdialog_old.ui 47} 48 49# For Windows icon 50RC_FILE = glogg.rc 51 52RESOURCES = glogg.qrc 53 54debug:OBJECTS_DIR = $${OUT_PWD}/.obj/debug-shared 55release:OBJECTS_DIR = $${OUT_PWD}/.obj/release-shared 56debug:MOC_DIR = $${OUT_PWD}/.moc/debug-shared 57release:MOC_DIR = $${OUT_PWD}/.moc/release-shared 58 59Release:DEFINES += FILELOG_MAX_LEVEL=\"logERROR\" 60Debug:DEFINES += FILELOG_MAX_LEVEL=\"logDEBUG\" 61 62QMAKE_CXXFLAGS += -DGLOGG_DATE=\\\"`date \ 63 +'\"%F\"'`\\\" 64QMAKE_CXXFLAGS += -DGLOGG_VERSION=\\\"`git \ 65 describe`\\\" 66QMAKE_CXXFLAGS += -DGLOGG_COMMIT=\\\"`git \ 67 rev-parse --short \ 68 HEAD`\\\" 69