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 <oswald.buddenhagen@nokia.com>
This commit is contained in:
Jędrzej Nowacki 2012-03-16 12:53:35 +01:00 committed by Qt by Nokia
parent 336f24465a
commit 10df7967d9
3 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -3,7 +3,7 @@ SUBDIRS = \
factorial \
pingpong
!contains(QT_CONFIG, no-gui) {
!contains(QT_CONFIG, no-widgets) {
SUBDIRS += \
eventtransitions \
rogue \

View File

@ -18,6 +18,7 @@ SUBDIRS += \
cross_compile: SUBDIRS -= tools
!contains(QT_CONFIG, opengl): SUBDIRS -= opengl
!unix|embedded|!contains(QT_CONFIG, dbus): SUBDIRS -= dbus
contains(QT_CONFIG, no-widgets): SUBDIRS -= widgets
# disable 'make check' on Mac OS X for the following subdirs for the time being
mac {