aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/vorbis/vorbis.pro
blob: 00255ec8de2665d30abf08329c12ae3ddb7e384b (plain) (blame)
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
51
52
53
54
55
include(../../plugins.pri)
FORMS += 
HEADERS += decodervorbisfactory.h \
    decoder_vorbis.h \
    vorbismetadatamodel.h \
    replaygainreader.h
SOURCES += decoder_vorbis.cpp \
    decodervorbisfactory.cpp \
    vorbismetadatamodel.cpp \
    replaygainreader.cpp
TARGET = $$PLUGINS_PREFIX/Input/vorbis

INCLUDEPATH += ../../../
CONFIG += warn_on \
    plugin \
    link_pkgconfig
TEMPLATE = lib
QMAKE_LIBDIR += ../../../../lib


TRANSLATIONS = translations/vorbis_plugin_ru.ts \
    translations/vorbis_plugin_uk_UA.ts \
    translations/vorbis_plugin_zh_CN.ts \
    translations/vorbis_plugin_zh_TW.ts \
    translations/vorbis_plugin_cs.ts \
    translations/vorbis_plugin_pl.ts \
    translations/vorbis_plugin_de.ts \
    translations/vorbis_plugin_it.ts \
    translations/vorbis_plugin_tr.ts \
    translations/vorbis_plugin_lt.ts \
    translations/vorbis_plugin_nl.ts \
    translations/vorbis_plugin_ja.ts \
    translations/vorbis_plugin_es.ts \
    translations/vorbis_plugin_sr_BA.ts \
    translations/vorbis_plugin_sr_RS.ts

RESOURCES = translations/translations.qrc

unix {
    isEmpty (LIB_DIR):LIB_DIR = /lib
    target.path = $$LIB_DIR/qmmp/Input
    INSTALLS += target

    PKGCONFIG += taglib ogg vorbisfile vorbis
    LIBS += -lqmmp
    QMAKE_CLEAN = $$PLUGINS_PREFIX/Input/libvorbis.so
}

win32 {
    HEADERS += ../../../../src/qmmp/metadatamodel.h \
               ../../../../src/qmmp/decoderfactory.h
    QMAKE_LIBDIR += ../../../../bin
    LIBS += -lqmmp0 -lvorbisfile -lvorbis -logg -ltag.dll -lm
    LD_FLAGS += -no-undefined
}