summaryrefslogtreecommitdiff
path: root/src/imports/audioengine
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-07-09 19:01:15 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-11 23:48:23 +0200
commitd18eadc8ab567fd78ecf752678565fb334ea10fd (patch)
tree532921d3f5f1c6a8322056ec6459027be3ad0b6d /src/imports/audioengine
parent4bf74dece7e64fd6d24b4d6cb4aea27909113f7f (diff)
downloadqtmultimedia-d18eadc8ab567fd78ecf752678565fb334ea10fd.tar.gz
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>
Diffstat (limited to 'src/imports/audioengine')
-rw-r--r--src/imports/audioengine/audioengine.pro33
1 files changed, 3 insertions, 30 deletions
diff --git a/src/imports/audioengine/audioengine.pro b/src/imports/audioengine/audioengine.pro
index 4659b76e3..b1874e00d 100644
--- a/src/imports/audioengine/audioengine.pro
+++ b/src/imports/audioengine/audioengine.pro
@@ -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)