-
Notifications
You must be signed in to change notification settings - Fork 0
/
muffler.pro
39 lines (32 loc) · 1.01 KB
/
muffler.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
HEADERS += mufflerplugin.h \
effectmufflerfactory.h
SOURCES += mufflerplugin.cpp \
effectmufflerfactory.cpp
#CONFIG += BUILD_PLUGIN_INSIDE
contains(CONFIG, BUILD_PLUGIN_INSIDE){
include($$PWD/../../plugins.pri)
TARGET = $$PLUGINS_PREFIX/Effect/muffler
unix{
target.path = $$PLUGIN_DIR/Effect
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)/Effect
INCLUDEPATH += $$system(pkg-config $${QMMP_PKG} --variable=prefix)/include
plugin.path = $${PLUGIN_DIR}
plugin.files = lib$${TARGET}.so
INSTALLS += plugin
}
}