From 4a1bf44de4153aa97ff5bd22e2f878f6a28a825a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tama=CC=81s=20Martinec?= Date: Mon, 17 May 2021 15:16:45 +0300 Subject: 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 Reviewed-by: Lorn Potter --- examples/sensors/qmlqtsensors/qmlqtsensors.pro | 2 ++ examples/sensors/qmlsensorgestures/qml.pro | 2 ++ 2 files changed, 4 insertions(+) (limited to 'examples') diff --git a/examples/sensors/qmlqtsensors/qmlqtsensors.pro b/examples/sensors/qmlqtsensors/qmlqtsensors.pro index 6add64d..4c8e83b 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 6191f32..7b7e449 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 = \ -- cgit v1.2.1