Build patch to allow building without qxmlpattern with -without-qt-xml

This commit is contained in:
Matthias Koefferlein 2022-03-07 21:53:55 +01:00
parent a4b663199d
commit 156b9137ab
2 changed files with 6 additions and 5 deletions

View File

@ -28,7 +28,6 @@
#include <QPoint>
#include <QColor>
#include <QSize>
#include <QAbstractMessageHandler>
// NOTE: this is required because HitTestAccuracy is defined here, but goes into Qt
// namespace which is in QtCore ... this introduces a dependency of QtCore GSI lib on QtGui.

View File

@ -186,10 +186,6 @@ equals(HAVE_QT, "0") {
QT += widgets gui printsupport
lessThan(QT_MAJOR_VERSION, 6) {
QT += xmlpatterns
}
equals(HAVE_QTBINDINGS, "1") {
!equals(HAVE_QT_DESIGNER, "0") {
# designer isn't needed by the base application
@ -207,6 +203,12 @@ equals(HAVE_QT, "0") {
# uitools isn't needed by the base application
QT += uitools
}
!equals(HAVE_QT_XML, "0") {
lessThan(QT_MAJOR_VERSION, 6) {
QT += xmlpatterns
}
}
}
} else {