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:
committed by
The Qt Project
parent
07efce4375
commit
4760e1fb02
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user