xref: /glogg/glogg.pro (revision da452361b536bce4895420ec294f0cd62ba45252)
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    infoline.cpp \
25    logdataworkerthread.cpp \
26    logfiltereddataworkerthread.cpp \
27    filewatcher.cpp
28
29HEADERS += version.h \
30    mainwindow.h \
31    crawlerwidget.h \
32    logmainview.h \
33    log.h \
34    filteredview.h \
35    abstractlogdata.h \
36    logdata.h \
37    logfiltereddata.h \
38    abstractlogview.h \
39    optionsdialog.h \
40    configuration.h \
41    filtersdialog.h \
42    filterset.h \
43    savedsearches.h \
44    infoline.h \
45    logdataworkerthread.h \
46    logfiltereddataworkerthread.h \
47    filewatcher.h
48
49greaterThan(QT_VERSION, "4.4.0") {
50    FORMS += filtersdialog.ui
51}
52else {
53    message(Using old FiltersDialog)
54    FORMS += filtersdialog_old.ui
55}
56
57# For Windows icon
58RC_FILE = glogg.rc
59RESOURCES = glogg.qrc
60
61# Install (for unix)
62icon16.path  = $$PREFIX/share/icons/hicolor/16x16/apps
63icon16.files = images/hicolor/16x16/glogg.png
64
65icon32.path  = $$PREFIX/share/icons/hicolor/32x32/apps
66icon32.files = images/hicolor/32x32/glogg.png
67
68doc.path  = $$PREFIX/share/doc/glogg
69doc.files = README.textile COPYING
70
71desktop.path = $$PREFIX/share/applications
72desktop.path = glogg.desktop
73
74target.path = $$PREFIX/bin
75INSTALLS = target icon16 icon32 doc desktop
76
77# Build directories
78debug:OBJECTS_DIR = $${OUT_PWD}/.obj/debug-shared
79release:OBJECTS_DIR = $${OUT_PWD}/.obj/release-shared
80debug:MOC_DIR = $${OUT_PWD}/.moc/debug-shared
81release:MOC_DIR = $${OUT_PWD}/.moc/release-shared
82
83Release:DEFINES += FILELOG_MAX_LEVEL=\"logERROR\"
84Debug:DEFINES += FILELOG_MAX_LEVEL=\"logDEBUG\"
85
86# Official builds can be generated with `qmake VERSION="1.2.3"'
87isEmpty(VERSION) {
88    QMAKE_CXXFLAGS += -DGLOGG_DATE=\\\"`date +'\"%F\"'`\\\"
89    QMAKE_CXXFLAGS += -DGLOGG_VERSION=\\\"`git describe`\\\"
90    QMAKE_CXXFLAGS += -DGLOGG_COMMIT=\\\"`git rev-parse --short HEAD`\\\"
91}
92else {
93    QMAKE_CXXFLAGS += -DGLOGG_VERSION=\\\"$$VERSION\\\"
94}
95