xref: /glogg/glogg.pro (revision b5a5d5fa3f4d72b6f1109d0e758da611083fcac0)
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
4936b4ae36SNicolas Bonnefon# For Windows icon
5036b4ae36SNicolas BonnefonRC_FILE = glogg.rc
519a361c77SNicolas BonnefonRESOURCES = glogg.qrc
529a361c77SNicolas Bonnefon
53*b5a5d5faSNicolas Bonnefon# Install (for unix)
54*b5a5d5faSNicolas Bonnefontarget.path = $$PREFIX/bin
55*b5a5d5faSNicolas BonnefonINSTALLS = target
56*b5a5d5faSNicolas Bonnefon
57*b5a5d5faSNicolas Bonnefon# Build directories
589a361c77SNicolas Bonnefondebug:OBJECTS_DIR = $${OUT_PWD}/.obj/debug-shared
599a361c77SNicolas Bonnefonrelease:OBJECTS_DIR = $${OUT_PWD}/.obj/release-shared
609a361c77SNicolas Bonnefondebug:MOC_DIR = $${OUT_PWD}/.moc/debug-shared
619a361c77SNicolas Bonnefonrelease:MOC_DIR = $${OUT_PWD}/.moc/release-shared
629a361c77SNicolas Bonnefon
639a361c77SNicolas BonnefonRelease:DEFINES += FILELOG_MAX_LEVEL=\"logERROR\"
649a361c77SNicolas BonnefonDebug:DEFINES += FILELOG_MAX_LEVEL=\"logDEBUG\"
659a361c77SNicolas Bonnefon
66*b5a5d5faSNicolas Bonnefon# Official builds can be generated with `qmake VERSION="1.2.3"'
67*b5a5d5faSNicolas BonnefonisEmpty(VERSION) {
68*b5a5d5faSNicolas Bonnefon    QMAKE_CXXFLAGS += -DGLOGG_DATE=\\\"`date +'\"%F\"'`\\\"
69*b5a5d5faSNicolas Bonnefon    QMAKE_CXXFLAGS += -DGLOGG_VERSION=\\\"`git describe`\\\"
70*b5a5d5faSNicolas Bonnefon    QMAKE_CXXFLAGS += -DGLOGG_COMMIT=\\\"`git rev-parse --short HEAD`\\\"
71*b5a5d5faSNicolas Bonnefon}
72*b5a5d5faSNicolas Bonnefonelse {
73*b5a5d5faSNicolas Bonnefon    QMAKE_CXXFLAGS += -DGLOGG_VERSION=\\\"$$VERSION\\\"
74*b5a5d5faSNicolas Bonnefon}
75