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
@@ -2,14 +2,12 @@ CONFIG += testcase
|
||||
TARGET = tst_qpaintervideosurface
|
||||
|
||||
QT += multimedia-private multimediawidgets-private testlib
|
||||
contains(QT_CONFIG, opengl) | contains(QT_CONFIG, opengles2) {
|
||||
qtHaveModule(opengl) {
|
||||
QT += opengl
|
||||
} else {
|
||||
DEFINES += QT_NO_OPENGL
|
||||
}
|
||||
|
||||
contains(QT_CONFIG, opengl): QT += opengl
|
||||
|
||||
SOURCES += tst_qpaintervideosurface.cpp
|
||||
|
||||
QT+=widgets
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
TEMPLATE = subdirs
|
||||
|
||||
SUBDIRS += multimedia.pro
|
||||
!isEmpty(QT.widgets.name): SUBDIRS += multimediawidgets.pro
|
||||
qtHaveModule(widgets): SUBDIRS += multimediawidgets.pro
|
||||
|
||||
Reference in New Issue
Block a user