-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAPTPlugin.pro
56 lines (42 loc) · 1.47 KB
/
APTPlugin.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
QT += widgets gui opengl
greaterThan(QT_MAJOR_VERSION, 5): QT += openglwidgets
TEMPLATE = lib
DEFINES += APTPLUGIN_LIBRARY
CONFIG += c++11
CONFIG += unversioned_libname unversioned_soname
isEmpty(PLUGIN_DIRECTORY) {
_HOME = $$(HOME)
isEmpty(_HOME) {
error(Cannot deduce user home directory. Please provide a valid plugin installation path through the PLUGIN_DIRECTORY property)
}
PLUGIN_DIRECTORY=$$_HOME/.suscan/plugins
}
isEmpty(SUWIDGETS_PREFIX) {
SUWIDGETS_INSTALL_HEADERS=$$[QT_INSTALL_HEADERS]/SuWidgets
} else {
SUWIDGETS_INSTALL_HEADERS=$$SUWIDGETS_PREFIX/include/SuWidgets
}
isEmpty(SIGDIGGER_PREFIX) {
SIGDIGGER_INSTALL_HEADERS=$$[QT_INSTALL_HEADERS]/SigDigger
} else {
SIGDIGGER_INSTALL_HEADERS=$$SIGDIGGER_PREFIX/include/SigDigger
}
# Default rules for deployment.
target.path = $$PLUGIN_DIRECTORY
!isEmpty(target.path): INSTALLS += target
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
APTInspectorWidget.cpp \
APTInspectorWidgetFactory.cpp \
MapWidget.cpp \
Registration.cpp
HEADERS += \
APTInspectorWidget.h \
APTInspectorWidgetFactory.h \
MapWidget.h
FORMS += APTInspectorWidget.ui
INCLUDEPATH += $$SUWIDGETS_INSTALL_HEADERS $$SIGDIGGER_INSTALL_HEADERS
unix: CONFIG += link_pkgconfig
unix: PKGCONFIG += suscan sigutils fftw3 alsa sndfile