summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-04-04 10:41:06 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-07 13:29:14 +0200
commitb249c74338a69a7441708833565a6197412e55fa (patch)
treee5162634f362312376acee9d16beb614739f7744 /src/plugins
parent8b11ddef023a18d362a9b09eb794c3eee9c2d958 (diff)
Simplify building of simulator based code
There is no need for the CONFIG+=simulator logic anymore. qtHaveModule() is an automatic way of doing the same. Change-Id: Ibe87abb93e036a82fae3a752d9886c58ccebeec1 Reviewed-by: Rainer Keller <rainer.keller@digia.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/sensors/sensors.pro8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/sensors/sensors.pro b/src/plugins/sensors/sensors.pro
index a566716a..3f35db5a 100644
--- a/src/plugins/sensors/sensors.pro
+++ b/src/plugins/sensors/sensors.pro
@@ -1,7 +1,5 @@
TEMPLATE = subdirs
-# Don't build dummy plugins, the Blackberry backend has real implementations
-# of these. This reduces compile time and plugin loading time.
blackberry {
isEmpty(SENSORS_PLUGINS): SENSORS_PLUGINS = blackberry generic
}
@@ -22,9 +20,13 @@ winrt {
isEmpty(SENSORS_PLUGINS): SENSORS_PLUGINS = winrt generic
}
+qtHaveModule(simulator) {
+ isEmpty(SENSORS_PLUGINS): SENSORS_PLUGINS = simulator generic
+}
+
isEmpty(SENSORS_PLUGINS)|contains(SENSORS_PLUGINS, dummy):SUBDIRS += dummy
isEmpty(SENSORS_PLUGINS)|contains(SENSORS_PLUGINS, generic):SUBDIRS += generic
-isEmpty(SENSORS_PLUGINS)|contains(SENSORS_PLUGINS, simulator):simulator:SUBDIRS += simulator
+isEmpty(SENSORS_PLUGINS)|contains(SENSORS_PLUGINS, simulator):qtHaveModule(simulator):SUBDIRS += simulator
isEmpty(SENSORS_PLUGINS)|contains(SENSORS_PLUGINS, blackberry):blackberry:SUBDIRS += blackberry
isEmpty(SENSORS_PLUGINS)|contains(SENSORS_PLUGINS, linux):linux:SUBDIRS += linux
isEmpty(SENSORS_PLUGINS)|contains(SENSORS_PLUGINS, android):android:SUBDIRS += android