diff options
Diffstat (limited to 'src/plugins/Input/mpeg/mpeg.pro')
| -rw-r--r-- | src/plugins/Input/mpeg/mpeg.pro | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/src/plugins/Input/mpeg/mpeg.pro b/src/plugins/Input/mpeg/mpeg.pro index e7d50b22e..5960a5f3a 100644 --- a/src/plugins/Input/mpeg/mpeg.pro +++ b/src/plugins/Input/mpeg/mpeg.pro @@ -3,21 +3,29 @@ include(../../plugins.pri) TARGET = $$PLUGINS_PREFIX/Input/mpeg HEADERS += decodermpegfactory.h \ - decoder_mad.h \ - decoder_mpg123.h \ settingsdialog.h \ tagextractor.h \ mpegmetadatamodel.h \ replaygainreader.h -SOURCES += decoder_mad.cpp \ - decoder_mpg123.cpp \ - decodermpegfactory.cpp \ +SOURCES += decodermpegfactory.cpp \ settingsdialog.cpp \ tagextractor.cpp \ mpegmetadatamodel.cpp \ replaygainreader.cpp +contains(CONFIG, WITH_MAD){ + HEADERS += decoder_mad.h + SOURCES += decoder_mad.cpp + DEFINES += WITH_MAD +} + +contains(CONFIG, WITH_MPG123){ + HEADERS += decoder_mpg123.h + SOURCES += decoder_mpg123.cpp + DEFINES += WITH_MPG123 +} + FORMS += settingsdialog.ui RESOURCES = translations/translations.qrc @@ -25,8 +33,9 @@ RESOURCES = translations/translations.qrc unix { target.path = $$LIB_DIR/qmmp/Input INSTALLS += target - LIBS += -lmad - PKGCONFIG += taglib mad libmpg123 + PKGCONFIG += taglib + contains(CONFIG, WITH_MAD):PKGCONFIG += mad + contains(CONFIG, WITH_MPG123):PKGCONFIG += libmpg123 } win32 { |
