diff options
author | Tamás Martinec <tamas.martinec@symbio.com> | 2021-05-17 15:16:45 +0300 |
---|---|---|
committer | Tamás Martinec <tamas.martinec@symbio.com> | 2021-05-19 10:45:50 +0300 |
commit | 4a1bf44de4153aa97ff5bd22e2f878f6a28a825a (patch) | |
tree | 84a79d571484e5de01234b36b950087947294cdf /examples/sensors/qmlqtsensors | |
parent | d70a9906fced63aa1b8502dbdac58d4c244ef956 (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/sensors/qmlqtsensors')
-rw-r--r-- | examples/sensors/qmlqtsensors/qmlqtsensors.pro | 2 |
1 files changed, 2 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 += \ |