Since it's not guaranteed that other Qt modules will be built by the time qmake is run (and config.tests are created) we can't rely on compilation. Just check the module.pri variable for widgets instead. Change-Id: I352cf6427b748b89b69ec17588ce0dd83065090f Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
28 lines
563 B
Prolog
28 lines
563 B
Prolog
TEMPLATE = subdirs
|
|
|
|
# These examples all need widgets for now (using creator templates that use widgets)
|
|
!isEmpty(QT.widgets.name) {
|
|
SUBDIRS += \
|
|
radio \
|
|
camera \
|
|
slideshow \
|
|
spectrum \
|
|
audiorecorder \
|
|
audiodevices \
|
|
audioinput \
|
|
audiooutput \
|
|
videographicsitem \
|
|
videowidget \
|
|
player
|
|
|
|
contains(QT_CONFIG, declarative) {
|
|
disabled:SUBDIRS += declarative-camera
|
|
SUBDIRS += \
|
|
declarative-radio \
|
|
video
|
|
}
|
|
|
|
QT += widgets
|
|
}
|
|
|