-
Notifications
You must be signed in to change notification settings - Fork 6
/
lumberjack.pro
182 lines (158 loc) · 4.74 KB
/
lumberjack.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
QT += core gui opengl svg
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
DEFINES += QT_DISABLE_DEPRECATED_UP_TO=0x050F00
CONFIG += c++11
CONFIG += file_copies
CONFIG -= debug_and_release
QMAKE_CXXFLAGS += -Wno-unused-parameter -Wno-unused-variable -Wno-sign-compare -Wno-unused-but-set-variable
QMAKE_CFLAGS += -Wno-unused-parameter -Wno-unused-variable -Wno-sign-compare -Wno-unused-but-set-variable
QMAKE_LFLAGS += --verbose
# Dynamic linking for qwt libraries
include(qwt/qwt.prf)
CONFIG (debug, debug|release) {
LIBS += -L./qwt/lib -lqwtd
} else {
LIBS += -L./qwt/lib -lqwt
}
INCLUDEPATH += ./qwt/src
INCLUDEPATH += src \
src/plugins \
src/widgets \
fft/include/simple_fft \
plugins \
plugins/cedat_protocol \
plugins/cobsr
SOURCES += \
src/data_source_manager.cpp \
src/fft_sampler.cpp \
src/fft_widget.cpp \
src/helpers.cpp \
src/data_series.cpp \
src/data_source.cpp \
src/lumberjack_debug.cpp \
src/lumberjack_settings.cpp \
src/plot_curve.cpp \
src/plot_legend.cpp \
src/plot_widget.cpp \
src/main.cpp \
src/mainwindow.cpp \
src/plugins/plugin_exporter.cpp \
src/plugins/plugin_importer.cpp \
src/plugins/plugin_registry.cpp \
src/widgets/about_dialog.cpp \
src/widgets/axis_edit_dialog.cpp \
src/widgets/datatable_widget.cpp \
src/widgets/dataview_tree.cpp \
src/widgets/dataview_widget.cpp \
src/widgets/debug_widget.cpp \
src/widgets/plot_sampler.cpp \
src/widgets/plugins_dialog.cpp \
src/widgets/series_editor_dialog.cpp \
src/widgets/stats_widget.cpp \
src/widgets/timeline_widget.cpp
HEADERS += \
src/data_source_manager.hpp \
src/mainwindow.h \
src/fft_sampler.hpp \
src/fft_widget.hpp \
src/helpers.hpp \
src/data_series.hpp \
src/data_source.hpp \
src/lumberjack_debug.hpp \
src/lumberjack_settings.hpp \
src/lumberjack_version.hpp \
src/plot_curve.hpp \
src/plot_legend.hpp \
src/plot_panner.hpp \
src/plot_widget.hpp \
src/plugins/plugin_base.hpp \
src/plugins/plugin_exporter.hpp \
src/plugins/plugin_filter.hpp \
src/plugins/plugin_importer.hpp \
src/plugins/plugin_registry.hpp \
src/widgets/about_dialog.hpp \
src/widgets/axis_edit_dialog.hpp \
src/widgets/datatable_widget.hpp \
src/widgets/dataview_tree.hpp \
src/widgets/dataview_widget.hpp \
src/widgets/debug_widget.hpp \
src/widgets/plot_sampler.hpp \
src/widgets/plugins_dialog.hpp \
src/widgets/series_editor_dialog.hpp \
src/widgets/stats_widget.hpp \
src/widgets/timeline_widget.hpp \
# simple-fft includes
HEADERS += \
fft/include/simple_fft/check_fft.hpp \
fft/include/simple_fft/copy_array.hpp \
fft/include/simple_fft/error_handling.hpp \
fft/include/simple_fft/fft.h \
fft/include/simple_fft/fft.hpp \
fft/include/simple_fft/fft_impl.hpp \
fft/include/simple_fft/fft_settings.h
FORMS += \
ui/about_dialog.ui \
ui/axis_edit_dialog.ui \
ui/curve_editor_dialog.ui \
ui/dataview_widget.ui \
ui/debug_widget.ui \
ui/mainwindow.ui \
ui/plugins_dialog.ui \
ui/stats_view.ui
# Application icon
RC_ICONS = logo/lumberjack.ico
#Set the location for the generated ui_xxxx.h files
UI_DIR = build/ui
# Add some build info defines
DEFINES += COMPILER=\\\"$$QMAKE_CXX\\\" \
COMPILER_VERSION=\\\"$$system($$QMAKE_CXX ' -dumpversion')\\\" \
ARCHITECTURE=\\\"$$QT_ARCH\\\" \
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
# Specify output directory
CONFIG(debug, debug|release) {
CONFIG += debug
DESTDIR = build/debug
} else {
CONFIG += release
DESTDIR = build/release
}
RCC_DIR = $$DESTDIR
MOC_DIR = $$DESTDIR/moc
OBJECTS_DIR = $$DESTDIR/objects
dllFiles.path = $$DESTDIR
COPIES += dllFiles
# Copy required .dll files across
CONFIG(debug, debug|release) {
win32 {
dllFiles.files += \
qwt/lib/qwtd.dll
} else {
dllFiles.files += \
qwt/lib/libqwtd.so
}
} else {
win32 {
dllFiles.files += \
qwt/lib/qwt.dll
} else {
dllFiles.files += \
qwt/lib/libqwt.so
}
}
COPIES += dllFiles
CONFIG(debug, debug | release) {
win32 {
# Copy required .DLL files
QMAKE_POST_LINK += $$[QT_INSTALL_BINS]\windeployqt --debug --compiler-runtime $$shell_path($$quote($$DESTDIR))\lumberjack.exe $$escape_expand(\n\t)
}
} else {
win32 {
# Copy required .DLL files
QMAKE_POST_LINK += $$[QT_INSTALL_BINS]\windeployqt --release --compiler-runtime $$shell_path($$quote($$DESTDIR))\lumberjack.exe $$escape_expand(\n\t)
}
}
RESOURCES += \
resources.qrc