xref: /glogg/glogg.pro (revision f35c72b940428d7e0481d59e7447a966a881ad36)
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 \
230ef7fbb1SNicolas Bonnefon    savedsearches.cpp \
2462819106SNicolas Bonnefon    infoline.cpp \
25*f35c72b9SNicolas Bonnefon    logdataworkerthread.cpp \
26*f35c72b9SNicolas Bonnefon    logfiltereddataworkerthread.cpp
279a361c77SNicolas Bonnefon
289a361c77SNicolas BonnefonHEADERS += version.h \
299a361c77SNicolas Bonnefon    mainwindow.h \
309a361c77SNicolas Bonnefon    crawlerwidget.h \
319a361c77SNicolas Bonnefon    logmainview.h \
329a361c77SNicolas Bonnefon    log.h \
339a361c77SNicolas Bonnefon    filteredview.h \
349a361c77SNicolas Bonnefon    abstractlogdata.h \
359a361c77SNicolas Bonnefon    logdata.h \
369a361c77SNicolas Bonnefon    logfiltereddata.h \
379a361c77SNicolas Bonnefon    abstractlogview.h \
389a361c77SNicolas Bonnefon    optionsdialog.h \
399a361c77SNicolas Bonnefon    configuration.h \
409a361c77SNicolas Bonnefon    filtersdialog.h \
419a361c77SNicolas Bonnefon    filterset.h \
420ef7fbb1SNicolas Bonnefon    savedsearches.h \
4362819106SNicolas Bonnefon    infoline.h \
44*f35c72b9SNicolas Bonnefon    logdataworkerthread.h \
45*f35c72b9SNicolas Bonnefon    logfiltereddataworkerthread.h
469a361c77SNicolas Bonnefon
479a361c77SNicolas BonnefongreaterThan(QT_VERSION, "4.4.0") {
489a361c77SNicolas Bonnefon    FORMS += filtersdialog.ui
499a361c77SNicolas Bonnefon}
509a361c77SNicolas Bonnefonelse {
519a361c77SNicolas Bonnefon    message(Using old FiltersDialog)
529a361c77SNicolas Bonnefon    FORMS += filtersdialog_old.ui
539a361c77SNicolas Bonnefon}
549a361c77SNicolas Bonnefon
5536b4ae36SNicolas Bonnefon# For Windows icon
5636b4ae36SNicolas BonnefonRC_FILE = glogg.rc
579a361c77SNicolas BonnefonRESOURCES = glogg.qrc
589a361c77SNicolas Bonnefon
59b5a5d5faSNicolas Bonnefon# Install (for unix)
60fca14737SNicolas Bonnefonicon16.path  = $$PREFIX/share/icons/hicolor/16x16/apps
61fca14737SNicolas Bonnefonicon16.files = images/hicolor/16x16/glogg.png
62fca14737SNicolas Bonnefon
63fca14737SNicolas Bonnefonicon32.path  = $$PREFIX/share/icons/hicolor/32x32/apps
64fca14737SNicolas Bonnefonicon32.files = images/hicolor/32x32/glogg.png
65fca14737SNicolas Bonnefon
66fca14737SNicolas Bonnefondoc.path  = $$PREFIX/share/doc/glogg
67fca14737SNicolas Bonnefondoc.files = README.textile COPYING
68fca14737SNicolas Bonnefon
69fca14737SNicolas Bonnefondesktop.path = $$PREFIX/share/applications
70fca14737SNicolas Bonnefondesktop.path = glogg.desktop
71fca14737SNicolas Bonnefon
72b5a5d5faSNicolas Bonnefontarget.path = $$PREFIX/bin
73fca14737SNicolas BonnefonINSTALLS = target icon16 icon32 doc desktop
74b5a5d5faSNicolas Bonnefon
75b5a5d5faSNicolas Bonnefon# Build directories
769a361c77SNicolas Bonnefondebug:OBJECTS_DIR = $${OUT_PWD}/.obj/debug-shared
779a361c77SNicolas Bonnefonrelease:OBJECTS_DIR = $${OUT_PWD}/.obj/release-shared
789a361c77SNicolas Bonnefondebug:MOC_DIR = $${OUT_PWD}/.moc/debug-shared
799a361c77SNicolas Bonnefonrelease:MOC_DIR = $${OUT_PWD}/.moc/release-shared
809a361c77SNicolas Bonnefon
819a361c77SNicolas BonnefonRelease:DEFINES += FILELOG_MAX_LEVEL=\"logERROR\"
829a361c77SNicolas BonnefonDebug:DEFINES += FILELOG_MAX_LEVEL=\"logDEBUG\"
839a361c77SNicolas Bonnefon
84b5a5d5faSNicolas Bonnefon# Official builds can be generated with `qmake VERSION="1.2.3"'
85b5a5d5faSNicolas BonnefonisEmpty(VERSION) {
86b5a5d5faSNicolas Bonnefon    QMAKE_CXXFLAGS += -DGLOGG_DATE=\\\"`date +'\"%F\"'`\\\"
87b5a5d5faSNicolas Bonnefon    QMAKE_CXXFLAGS += -DGLOGG_VERSION=\\\"`git describe`\\\"
88b5a5d5faSNicolas Bonnefon    QMAKE_CXXFLAGS += -DGLOGG_COMMIT=\\\"`git rev-parse --short HEAD`\\\"
89b5a5d5faSNicolas Bonnefon}
90b5a5d5faSNicolas Bonnefonelse {
91b5a5d5faSNicolas Bonnefon    QMAKE_CXXFLAGS += -DGLOGG_VERSION=\\\"$$VERSION\\\"
92b5a5d5faSNicolas Bonnefon}
93