Ensure benchmarks which need QtWidgets are gracefully disabled when
that module is unavailable.
Fixed one unnecessary usage of "QT+=widgets".
Change-Id: I8031b5dca585749f0f4d22e0637adc3f57f4e418
Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
qobject \
qvariant \
qcoreapplication
+
+isEmpty(QT.widgets.name): SUBDIRS -= \
+ qmetaobject \
+ qobject
TEMPLATE = subdirs
-SUBDIRS = qanimation
+!isEmpty(QT.widgets.name):SUBDIRS = qanimation
qgraphicsscene \
qgraphicsview \
qgraphicswidget
+
+isEmpty(QT.widgets.name): SUBDIRS -= \
+ qgraphicsanchorlayout \
+ qgraphicsitem \
+ qgraphicsscene \
+ qgraphicsview \
+ qgraphicswidget
painting/qtracebench
include(../trusted-benchmarks.pri)
+
+isEmpty(QT.widgets.name): SUBDIRS -= \
+ itemviews
qimagereader \
qpixmap \
qpixmapcache
+
+isEmpty(QT.widgets.name): SUBDIRS -= \
+ qimagereader
TEMPLATE = subdirs
-SUBDIRS = \
+!isEmpty(QT.widgets.name):SUBDIRS = \
qapplication \
qwidget
qtransform \
qtracebench \
qtbench
+
+isEmpty(QT.widgets.name): SUBDIRS -= \
+ qpainter \
+ qtracebench \
+ qtbench
TEMPLATE = subdirs
-SUBDIRS = \
+!isEmpty(QT.widgets.name):SUBDIRS = \
qstylesheetstyle
-QT += widgets testlib
-QT += gui-private widgets-private
+QT += testlib
+QT += gui-private
TEMPLATE = app
TARGET = tst_bench_QText