2015-05-30 12:00:32 +00:00
|
|
|
|
2015-11-30 09:25:47 +00:00
|
|
|
contains(QT_MAJOR_VERSION, 4) {
|
|
|
|
|
|
|
|
LIST = 0 1 2 3 4 5 6
|
2023-02-08 20:22:28 +00:00
|
|
|
for(a, LIST):contains(QT_MINOR_VERSION, $$a):error("This project needs Qt4 version >= 4.7.1 or Qt5 version >= 5.9.1 or Qt6 version >= 6.4.1")
|
2015-11-30 09:25:47 +00:00
|
|
|
|
|
|
|
contains(QT_MINOR_VERSION, 7) {
|
|
|
|
LIST = 0
|
2023-02-08 20:22:28 +00:00
|
|
|
for(a, LIST):contains(QT_PATCH_VERSION, $$a):error("This project needs Qt4 version >= 4.7.1 or Qt5 version >= 5.9.1 or Qt6 version >= 6.4.1")
|
2015-11-30 09:25:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
contains(QT_MAJOR_VERSION, 5) {
|
|
|
|
|
2017-09-14 19:05:51 +00:00
|
|
|
LIST = 0 1 2 3 4 5 6 7 8
|
2023-02-08 20:22:28 +00:00
|
|
|
for(a, LIST):contains(QT_MINOR_VERSION, $$a):error("This project needs Qt4 version >= 4.7.1 or Qt5 version >= 5.9.1 or Qt6 version >= 6.4.1")
|
2015-11-30 09:25:47 +00:00
|
|
|
|
2017-09-14 19:05:51 +00:00
|
|
|
contains(QT_MINOR_VERSION, 9) {
|
2015-11-30 09:25:47 +00:00
|
|
|
LIST = 0
|
2023-02-08 20:22:28 +00:00
|
|
|
for(a, LIST):contains(QT_PATCH_VERSION, $$a):error("This project needs Qt4 version >= 4.7.1 or Qt5 version >= 5.9.1 or Qt6 version >= 6.4.1")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
contains(QT_MAJOR_VERSION, 6) {
|
|
|
|
|
|
|
|
LIST = 0 1 2 3
|
|
|
|
for(a, LIST):contains(QT_MINOR_VERSION, $$a):error("This project needs Qt4 version >= 4.7.1 or Qt5 version >= 5.9.1 or Qt6 version >= 6.4.1")
|
|
|
|
|
|
|
|
contains(QT_MINOR_VERSION, 4) {
|
|
|
|
LIST = 0
|
|
|
|
for(a, LIST):contains(QT_PATCH_VERSION, $$a):error("This project needs Qt4 version >= 4.7.1 or Qt5 version >= 5.9.1 or Qt6 version >= 6.4.1")
|
2015-11-30 09:25:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-05-30 12:00:32 +00:00
|
|
|
|
|
|
|
TEMPLATE = app
|
|
|
|
TARGET = dsremote
|
|
|
|
DEPENDPATH += .
|
|
|
|
INCLUDEPATH += .
|
|
|
|
CONFIG += qt
|
|
|
|
CONFIG += warn_on
|
|
|
|
CONFIG += release
|
|
|
|
CONFIG += static
|
|
|
|
CONFIG += largefile
|
|
|
|
|
|
|
|
QT += widgets
|
2015-06-27 14:42:01 +00:00
|
|
|
QT += network
|
2015-05-30 12:00:32 +00:00
|
|
|
|
2023-02-08 20:22:28 +00:00
|
|
|
QMAKE_CXXFLAGS += -Wextra -Wshadow -Wformat -Wformat-nonliteral -Wformat-security -Wtype-limits -Wfatal-errors -Wdeprecated-declarations
|
|
|
|
|
|
|
|
QMAKE_CFLAGS += -Wall -Wextra -Wshadow -Wformat-nonliteral -Wformat-security -Wtype-limits -Wfatal-errors -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
|
2015-05-30 12:00:32 +00:00
|
|
|
|
|
|
|
OBJECTS_DIR = ./objects
|
|
|
|
MOC_DIR = ./moc
|
|
|
|
|
2023-02-08 20:22:28 +00:00
|
|
|
HEADERS += qt_headers.h
|
2015-05-30 12:00:32 +00:00
|
|
|
HEADERS += global.h
|
|
|
|
HEADERS += mainwindow.h
|
|
|
|
HEADERS += about_dialog.h
|
|
|
|
HEADERS += utils.h
|
2015-06-27 09:04:41 +00:00
|
|
|
HEADERS += connection.h
|
2015-05-30 12:00:32 +00:00
|
|
|
HEADERS += tmc_dev.h
|
2015-06-28 09:30:25 +00:00
|
|
|
HEADERS += tmc_lan.h
|
2015-05-30 12:00:32 +00:00
|
|
|
HEADERS += tled.h
|
|
|
|
HEADERS += edflib.h
|
|
|
|
HEADERS += signalcurve.h
|
2015-06-02 14:20:56 +00:00
|
|
|
HEADERS += settings_dialog.h
|
2015-08-29 15:13:34 +00:00
|
|
|
HEADERS += screen_thread.h
|
2016-10-02 18:22:48 +00:00
|
|
|
HEADERS += lan_connect_thread.h
|
|
|
|
HEADERS += read_settings_thread.h
|
2016-10-09 14:59:15 +00:00
|
|
|
HEADERS += save_data_thread.h
|
2016-11-05 14:05:08 +00:00
|
|
|
HEADERS += decode_dialog.h
|
2016-11-28 21:37:24 +00:00
|
|
|
HEADERS += tdial.h
|
2016-12-28 10:48:47 +00:00
|
|
|
HEADERS += wave_dialog.h
|
|
|
|
HEADERS += wave_view.h
|
2017-05-14 16:16:49 +00:00
|
|
|
HEADERS += playback_dialog.h
|
2015-05-30 12:00:32 +00:00
|
|
|
|
2016-01-04 13:20:26 +00:00
|
|
|
HEADERS += third_party/kiss_fft/kiss_fft.h
|
|
|
|
HEADERS += third_party/kiss_fft/_kiss_fft_guts.h
|
|
|
|
HEADERS += third_party/kiss_fft/kiss_fftr.h
|
|
|
|
|
2015-05-30 12:00:32 +00:00
|
|
|
SOURCES += main.cpp
|
|
|
|
SOURCES += mainwindow.cpp
|
2015-06-04 15:24:31 +00:00
|
|
|
SOURCES += mainwindow_constr.cpp
|
2015-05-30 12:00:32 +00:00
|
|
|
SOURCES += timer_handlers.cpp
|
|
|
|
SOURCES += save_data.cpp
|
|
|
|
SOURCES += interface.cpp
|
2016-11-22 20:06:24 +00:00
|
|
|
SOURCES += serial_decoder.cpp
|
2015-05-30 12:00:32 +00:00
|
|
|
SOURCES += about_dialog.cpp
|
|
|
|
SOURCES += utils.c
|
2015-06-27 09:04:41 +00:00
|
|
|
SOURCES += connection.cpp
|
2015-05-30 12:00:32 +00:00
|
|
|
SOURCES += tmc_dev.c
|
2015-09-01 17:08:30 +00:00
|
|
|
SOURCES += tmc_lan.c
|
2015-05-30 12:00:32 +00:00
|
|
|
SOURCES += tled.cpp
|
|
|
|
SOURCES += edflib.c
|
|
|
|
SOURCES += signalcurve.cpp
|
2015-06-02 14:20:56 +00:00
|
|
|
SOURCES += settings_dialog.cpp
|
2015-08-29 15:13:34 +00:00
|
|
|
SOURCES += screen_thread.cpp
|
2016-10-02 18:22:48 +00:00
|
|
|
SOURCES += lan_connect_thread.cpp
|
|
|
|
SOURCES += read_settings_thread.cpp
|
2016-10-09 14:59:15 +00:00
|
|
|
SOURCES += save_data_thread.cpp
|
2016-11-05 14:05:08 +00:00
|
|
|
SOURCES += decode_dialog.cpp
|
2016-11-28 21:37:24 +00:00
|
|
|
SOURCES += tdial.cpp
|
2016-12-28 10:48:47 +00:00
|
|
|
SOURCES += wave_dialog.cpp
|
|
|
|
SOURCES += wave_view.cpp
|
2017-05-14 16:16:49 +00:00
|
|
|
SOURCES += playback_dialog.cpp
|
2015-05-30 12:00:32 +00:00
|
|
|
|
2016-01-04 13:20:26 +00:00
|
|
|
SOURCES += third_party/kiss_fft/kiss_fft.c
|
|
|
|
SOURCES += third_party/kiss_fft/kiss_fftr.c
|
|
|
|
|
2015-05-30 12:00:32 +00:00
|
|
|
RESOURCES = images.qrc
|
|
|
|
|
2015-05-30 12:40:20 +00:00
|
|
|
target.path = /usr/bin
|
|
|
|
target.files = dsremote
|
|
|
|
INSTALLS += target
|
|
|
|
|
|
|
|
icon_a.path = /usr/share/icons
|
2016-11-22 20:06:24 +00:00
|
|
|
icon_a.files = images/r_dsremote.png
|
2015-05-30 12:40:20 +00:00
|
|
|
INSTALLS += icon_a
|
|
|
|
|
|
|
|
icon_b.path += /usr/share/pixmaps
|
2016-11-22 20:06:24 +00:00
|
|
|
icon_b.files = images/r_dsremote.png
|
2015-05-30 12:40:20 +00:00
|
|
|
INSTALLS += icon_b
|
|
|
|
|
|
|
|
icon_c.path += /usr/share/icons/hicolor/48x48/apps
|
2016-11-22 20:06:24 +00:00
|
|
|
icon_c.files = images/r_dsremote.png
|
2015-05-30 12:40:20 +00:00
|
|
|
INSTALLS += icon_c
|
|
|
|
|
|
|
|
icon_d.path += /usr/share/icons/hicolor/48x48/mimetypes
|
2016-11-22 20:06:24 +00:00
|
|
|
icon_d.files = images/r_dsremote.png
|
2015-05-30 12:40:20 +00:00
|
|
|
INSTALLS += icon_d
|
|
|
|
|
|
|
|
desktop_link.path += /usr/share/applications
|
|
|
|
desktop_link.files += install/dsremote.desktop
|
|
|
|
INSTALLS += desktop_link
|
|
|
|
|
2019-07-27 15:44:12 +00:00
|
|
|
udev_rule.path += /etc/udev/rules.d
|
|
|
|
udev_rule.files += install/30-usbtmc.rules
|
|
|
|
INSTALLS += udev_rule
|
2015-05-30 12:00:32 +00:00
|
|
|
|
|
|
|
|