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
|
TARGET=QOfonoQtDeclarative
TEMPLATE = lib
QT += dbus
CONFIG += plugin
QT_VERSION=$$[QT_VERSION]
QT += qml
QT -= gui
LIBS += -L../src -lqofono-qt$${QT_MAJOR_VERSION}
SOURCES = \
qofonodeclarativeplugin.cpp \
qofononetworkoperatorlistmodel.cpp \
qofonosimlistmodel.cpp
HEADERS = \
qofonodeclarativeplugin.h \
qofononetworkoperatorlistmodel.h \
qofonosimlistmodel.h
INCLUDEPATH += ../src
MODULENAME = QOfono
OTHER_FILES += \
plugin.json plugins.qmltypes qmldir
TARGETPATH = $$[QT_INSTALL_QML]/$$MODULENAME
qmldir.files += qmldir plugins.qmltypes
qmldir.path = $$TARGETPATH
target.path = $$TARGETPATH
INSTALLS += target qmldir
qmltypes.target = qmltypes
qmltypes.commands = qmlplugindump -nonrelocatable QOfono 0.2 > $$PWD/plugins.qmltypes
QMAKE_EXTRA_TARGETS += qmltypes
|