summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/sensors/qmlsensorgestures/plugin/plugin.pro18
1 files changed, 12 insertions, 6 deletions
diff --git a/examples/sensors/qmlsensorgestures/plugin/plugin.pro b/examples/sensors/qmlsensorgestures/plugin/plugin.pro
index 2003e910..9d5f26b9 100644
--- a/examples/sensors/qmlsensorgestures/plugin/plugin.pro
+++ b/examples/sensors/qmlsensorgestures/plugin/plugin.pro
@@ -1,10 +1,19 @@
+QT += sensors
+TARGET = qtsensorgestures_counterplugin
+
+QTDIR_build {
+# This is only for the Qt build. Do not use externally. We mean it.
+PLUGIN_TYPE = sensorgestures
+load(qt_plugin)
+} else {
+
TEMPLATE = lib
CONFIG += plugin
-TARGET = qtsensorgestures_counterplugin
+target.path += $$[QT_INSTALL_PLUGINS]/sensorgestures
+INSTALLS += target
-QT += sensors
-DESTDIR = $$QT.sensors.plugins/sensorgestures
+}
HEADERS += \
qcountergestureplugin.h \
@@ -13,9 +22,6 @@ SOURCES += \
qcountergestureplugin.cpp \
qcounterrecognizer.cpp
-target.path += $$[QT_INSTALL_PLUGINS]/sensorgestures
-INSTALLS += target
-
OTHER_FILES += \
plugin.json