-
Notifications
You must be signed in to change notification settings - Fork 0
/
dca.pro
50 lines (41 loc) · 1.26 KB
/
dca.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
include($$PWD/common/common.pri)
HEADERS += decoderdcafactory.h \
decoder_dca.h \
dcahelper.h
SOURCES += decoderdcafactory.cpp \
decoder_dca.cpp \
dcahelper.cpp \
libdca/parse.c \
libdca/gettimeofday.c \
libdca/extract_dca.c \
libdca/downmix.c \
libdca/bitstream.c
INCLUDEPATH += $$PWD/libdca
#CONFIG += BUILD_PLUGIN_INSIDE
contains(CONFIG, BUILD_PLUGIN_INSIDE){
include($$PWD/../../plugins.pri)
TARGET = $$PLUGINS_PREFIX/Input/dca
unix{
target.path = $$PLUGIN_DIR/Input
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)/Input
INCLUDEPATH += $$system(pkg-config $${QMMP_PKG} --variable=prefix)/include
plugin.path = $${PLUGIN_DIR}
plugin.files = lib$${TARGET}.so
INSTALLS += plugin
}
}