Correct headers to build with eglfs modules

To build with eglfs module and gbm device integration module,
some headers should consider global path, not local.

This covers eglfs_kms and eglfs_kms_egldeivce device integration.
Other device integrations might be future work if needed.

Task-number: QTBUG-85268
Change-Id: I1bad5fbac99aa79d146e90f88b53519b09254e13
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Reviewed-by: Elvis Lee <kwangwoong.lee@lge.com>
This commit is contained in:
Elvis Lee 2020-11-05 18:22:02 +09:00
parent 2e3b8b36f7
commit 0decd926ad
17 changed files with 9 additions and 27 deletions

View File

@ -107,8 +107,6 @@ qt_internal_add_plugin(QEglFSIntegrationPlugin
qeglfsmain.cpp
DEFINES
QT_EGL_NO_X11
INCLUDE_DIRECTORIES
api
PUBLIC_LIBRARIES
Qt::CorePrivate # special case
Qt::EglFSDeviceIntegrationPrivate

View File

@ -15,9 +15,6 @@ qt_internal_add_module(EglFsKmsGbmSupport
qeglfskmsgbmwindow.cpp qeglfskmsgbmwindow_p.h
DEFINES
QT_EGL_NO_X11
INCLUDE_DIRECTORIES
../../api
../eglfs_kms_support
PUBLIC_LIBRARIES
Libdrm::Libdrm
Qt::CorePrivate

View File

@ -4,8 +4,6 @@ load(qt_module)
QT += core-private gui-private eglfsdeviceintegration-private eglfs_kms_support-private kms_support-private
INCLUDEPATH += $$PWD/../../api $$PWD/../eglfs_kms_support
# Avoid X11 header collision, use generic EGL native types
DEFINES += QT_EGL_NO_X11

View File

@ -42,7 +42,7 @@
#include "qeglfskmsgbmdevice_p.h"
#include "qeglfskmsgbmscreen_p.h"
#include "qeglfsintegration_p.h"
#include <private/qeglfsintegration_p.h>
#include <QtCore/QLoggingCategory>
#include <QtCore/private/qcore_unix_p.h>

View File

@ -54,7 +54,7 @@
//
#include "qeglfskmsgbmcursor_p.h"
#include <qeglfskmsdevice_p.h>
#include <private/qeglfskmsdevice_p.h>
#include <gbm.h>

View File

@ -42,7 +42,7 @@
#include "qeglfskmsgbmscreen_p.h"
#include "qeglfskmsgbmdevice_p.h"
#include "qeglfskmsgbmcursor_p.h"
#include "qeglfsintegration_p.h"
#include <private/qeglfsintegration_p.h>
#include <QtCore/QLoggingCategory>

View File

@ -53,7 +53,7 @@
// We mean it.
//
#include "qeglfskmsscreen_p.h"
#include <private/qeglfskmsscreen_p.h>
#include <QMutex>
#include <QWaitCondition>

View File

@ -14,9 +14,6 @@ qt_internal_add_plugin(QEglFSKmsEglDeviceIntegrationPlugin
qeglfskmsegldevicescreen.cpp qeglfskmsegldevicescreen.h
DEFINES
QT_EGL_NO_X11
INCLUDE_DIRECTORIES
../../api
../eglfs_kms_support
PUBLIC_LIBRARIES
Libdrm::Libdrm
Qt::Core

View File

@ -2,8 +2,6 @@ TARGET = qeglfs-kms-egldevice-integration
QT += core-private gui-private eglfsdeviceintegration-private eglfs_kms_support-private kms_support-private
INCLUDEPATH += $$PWD/../../api $$PWD/../eglfs_kms_support
# Avoid X11 header collision, use generic EGL native types
DEFINES += QT_EGL_NO_X11

View File

@ -40,7 +40,7 @@
#ifndef QEGLFSKMSEGLDEVICE_H
#define QEGLFSKMSEGLDEVICE_H
#include <qeglfskmsdevice_p.h>
#include <private/qeglfskmsdevice_p.h>
QT_BEGIN_NAMESPACE

View File

@ -41,7 +41,7 @@
#ifndef QEGLFSKMSEGLDEVICEINTEGRATION_H
#define QEGLFSKMSEGLDEVICEINTEGRATION_H
#include <qeglfskmsintegration_p.h>
#include <private/qeglfskmsintegration_p.h>
#include <xf86drm.h>
#include <xf86drmMode.h>

View File

@ -40,7 +40,7 @@
#ifndef QEGLFSKMSEGLDEVICESCREEN_H
#define QEGLFSKMSEGLDEVICESCREEN_H
#include <qeglfskmsscreen_p.h>
#include <private/qeglfskmsscreen_p.h>
QT_BEGIN_NAMESPACE

View File

@ -15,8 +15,6 @@ qt_internal_add_module(EglFsKmsSupport
qeglfskmsscreen.cpp qeglfskmsscreen_p.h
DEFINES
QT_EGL_NO_X11
INCLUDE_DIRECTORIES
../../api
PUBLIC_LIBRARIES
Libdrm::Libdrm
Qt::Core

View File

@ -4,8 +4,6 @@ load(qt_module)
QT += core-private gui-private eglfsdeviceintegration-private kms_support-private
INCLUDEPATH += $$PWD/../../api
# Avoid X11 header collision, use generic EGL native types
DEFINES += QT_EGL_NO_X11

View File

@ -41,7 +41,7 @@
#include "qeglfskmsscreen_p.h"
#include "qeglfskmsdevice_p.h"
#include "qeglfsintegration_p.h"
#include <private/qeglfsintegration_p.h>
#include <QtCore/QLoggingCategory>

View File

@ -11,8 +11,6 @@ SOURCES += $$PWD/qeglfsmain.cpp
OTHER_FILES += $$PWD/eglfs.json
INCLUDEPATH += $$PWD/api
PLUGIN_TYPE = platforms
PLUGIN_CLASS_NAME = QEglFSIntegrationPlugin
!equals(TARGET, $$QT_DEFAULT_QPA_PLUGIN): PLUGIN_EXTENDS = -

View File

@ -38,7 +38,7 @@
****************************************************************************/
#include <qpa/qplatformintegrationplugin.h>
#include "qeglfsintegration_p.h"
#include <private/qeglfsintegration_p.h>
QT_BEGIN_NAMESPACE