-
Notifications
You must be signed in to change notification settings - Fork 0
/
sonique.pro
42 lines (35 loc) · 1.08 KB
/
sonique.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
HEADERS += soniquewidget.h \
visual.h \
kiss_fft.h \
visualsoniquefactory.h
SOURCES += soniquewidget.cpp \
kiss_fft.c \
visualsoniquefactory.cpp
#CONFIG += BUILD_PLUGIN_INSIDE
contains(CONFIG, BUILD_PLUGIN_INSIDE){
include($$PWD/../../plugins.pri)
TARGET = $$PLUGINS_PREFIX/Visual/sonique
unix{
target.path = $$PLUGIN_DIR/Visual
INSTALLS += target
}
}else{
QT += widgets
CONFIG += warn_off plugin lib thread link_pkgconfig c++11
TEMPLATE = lib
unix{
equals(QT_MAJOR_VERSION, 5){
QMMP_PKG = qmmp-1
}else:equals(QT_MAJOR_VERSION, 6){
QMMP_PKG = qmmp
}else{
error("Unsupported Qt version: 5 or 6 is required")
}
PKGCONFIG += $${QMMP_PKG}
PLUGIN_DIR = $$system(pkg-config $${QMMP_PKG} --variable=plugindir)/Visual
INCLUDEPATH += $$system(pkg-config $${QMMP_PKG} --variable=prefix)/include
plugin.path = $${PLUGIN_DIR}
plugin.files = lib$${TARGET}.so
INSTALLS += plugin
}
}