xref: /glogg/glogg.pro (revision 36b4ae360c9fee4e102dfbf982365b1767944a16)
19a361c77SNicolas Bonnefon# -------------------------------------------------
29a361c77SNicolas Bonnefon# glogg
39a361c77SNicolas Bonnefon# -------------------------------------------------
49a361c77SNicolas BonnefonTARGET = glogg
59a361c77SNicolas BonnefonTEMPLATE = app
69a361c77SNicolas Bonnefon
79a361c77SNicolas Bonnefonwin32:Debug:CONFIG += console
89a361c77SNicolas Bonnefon
99a361c77SNicolas Bonnefon# Input
109a361c77SNicolas BonnefonSOURCES += main.cpp \
119a361c77SNicolas Bonnefon    mainwindow.cpp \
129a361c77SNicolas Bonnefon    crawlerwidget.cpp \
139a361c77SNicolas Bonnefon    abstractlogdata.cpp \
149a361c77SNicolas Bonnefon    logdata.cpp \
159a361c77SNicolas Bonnefon    logfiltereddata.cpp \
169a361c77SNicolas Bonnefon    abstractlogview.cpp \
179a361c77SNicolas Bonnefon    logmainview.cpp \
189a361c77SNicolas Bonnefon    filteredview.cpp \
199a361c77SNicolas Bonnefon    optionsdialog.cpp \
209a361c77SNicolas Bonnefon    configuration.cpp \
219a361c77SNicolas Bonnefon    filtersdialog.cpp \
229a361c77SNicolas Bonnefon    filterset.cpp \
239a361c77SNicolas Bonnefon    savedsearches.cpp
249a361c77SNicolas Bonnefon
259a361c77SNicolas BonnefonHEADERS += version.h \
269a361c77SNicolas Bonnefon    mainwindow.h \
279a361c77SNicolas Bonnefon    crawlerwidget.h \
289a361c77SNicolas Bonnefon    logmainview.h \
299a361c77SNicolas Bonnefon    log.h \
309a361c77SNicolas Bonnefon    filteredview.h \
319a361c77SNicolas Bonnefon    abstractlogdata.h \
329a361c77SNicolas Bonnefon    logdata.h \
339a361c77SNicolas Bonnefon    logfiltereddata.h \
349a361c77SNicolas Bonnefon    abstractlogview.h \
359a361c77SNicolas Bonnefon    optionsdialog.h \
369a361c77SNicolas Bonnefon    configuration.h \
379a361c77SNicolas Bonnefon    filtersdialog.h \
389a361c77SNicolas Bonnefon    filterset.h \
399a361c77SNicolas Bonnefon    savedsearches.h
409a361c77SNicolas Bonnefon
419a361c77SNicolas BonnefongreaterThan(QT_VERSION, "4.4.0") {
429a361c77SNicolas Bonnefon    FORMS += filtersdialog.ui
439a361c77SNicolas Bonnefon}
449a361c77SNicolas Bonnefonelse {
459a361c77SNicolas Bonnefon    message(Using old FiltersDialog)
469a361c77SNicolas Bonnefon    FORMS += filtersdialog_old.ui
479a361c77SNicolas Bonnefon}
489a361c77SNicolas Bonnefon
49*36b4ae36SNicolas Bonnefon# For Windows icon
50*36b4ae36SNicolas BonnefonRC_FILE = glogg.rc
519a361c77SNicolas Bonnefon
529a361c77SNicolas BonnefonRESOURCES = glogg.qrc
539a361c77SNicolas Bonnefon
549a361c77SNicolas Bonnefondebug:OBJECTS_DIR = $${OUT_PWD}/.obj/debug-shared
559a361c77SNicolas Bonnefonrelease:OBJECTS_DIR = $${OUT_PWD}/.obj/release-shared
569a361c77SNicolas Bonnefondebug:MOC_DIR = $${OUT_PWD}/.moc/debug-shared
579a361c77SNicolas Bonnefonrelease:MOC_DIR = $${OUT_PWD}/.moc/release-shared
589a361c77SNicolas Bonnefon
599a361c77SNicolas BonnefonRelease:DEFINES += FILELOG_MAX_LEVEL=\"logERROR\"
609a361c77SNicolas BonnefonDebug:DEFINES += FILELOG_MAX_LEVEL=\"logDEBUG\"
619a361c77SNicolas Bonnefon
629a361c77SNicolas BonnefonQMAKE_CXXFLAGS += -DGLOGG_DATE=\\\"`date \
639a361c77SNicolas Bonnefon    +'\"%F\"'`\\\"
649a361c77SNicolas BonnefonQMAKE_CXXFLAGS += -DGLOGG_VERSION=\\\"`git \
659a361c77SNicolas Bonnefon    describe`\\\"
669a361c77SNicolas BonnefonQMAKE_CXXFLAGS += -DGLOGG_COMMIT=\\\"`git \
679a361c77SNicolas Bonnefon    rev-parse --short \
689a361c77SNicolas Bonnefon    HEAD`\\\"
69