diff options
Diffstat (limited to 'src/plugins/Input/mpc/mpc.pro')
| -rw-r--r-- | src/plugins/Input/mpc/mpc.pro | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/src/plugins/Input/mpc/mpc.pro b/src/plugins/Input/mpc/mpc.pro index 3fe8322b6..54fdce022 100644 --- a/src/plugins/Input/mpc/mpc.pro +++ b/src/plugins/Input/mpc/mpc.pro @@ -7,7 +7,7 @@ SOURCES += decoder_mpc.cpp \ decodermpcfactory.cpp \ mpcmetadatamodel.cpp TARGET = $$PLUGINS_PREFIX/Input/mpc -QMAKE_CLEAN = $$PLUGINS_PREFIX/Input/libmpc.so + INCLUDEPATH += ../../../ CONFIG += release \ warn_on \ @@ -15,11 +15,7 @@ CONFIG += release \ link_pkgconfig TEMPLATE = lib QMAKE_LIBDIR += ../../../../lib -LIBS += -lqmmp \ - -L/usr/lib \ - -lmpcdec \ - -I/usr/include -PKGCONFIG += taglib + TRANSLATIONS = translations/mpc_plugin_ru.ts \ translations/mpc_plugin_uk_UA.ts \ translations/mpc_plugin_zh_CN.ts \ @@ -35,7 +31,21 @@ TRANSLATIONS = translations/mpc_plugin_ru.ts \ translations/mpc_plugin_es.ts RESOURCES = translations/translations.qrc -isEmpty (LIB_DIR):LIB_DIR = /lib -exists(/usr/include/mpcdec/mpcdec.h):DEFINES += MPC_OLD_API -target.path = $$LIB_DIR/qmmp/Input -INSTALLS += target +unix { + isEmpty(LIB_DIR):LIB_DIR = /lib + target.path = $$LIB_DIR/qmmp/Input + INSTALLS += target + + PKGCONFIG += taglib + LIBS += -lqmmp -lmpcdec -I/usr/include + exists(/usr/include/mpcdec/mpcdec.h):DEFINES += MPC_OLD_API + QMAKE_CLEAN = $$PLUGINS_PREFIX/Input/libmpc.so +} + +win32 { + HEADERS += ../../../../src/qmmp/metadatamodel.h \ + ../../../../src/qmmp/decoderfactory.h + QMAKE_LIBDIR += ../../../../bin + LIBS += -lqmmp0 -lmpcdec -ltag.dll + DEFINES += MPC_OLD_API +} |
