From 90c65880b0ddf07768931df66a0c421af4c287cd Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Tue, 8 Oct 2013 12:14:46 +0200 Subject: skip gui-needing examples with -no-gui Change-Id: I2413f14f0c2d9179868877615d6131bf4ca7ea16 Reviewed-by: Sergio Ahumada --- examples/gui/gui.pro | 2 ++ examples/qpa/qpa.pro | 2 ++ examples/qtconcurrent/qtconcurrent.pro | 5 +++++ 3 files changed, 9 insertions(+) (limited to 'examples') diff --git a/examples/gui/gui.pro b/examples/gui/gui.pro index 8758a1ba95..5fb4241e74 100644 --- a/examples/gui/gui.pro +++ b/examples/gui/gui.pro @@ -1,3 +1,5 @@ +requires(qtHaveModule(gui)) + TEMPLATE = subdirs CONFIG += no_docs_target diff --git a/examples/qpa/qpa.pro b/examples/qpa/qpa.pro index 6f07e50fd8..27293482ef 100644 --- a/examples/qpa/qpa.pro +++ b/examples/qpa/qpa.pro @@ -1,2 +1,4 @@ +requires(qtHaveModule(gui)) + TEMPLATE = subdirs SUBDIRS = windows diff --git a/examples/qtconcurrent/qtconcurrent.pro b/examples/qtconcurrent/qtconcurrent.pro index 1df6f2d8cf..6e4e5f0f16 100644 --- a/examples/qtconcurrent/qtconcurrent.pro +++ b/examples/qtconcurrent/qtconcurrent.pro @@ -10,6 +10,11 @@ SUBDIRS = imagescaling \ SUBDIRS += progressdialog } +!qtHaveModule(gui) { + SUBDIRS -= \ + map +} + !qtHaveModule(widgets) { SUBDIRS -= \ imagescaling \ -- cgit v1.2.3