summaryrefslogtreecommitdiffstats
path: root/examples/threads
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <br@blankpage.ch>2010-04-07 14:33:52 (GMT)
committerBenjamin Poulain <benjamin.poulain@nokia.com>2010-04-07 14:46:24 (GMT)
commit493bfea18600c98431c10f6853310c1c0aa6d869 (patch)
tree12d662da33c4846cc763725837a859b7f801ef0f /examples/threads
parent9e7aa36606bf8f407a3d9169e2253c550624f678 (diff)
downloadQt-493bfea18600c98431c10f6853310c1c0aa6d869.zip
Qt-493bfea18600c98431c10f6853310c1c0aa6d869.tar.gz
Qt-493bfea18600c98431c10f6853310c1c0aa6d869.tar.bz2
Allow building Qt without the QtGui module
This adds a -no-gui switch to configure, allowing to build Qt without QtGui and components depending on QtGui. This is useful on headless servers, and in using QtCore, QtNetwork, QtXml, QtSql etc. on platforms QtGui hasn't been ported to yet. Task-number: QTBUG-4007 Merge-request: 543 Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com> Reviewed-by: Benjamin Poulain <benjamin.poulain@nokia.com>
Diffstat (limited to 'examples/threads')
-rw-r--r--examples/threads/threads.pro5
-rw-r--r--examples/threads/waitconditions/waitconditions.pro1
2 files changed, 4 insertions, 2 deletions
diff --git a/examples/threads/threads.pro b/examples/threads/threads.pro
index 93d8cc8..feb72f0 100644
--- a/examples/threads/threads.pro
+++ b/examples/threads/threads.pro
@@ -1,8 +1,9 @@
TEMPLATE = subdirs
-SUBDIRS = mandelbrot \
- semaphores \
+SUBDIRS = semaphores \
waitconditions
+!contains(QT_CONFIG, no-gui):SUBDIRS += mandelbrot
+
# install
target.path = $$[QT_INSTALL_EXAMPLES]/threads
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS threads.pro README
diff --git a/examples/threads/waitconditions/waitconditions.pro b/examples/threads/waitconditions/waitconditions.pro
index c2be6cd..4f5d1d4 100644
--- a/examples/threads/waitconditions/waitconditions.pro
+++ b/examples/threads/waitconditions/waitconditions.pro
@@ -4,6 +4,7 @@
TEMPLATE = app
CONFIG -= moc app_bundle
+QT -= gui
DEPENDPATH += .
INCLUDEPATH += .