Disable some tests and examples when --no-widgets is specified
authorJędrzej Nowacki <jedrzej.nowacki@nokia.com>
Fri, 16 Mar 2012 11:53:35 +0000 (12:53 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 19 Mar 2012 19:16:04 +0000 (20:16 +0100)
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>
examples/examples.pro
examples/statemachine/statemachine.pro
tests/auto/auto.pro

index e402f29..2180d18 100644 (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
 
index a049316..a2f18a4 100644 (file)
@@ -3,7 +3,7 @@ SUBDIRS       = \
                 factorial \
                 pingpong
 
-!contains(QT_CONFIG, no-gui) {
+!contains(QT_CONFIG, no-widgets) {
     SUBDIRS +=  \
                 eventtransitions \
                 rogue \
index a23c3d6..2322112 100644 (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 {