make use of qtHaveModule()

Change-Id: I14da5455b7dd4681254e1652395df5f5c65746bd
Reviewed-by: Tasuku Suzuki <stasuku@gmail.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@gmail.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
Oswald Buddenhagen
2012-12-21 11:45:50 +01:00
committed by The Qt Project
parent 07efce4375
commit 4760e1fb02
16 changed files with 22 additions and 24 deletions

View File

@@ -1,7 +1,7 @@
TEMPLATE = subdirs
# These examples all need widgets for now (using creator templates that use widgets)
!isEmpty(QT.widgets.name) {
qtHaveModule(widgets) {
SUBDIRS += \
camera \
videographicsitem \
@@ -10,7 +10,7 @@ TEMPLATE = subdirs
customvideosurface
}
!isEmpty(QT.gui.name):!isEmpty(QT.qml.name) {
qtHaveModule(gui):qtHaveModule(qml) {
disabled:SUBDIRS += declarative-camera
}