From 2b18939f83d596e8fff3da56314966d656ccfa0c Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Mon, 20 Jul 2015 15:10:33 +0200 Subject: Fix building with QT_NO_LIBRARY If QT_NO_LIBRARY isn't set we cannot test QCoreApplication's library path functions and none of the plugin and library related tests are applicable. Also, examples that rely on dynamic plugin loading for their core functionality obviously don't work. Change-Id: I2d381ee1bc8d944e1181557895a7e92a364fd778 Reviewed-by: Thiago Macieira --- examples/widgets/tools/tools.pro | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'examples/widgets') diff --git a/examples/widgets/tools/tools.pro b/examples/widgets/tools/tools.pro index 282f8dedea..503efa8403 100644 --- a/examples/widgets/tools/tools.pro +++ b/examples/widgets/tools/tools.pro @@ -18,3 +18,11 @@ SUBDIRS = \ contains(DEFINES, QT_NO_TRANSLATION): SUBDIRS -= i18n plugandpaint.depends = plugandpaintplugins + +load(qfeatures) +contains(QT_DISABLED_FEATURES, library) { + SUBDIRS -= \ + echoplugin \ + plugandpaintplugins \ + plugandpaint +} -- cgit v1.2.3