summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/examples.pro4
-rw-r--r--examples/qtconcurrent/qtconcurrent.pro8
2 files changed, 10 insertions, 2 deletions
diff --git a/examples/examples.pro b/examples/examples.pro
index 176a5c95c5..9cf603da47 100644
--- a/examples/examples.pro
+++ b/examples/examples.pro
@@ -36,8 +36,8 @@ SUBDIRS = \
}
wince*|embedded|x11:!contains(QT_CONFIG, no-gui): SUBDIRS += embedded
-contains(QT_BUILD_PARTS, tools):!contains(QT_CONFIG, no-gui):SUBDIRS += qtestlib
-contains(QT_CONFIG, opengl): SUBDIRS += opengl
+contains(QT_BUILD_PARTS, tools):!contains(QT_CONFIG, no-gui):!contains(QT_CONFIG, no-widgets):SUBDIRS += qtestlib
+contains(QT_CONFIG, opengl):!contains(QT_CONFIG, no-widgets):SUBDIRS += opengl
contains(QT_CONFIG, dbus): SUBDIRS += dbus
contains(DEFINES, QT_NO_CURSOR): SUBDIRS -= mainwindows
contains(QT_CONFIG, concurrent): SUBDIRS += qtconcurrent
diff --git a/examples/qtconcurrent/qtconcurrent.pro b/examples/qtconcurrent/qtconcurrent.pro
index 4e5fd6ed7d..f41ba881a2 100644
--- a/examples/qtconcurrent/qtconcurrent.pro
+++ b/examples/qtconcurrent/qtconcurrent.pro
@@ -8,6 +8,14 @@ SUBDIRS = imagescaling \
SUBDIRS += progressdialog
}
+contains(QT_CONFIG, no-widgets) {
+ SUBDIRS -= \
+ imagescaling \
+ progressdialog \
+ runfunction \
+ wordcount
+}
+
# install
target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/qtconcurrent
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS qtconcurrent.pro README