From 10df7967d996f4ec54744a8dd48e41b318377e73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Nowacki?= Date: Fri, 16 Mar 2012 12:53:35 +0100 Subject: Disable some tests and examples when --no-widgets is specified There are many tests, examples that depends on widgets. This patch disables some of them if Qt is configured without widgets. Change-Id: I5460dadca736c54221874adcd518a7021725d90a Reviewed-by: Oswald Buddenhagen --- examples/examples.pro | 7 +++++-- examples/statemachine/statemachine.pro | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/examples.pro b/examples/examples.pro index e402f29c98..2180d18587 100644 --- a/examples/examples.pro +++ b/examples/examples.pro @@ -15,7 +15,6 @@ SUBDIRS = \ effects \ graphicsview \ ipc \ - itemviews \ layouts \ linguist \ mainwindows \ @@ -25,9 +24,13 @@ SUBDIRS = \ sql \ tools \ tutorials \ - widgets \ touch \ gestures + + !contains(QT_CONFIG, no-widgets) { + SUBDIRS += widgets \ + itemviews + } } wince*|embedded|x11:!contains(QT_CONFIG, no-gui): SUBDIRS += embedded diff --git a/examples/statemachine/statemachine.pro b/examples/statemachine/statemachine.pro index a049316e08..a2f18a478f 100644 --- a/examples/statemachine/statemachine.pro +++ b/examples/statemachine/statemachine.pro @@ -3,7 +3,7 @@ SUBDIRS = \ factorial \ pingpong -!contains(QT_CONFIG, no-gui) { +!contains(QT_CONFIG, no-widgets) { SUBDIRS += \ eventtransitions \ rogue \ -- cgit v1.2.3