xref: /glogg/glogg.pro (revision 9a361c77fce85c9bbe1326d984941ec8feb5541d)
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
50RESOURCES = glogg.qrc
51
52debug:OBJECTS_DIR = $${OUT_PWD}/.obj/debug-shared
53release:OBJECTS_DIR = $${OUT_PWD}/.obj/release-shared
54debug:MOC_DIR = $${OUT_PWD}/.moc/debug-shared
55release:MOC_DIR = $${OUT_PWD}/.moc/release-shared
56
57Release:DEFINES += FILELOG_MAX_LEVEL=\"logERROR\"
58Debug:DEFINES += FILELOG_MAX_LEVEL=\"logDEBUG\"
59
60QMAKE_CXXFLAGS += -DGLOGG_DATE=\\\"`date \
61    +'\"%F\"'`\\\"
62QMAKE_CXXFLAGS += -DGLOGG_VERSION=\\\"`git \
63    describe`\\\"
64QMAKE_CXXFLAGS += -DGLOGG_COMMIT=\\\"`git \
65    rev-parse --short \
66    HEAD`\\\"
67