summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorTamás Martinec <tamas.martinec@symbio.com>2021-05-17 15:16:45 +0300
committerTamás Martinec <tamas.martinec@symbio.com>2021-05-19 10:45:50 +0300
commit4a1bf44de4153aa97ff5bd22e2f878f6a28a825a (patch)
tree84a79d571484e5de01234b36b950087947294cdf /examples
parentd70a9906fced63aa1b8502dbdac58d4c244ef956 (diff)
QtSensors: Fix backend loading in examples on static builds
Added explicit sensors entry and plugin entries to the .pro files as the sensor plugins won't be linked on static builds (for example on iOS) otherwise. Task-number: QTBUG-92508 Change-Id: I6d7364ee2094be5a79bddd12ba041a69057dc070 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/sensors/qmlqtsensors/qmlqtsensors.pro2
-rw-r--r--examples/sensors/qmlsensorgestures/qml.pro2
2 files changed, 4 insertions, 0 deletions
diff --git a/examples/sensors/qmlqtsensors/qmlqtsensors.pro b/examples/sensors/qmlqtsensors/qmlqtsensors.pro
index 6add64dc..4c8e83b3 100644
--- a/examples/sensors/qmlqtsensors/qmlqtsensors.pro
+++ b/examples/sensors/qmlqtsensors/qmlqtsensors.pro
@@ -1,6 +1,8 @@
TEMPLATE = app
TARGET = qmlqtsensors
QT += quick
+qtConfig(static):QT += sensors
+
SOURCES = main.cpp
RESOURCES += \
diff --git a/examples/sensors/qmlsensorgestures/qml.pro b/examples/sensors/qmlsensorgestures/qml.pro
index 6191f322..7b7e4493 100644
--- a/examples/sensors/qmlsensorgestures/qml.pro
+++ b/examples/sensors/qmlsensorgestures/qml.pro
@@ -1,6 +1,8 @@
TEMPLATE = app
TARGET = qmlsensorgestures
QT += quick
+qtConfig(static):QTPLUGIN += qtsensorgestures_plugin qtsensorgestures_shakeplugin
+
SOURCES = main.cpp
OTHER_FILES = \