summaryrefslogtreecommitdiffstats
path: root/examples/widgets
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2015-07-20 15:10:33 +0200
committerUlf Hermann <ulf.hermann@theqtcompany.com>2015-09-30 13:04:26 +0000
commit2b18939f83d596e8fff3da56314966d656ccfa0c (patch)
treee0f487db42d1f0a91fd026142f00f830363c622e /examples/widgets
parent2a70677b64e61d7b136e4fa3725be53258327b42 (diff)
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 <thiago.macieira@intel.com>
Diffstat (limited to 'examples/widgets')
-rw-r--r--examples/widgets/tools/tools.pro8
1 files changed, 8 insertions, 0 deletions
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
+}