diff options
| -rw-r--r-- | src/plugins/Input/Input.pro | 8 | ||||
| -rw-r--r-- | src/plugins/Input/gme/gme.pro | 31 |
2 files changed, 25 insertions, 14 deletions
diff --git a/src/plugins/Input/Input.pro b/src/plugins/Input/Input.pro index 29bd6351d..03723eb0f 100644 --- a/src/plugins/Input/Input.pro +++ b/src/plugins/Input/Input.pro @@ -23,6 +23,10 @@ contains(CONFIG, FFMPEG_PLUGIN){ } } +contains(CONFIG, GME_PLUGIN){ + SUBDIRS += gme +} + unix{ contains(CONFIG, AAC_PLUGIN){ @@ -37,10 +41,6 @@ contains(CONFIG, WILDMIDI_PLUGIN){ SUBDIRS += wildmidi } -contains(CONFIG, GME_PLUGIN){ - SUBDIRS += gme -} - contains(CONFIG, OPUS_PLUGIN){ SUBDIRS += opus } diff --git a/src/plugins/Input/gme/gme.pro b/src/plugins/Input/gme/gme.pro index a6602ee78..8013cc9d6 100644 --- a/src/plugins/Input/gme/gme.pro +++ b/src/plugins/Input/gme/gme.pro @@ -13,13 +13,7 @@ CONFIG += release \ warn_on \ plugin TEMPLATE = lib -QMAKE_LIBDIR += ../../../../lib -LIBS += -lqmmp \ - -L/usr/lib \ - -L/usr/local/lib \ - -I/usr/include \ - -I/usr/local/include \ - -lgme + TRANSLATIONS = translations/gme_plugin_it.ts \ translations/gme_plugin_ru.ts \ translations/gme_plugin_cs.ts \ @@ -34,6 +28,23 @@ TRANSLATIONS = translations/gme_plugin_it.ts \ translations/gme_plugin_ja.ts RESOURCES = translations/translations.qrc -isEmpty (LIB_DIR):LIB_DIR = /lib -target.path = $$LIB_DIR/qmmp/Input -INSTALLS += target + +unix{ + isEmpty (LIB_DIR):LIB_DIR = /lib + target.path = $$LIB_DIR/qmmp/Input + INSTALLS += target + QMAKE_LIBDIR += ../../../../lib + LIBS += -lqmmp \ + -L/usr/lib \ + -L/usr/local/lib \ + -I/usr/include \ + -I/usr/local/include \ + -lgme +} + +win32 { + HEADERS += ../../../../src/qmmp/metadatamodel.h \ + ../../../../src/qmmp/decoderfactory.h + QMAKE_LIBDIR += ../../../../bin + LIBS += -lqmmp0 -lgme.dll +} |
