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
|
include(../common.pri)
TEMPLATE = lib
CONFIG += qt plugin link_pkgconfig
DEPENDPATH += ../src
INCLUDEPATH += ../src
QT = core dbus qml
LIBS += -L../src -l$${MPRISQTLIB}
EXAMPLE = ../example/declarative/*
OTHER_FILES += $${EXAMPLE}
TARGET = $${MPRISQTLIB}-qml-plugin
PLUGIN_IMPORT_PATH = org/nemomobile/mpris
QMAKE_SUBSTITUTES = qmldir.in
SOURCES += \
mprisplugin.cpp
HEADERS += \
mprisplugin.h
target.path = $$[QT_INSTALL_QML]/$$PLUGIN_IMPORT_PATH
qml.files = qmldir plugins.qmltypes
qml.path = $$target.path
INSTALLS += target qml
qmltypes.commands = qmlplugindump -nonrelocatable org.nemomobile.mpris 1.0 > $$PWD/plugins.qmltypes
QMAKE_EXTRA_TARGETS += qmltypes
|