Move the EDID parser into QtGui

As a drive by, fix recursive inclusion in qxcbscreen.h.

Task-number: QTBUG-83255
Change-Id: Ia008921b559ef450c07aa17ca554c6b35e0a88bd
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Friedemann Kleint 2020-06-30 08:01:23 +02:00
parent b92a41ea21
commit acbe4190e9
23 changed files with 21 additions and 54 deletions

View File

@ -195,6 +195,8 @@ qt_add_module(Gui
util/qabstractlayoutstyleinfo.cpp util/qabstractlayoutstyleinfo_p.h
util/qastchandler.cpp util/qastchandler_p.h
util/qdesktopservices.cpp util/qdesktopservices.h
util/qedidparser.cpp util/qedidparser_p.h
util/qedidvendortable_p.h
util/qgridlayoutengine.cpp util/qgridlayoutengine_p.h
util/qhexstring_p.h
util/qktxhandler.cpp util/qktxhandler_p.h

View File

@ -245,6 +245,8 @@ qt_add_module(Gui
util/qabstractlayoutstyleinfo.cpp util/qabstractlayoutstyleinfo_p.h
util/qastchandler.cpp util/qastchandler_p.h
util/qdesktopservices.cpp util/qdesktopservices.h
util/qedidparser.cpp util/qedidparser_p.h
util/qedidvendortable_p.h
util/qgridlayoutengine.cpp util/qgridlayoutengine_p.h
util/qhexstring_p.h
util/qktxhandler.cpp util/qktxhandler_p.h

View File

@ -3,7 +3,7 @@
** Copyright (C) 2017 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
** Contact: https://www.qt.io/licensing/
**
** This file is part of the plugins of the Qt Toolkit.
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage

View File

@ -3,7 +3,7 @@
** Copyright (C) 2017 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
** Contact: https://www.qt.io/licensing/
**
** This file is part of the plugins of the Qt Toolkit.
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
@ -54,9 +54,13 @@
// We mean it.
//
#include <QtGui/qtguiglobal.h>
#include <QtCore/qstring.h>
#include <QtCore/qmap.h>
QT_BEGIN_NAMESPACE
class QEdidParser
class Q_GUI_EXPORT QEdidParser
{
public:
QEdidParser();

View File

@ -3,7 +3,7 @@
** Copyright (C) 2017 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
** Contact: https://www.qt.io/licensing/
**
** This file is part of the plugins of the Qt Toolkit.
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage

View File

@ -2,6 +2,8 @@
HEADERS += \
util/qdesktopservices.h \
util/qedidparser_p.h \
util/qedidvendortable_p.h \
util/qhexstring_p.h \
util/qvalidator.h \
util/qgridlayoutengine_p.h \
@ -23,6 +25,7 @@ HEADERS += \
SOURCES += \
util/qdesktopservices.cpp \
util/qedidparser.cpp \
util/qvalidator.cpp \
util/qgridlayoutengine.cpp \
util/qabstractlayoutstyleinfo.cpp \

View File

@ -1,6 +1,5 @@
# Generated from platformsupport.pro.
add_subdirectory(edid)
add_subdirectory(devicediscovery)
add_subdirectory(fbconvenience)
add_subdirectory(linuxofono)

View File

@ -1,6 +1,5 @@
# Generated from platformsupport.pro.
add_subdirectory(edid)
add_subdirectory(devicediscovery)
add_subdirectory(fbconvenience)
# special case begin

View File

@ -1,21 +0,0 @@
# Generated from edid.pro.
#####################################################################
## EdidSupport Module:
#####################################################################
qt_add_module(EdidSupport
STATIC
INTERNAL_MODULE
SOURCES
qedidparser.cpp qedidparser_p.h
DEFINES
QT_NO_CAST_FROM_ASCII
PUBLIC_LIBRARIES
Qt::CorePrivate
PRECOMPILED_HEADER
"../../corelib/global/qt_pch.h"
)
#### Keys ignored in scope 1:.:.:edid.pro:<TRUE>:
# MODULE = "edid_support"

View File

@ -1,13 +0,0 @@
TARGET = QtEdidSupport
MODULE = edid_support
QT = core-private
CONFIG += static internal_module
DEFINES += QT_NO_CAST_FROM_ASCII
PRECOMPILED_HEADER = ../../corelib/global/qt_pch.h
HEADERS += qedidparser_p.h
SOURCES += qedidparser.cpp
load(qt_module)

View File

@ -2,7 +2,6 @@ TEMPLATE = subdirs
QT_FOR_CONFIG += gui-private
SUBDIRS = \
edid \
devicediscovery \
fbconvenience

View File

@ -23,7 +23,6 @@ qt_internal_add_plugin(QEglFSKmsGbmIntegrationPlugin
Libdrm::Libdrm
Qt::Core
Qt::CorePrivate
Qt::EdidSupportPrivate
Qt::EglFSDeviceIntegrationPrivate
Qt::EglFsKmsSupportPrivate
Qt::Gui

View File

@ -4,7 +4,7 @@ PLUGIN_TYPE = egldeviceintegrations
PLUGIN_CLASS_NAME = QEglFSKmsGbmIntegrationPlugin
load(qt_plugin)
QT += core-private gui-private eglfsdeviceintegration-private eglfs_kms_support-private kms_support-private edid_support-private
QT += core-private gui-private eglfsdeviceintegration-private eglfs_kms_support-private kms_support-private
INCLUDEPATH += $$PWD/../../api $$PWD/../eglfs_kms_support

View File

@ -21,7 +21,6 @@ qt_internal_add_plugin(QEglFSKmsEglDeviceIntegrationPlugin
Libdrm::Libdrm
Qt::Core
Qt::CorePrivate
Qt::EdidSupportPrivate
Qt::EglFSDeviceIntegrationPrivate
Qt::EglFsKmsSupportPrivate
Qt::Gui

View File

@ -1,6 +1,6 @@
TARGET = qeglfs-kms-egldevice-integration
QT += core-private gui-private eglfsdeviceintegration-private eglfs_kms_support-private kms_support-private edid_support-private
QT += core-private gui-private eglfsdeviceintegration-private eglfs_kms_support-private kms_support-private
INCLUDEPATH += $$PWD/../../api $$PWD/../eglfs_kms_support

View File

@ -21,7 +21,6 @@ qt_add_module(EglFsKmsSupport
Libdrm::Libdrm
Qt::Core
Qt::CorePrivate
Qt::EdidSupportPrivate
Qt::EglFSDeviceIntegrationPrivate
Qt::Gui
Qt::GuiPrivate

View File

@ -2,7 +2,7 @@ TARGET = QtEglFsKmsSupport
CONFIG += no_module_headers internal_module
load(qt_module)
QT += core-private gui-private eglfsdeviceintegration-private kms_support-private edid_support-private
QT += core-private gui-private eglfsdeviceintegration-private kms_support-private
INCLUDEPATH += $$PWD/../../api

View File

@ -47,7 +47,7 @@
#include <QtCore/QMutex>
#include <QtKmsSupport/private/qkmsdevice_p.h>
#include <QtEdidSupport/private/qedidparser_p.h>
#include <QtGui/private/qedidparser_p.h>
QT_BEGIN_NAMESPACE

View File

@ -4,7 +4,7 @@ PLUGIN_TYPE = egldeviceintegrations
PLUGIN_CLASS_NAME = QEglFSKmsVsp2IntegrationPlugin
load(qt_plugin)
QT += core-private gui-private eglfsdeviceintegration-private eglfs_kms_support-private kms_support-private edid_support-private
QT += core-private gui-private eglfsdeviceintegration-private eglfs_kms_support-private kms_support-private
INCLUDEPATH += $$PWD/../../api $$PWD/../eglfs_kms_support

View File

@ -41,7 +41,6 @@ qt_add_module(XcbQpa
PUBLIC_LIBRARIES
PkgConfig::XKB_COMMON_X11
Qt::CorePrivate
Qt::EdidSupportPrivate
Qt::GuiPrivate
Qt::XkbCommonSupportPrivate
XCB::ICCCM

View File

@ -41,7 +41,6 @@ qt_add_module(XcbQpa
PUBLIC_LIBRARIES
PkgConfig::XKB_COMMON_X11
Qt::CorePrivate
Qt::EdidSupportPrivate
Qt::GuiPrivate
Qt::XkbCommonSupportPrivate
XCB::ICCCM

View File

@ -49,11 +49,10 @@
#include <xcb/xinerama.h>
#include "qxcbobject.h"
#include "qxcbscreen.h"
#include <private/qfontengine_p.h>
#include <QtEdidSupport/private/qedidparser_p.h>
#include <QtGui/private/qedidparser_p.h>
QT_BEGIN_NAMESPACE

View File

@ -4,7 +4,6 @@ DEFINES += QT_NO_FOREACH
QT += \
core-private gui-private \
edid_support-private \
xkbcommon_support-private
qtConfig(opengl): QT += opengl-private