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