From 656c17160083eae8f730a2f07644cf8b647729ed Mon Sep 17 00:00:00 2001 From: Kari Oikarinen Date: Wed, 29 Mar 2017 12:16:18 +0300 Subject: Use qml_plugin.prf for the QML plugins That feature takes care of installing qmldir (and plugins.qmltypes if it exists) so the plugins doing it themselves is not necessary anymore. Change-Id: Ie157b153c90db8801a245df1bf0ff00df63b255d Reviewed-by: Teemu Holappa --- src/imports/bluetoothsettings/bluetoothsettings.pro | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'src/imports/bluetoothsettings') diff --git a/src/imports/bluetoothsettings/bluetoothsettings.pro b/src/imports/bluetoothsettings/bluetoothsettings.pro index 3e6e6b5..8facaf3 100644 --- a/src/imports/bluetoothsettings/bluetoothsettings.pro +++ b/src/imports/bluetoothsettings/bluetoothsettings.pro @@ -1,17 +1,10 @@ -TEMPLATE = lib -CONFIG += plugin QT += qml bluetooth bluetoothsettings -uri = QtDeviceUtilities.BluetoothSettings -TARGET = btsettingsplugin +CONFIG += no_cxx_module -pluginfiles.files += \ - qmldir \ +TARGET = btsettingsplugin +TARGETPATH = QtDeviceUtilities/BluetoothSettings SOURCES += plugin.cpp -installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /) - -target.path = $$installPath -pluginfiles.path += $$installPath -INSTALLS += target pluginfiles +load(qml_plugin) -- cgit v1.2.3