From b249c74338a69a7441708833565a6197412e55fa Mon Sep 17 00:00:00 2001 From: Alex Blasche Date: Fri, 4 Apr 2014 10:41:06 +0200 Subject: 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 Reviewed-by: Alex Blasche --- src/sensors/sensors.pro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sensors') diff --git a/src/sensors/sensors.pro b/src/sensors/sensors.pro index e7ad05f5..13e83151 100644 --- a/src/sensors/sensors.pro +++ b/src/sensors/sensors.pro @@ -5,7 +5,7 @@ QT = core-private CONFIG(debug,debug|release):DEFINES += ENABLE_RUNTIME_SENSORLOG !isEmpty(SENSORS_CONFIG_PATH):DEFINES += "QTSENSORS_CONFIG_PATH=\\\"$$SENSORS_CONFIG_PATH\\\"" -simulator { +qtHaveModule(simulator) { DEFINES += SIMULATOR_BUILD QT += simulator } @@ -52,7 +52,7 @@ GESTURE_HEADERS += \ gestures/qsensorgesturemanagerprivate_p.h \ gestures/qsensorgestureplugininterface.h -simulator { +qtHaveModule(simulator) { SOURCES += gestures/simulatorgesturescommon.cpp GESTURE_HEADERS += gestures/simulatorgesturescommon_p.h } -- cgit v1.2.3