diff options
author | Bernhard Rosenkraenzer <br@blankpage.ch> | 2010-04-07 14:33:52 (GMT) |
---|---|---|
committer | Benjamin Poulain <benjamin.poulain@nokia.com> | 2010-04-07 14:46:24 (GMT) |
commit | 493bfea18600c98431c10f6853310c1c0aa6d869 (patch) | |
tree | 12d662da33c4846cc763725837a859b7f801ef0f /examples/examples.pro | |
parent | 9e7aa36606bf8f407a3d9169e2253c550624f678 (diff) | |
download | Qt-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/examples.pro')
-rw-r--r-- | examples/examples.pro | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/examples/examples.pro b/examples/examples.pro index b046167..43cad55 100644 --- a/examples/examples.pro +++ b/examples/examples.pro @@ -1,5 +1,12 @@ TEMPLATE = subdirs SUBDIRS = \ + network \ + statemachine \ + threads \ + xml + +!contains(QT_CONFIG, no-gui) { + SUBDIRS += \ animation \ desktop \ dialogs \ @@ -11,20 +18,17 @@ SUBDIRS = \ layouts \ linguist \ mainwindows \ - network \ painting \ qtconcurrent \ richtext \ sql \ - statemachine \ - threads \ tools \ tutorials \ widgets \ uitools \ - xml \ multitouch \ gestures +} symbian: SUBDIRS = \ graphicsview \ @@ -40,7 +44,7 @@ symbian: SUBDIRS = \ gestures \ xml -contains(QT_CONFIG, multimedia) { +!contains(QT_CONFIG, no-gui):contains(QT_CONFIG, multimedia) { SUBDIRS += multimedia } @@ -49,17 +53,17 @@ contains(QT_CONFIG, script): SUBDIRS += script contains(QT_CONFIG, phonon):!static: SUBDIRS += phonon embedded:SUBDIRS += qws !wince*:!symbian: { - !contains(QT_EDITION, Console):contains(QT_BUILD_PARTS, tools):SUBDIRS += designer - contains(QT_BUILD_PARTS, tools):SUBDIRS += qtestlib help + !contains(QT_EDITION, Console):!contains(QT_CONFIG, no-gui):contains(QT_BUILD_PARTS, tools):SUBDIRS += designer + contains(QT_BUILD_PARTS, tools):!contains(QT_CONFIG, no-gui):SUBDIRS += qtestlib help } else { - contains(QT_BUILD_PARTS, tools):SUBDIRS += qtestlib + contains(QT_BUILD_PARTS, tools):!contains(QT_CONFIG, no-gui):SUBDIRS += qtestlib } contains(QT_CONFIG, opengl): SUBDIRS += opengl contains(QT_CONFIG, openvg): SUBDIRS += openvg contains(QT_CONFIG, dbus): SUBDIRS += dbus contains(QT_CONFIG, declarative): SUBDIRS += declarative win32: SUBDIRS += activeqt -contains(QT_CONFIG, xmlpatterns): SUBDIRS += xmlpatterns +contains(QT_CONFIG, xmlpatterns):!contains(QT_CONFIG, no-gui): SUBDIRS += xmlpatterns contains(DEFINES, QT_NO_CURSOR): SUBDIRS -= mainwindows # install |