ClangTools: Adjust test files

Qt6 handles multimedia and multimediawidgets as add-on modules,
so they get installed only if explicitly checked while installing.
Make them optional for testing Qt6 as well.

Change-Id: I33b0686a61bf20ace790aa0c2bc27a5219d30aac
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Christian Stenger
2021-09-16 15:48:36 +02:00
parent d8c1dfc789
commit 49c8471ef2
3 changed files with 16 additions and 5 deletions

View File

@@ -1,7 +1,11 @@
#include <QtCore>
#include <QtGui>
#ifdef QT_MULTIMEDIA_LIB
#include <QtMultimedia>
#endif
#ifdef QT_MULTIMEDIAWIDGETS_LIB
#include <QtMultimediaWidgets>
#endif
#include <QtNetwork>
#include <QtQml>
#include <QtQuick>

View File

@@ -1,12 +1,18 @@
QT += multimedia \
multimediawidgets \
network \
QT += network \
qml \
quick \
sql \
testlib \
widgets
qtHaveModule(multimedia) {
QT += multimedia
}
qtHaveModule(multimediawidgets) {
QT += multimediawidgets
}
TARGET = qt-essential-includes
TEMPLATE = app
SOURCES += main.cpp

View File

@@ -6,8 +6,6 @@ QtApplication {
Depends {
name: "Qt"
submodules: [
"multimedia",
"multimediawidgets",
"network",
"qml",
"quick",
@@ -17,6 +15,9 @@ QtApplication {
]
}
Depends { name: "Qt.multimedia"; required: false }
Depends { name: "Qt.multimediawidgets"; required: false }
files : [
"main.cpp",
]