From d18eadc8ab567fd78ecf752678565fb334ea10fd Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 9 Jul 2012 19:01:15 +0200 Subject: use centralized qml plugin project handling Change-Id: If9561a27d9b96d020e2ffcf2dcc6deedb4d89e4a Reviewed-by: Friedemann Kleint Reviewed-by: Oswald Buddenhagen --- src/imports/audioengine/audioengine.pro | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) (limited to 'src/imports/audioengine/audioengine.pro') 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 > 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) -- cgit v1.2.3