qt5base-lts/examples/examples.pro
Jędrzej Nowacki 10df7967d9 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>
2012-03-19 20:16:04 +01:00

47 lines
1.2 KiB
Prolog

TEMPLATE = subdirs
SUBDIRS = \
network \
statemachine \
threads \
xml \
qpa
!contains(QT_CONFIG, no-gui) {
SUBDIRS += \
animation \
desktop \
dialogs \
draganddrop \
effects \
graphicsview \
ipc \
layouts \
linguist \
mainwindows \
painting \
richtext \
scroller \
sql \
tools \
tutorials \
touch \
gestures
!contains(QT_CONFIG, no-widgets) {
SUBDIRS += widgets \
itemviews
}
}
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_CONFIG, dbus): SUBDIRS += dbus
contains(DEFINES, QT_NO_CURSOR): SUBDIRS -= mainwindows
contains(QT_CONFIG, concurrent): SUBDIRS += qtconcurrent
# install
sources.files = README *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]
INSTALLS += sources