use centralized qml plugin project handling
Change-Id: If9561a27d9b96d020e2ffcf2dcc6deedb4d89e4a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
4bf74dece7
commit
d18eadc8ab
@@ -1,7 +1,8 @@
|
||||
CXX_MODULE = multimedia
|
||||
TARGET = declarative_audioengine
|
||||
TARGETPATH = QtAudioEngine
|
||||
IMPORT_VERSION = 1.0
|
||||
|
||||
include(../qimportbase.pri)
|
||||
QT += quick qml multimedia-private
|
||||
|
||||
win32: LIBS += -lOpenAL32
|
||||
@@ -9,9 +10,6 @@ unix:!mac: LIBS += -lopenal
|
||||
mac: LIBS += -framework OpenAL
|
||||
mac: DEFINES += HEADER_OPENAL_PREFIX
|
||||
|
||||
DESTDIR = $$QT.multimedia.imports/$$TARGETPATH
|
||||
target.path = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH
|
||||
|
||||
INCLUDEPATH += ../../multimedia/audio
|
||||
|
||||
HEADERS += \
|
||||
@@ -44,29 +42,4 @@ SOURCES += \
|
||||
qsoundsource_openal_p.cpp \
|
||||
qaudioengine_openal_p.cpp
|
||||
|
||||
# plugin.qmltypes is used by Qt Creator for syntax highlighting and the QML code model. It needs
|
||||
# to be regenerated whenever the QML elements exported by the plugin change. This cannot be done
|
||||
# automatically at compile time because qmlplugindump does not support some QML features and it may
|
||||
# not be possible when cross-compiling.
|
||||
#
|
||||
# To regenerate run 'make qmltypes' which will update the plugins.qmltypes file in the source
|
||||
# directory. Then review and commit the changes made to plugins.qmltypes.
|
||||
#
|
||||
# This will run the following command:
|
||||
# qmlplugindump <import name> <import version> <path to import plugin> > plugins.qmltypes
|
||||
# e.g.:
|
||||
# qmlplugindump QtAudioEngine 5.0 imports/QtAudioEngine/libdeclarative_audioengine.so > plugins.qmltypes
|
||||
|
||||
load(resolve_target)
|
||||
qmltypes.target = qmltypes
|
||||
qmltypes.commands = $$[QT_INSTALL_BINS]/qmlplugindump QtAudioEngine 1.0 $$QMAKE_RESOLVED_TARGET > $$PWD/plugins.qmltypes
|
||||
qmltypes.depends = $$QMAKE_RESOLVED_TARGET
|
||||
QMAKE_EXTRA_TARGETS += qmltypes
|
||||
|
||||
# Tell qmake to create such makefile that qmldir, plugins.qmltypes and target
|
||||
# (i.e. declarative_audioengine) are all copied to $$[QT_INSTALL_IMPORTS]/QtAudioEngine directory,
|
||||
|
||||
qmldir.files += $$PWD/qmldir $$PWD/plugins.qmltypes
|
||||
qmldir.path += $$[QT_INSTALL_IMPORTS]/$$TARGETPATH
|
||||
|
||||
INSTALLS += target qmldir
|
||||
load(qml_plugin)
|
||||
|
||||
Reference in New Issue
Block a user