Fix build of egl integration

Add missing includes and reorder includes to avoid X defines breakage

Change-Id: Iaf95ae2488df3d3301436262ed79f7091b4be0a9
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
This commit is contained in:
Stephan Binner 2015-02-02 13:10:50 +01:00
parent 2e2df81537
commit f8c8c79029
8 changed files with 31 additions and 25 deletions

View File

@ -45,6 +45,7 @@
// We mean it. // We mean it.
// //
#include <QtCore/qtextstream.h>
#include <qpa/qplatformwindow.h> #include <qpa/qplatformwindow.h>
#include <qpa/qplatformopenglcontext.h> #include <qpa/qplatformopenglcontext.h>
#include <QtCore/QVariant> #include <QtCore/QVariant>

View File

@ -45,9 +45,9 @@
// We mean it. // We mean it.
// //
#include <QtCore/QVariant>
#include <qpa/qplatformintegration.h> #include <qpa/qplatformintegration.h>
#include <qpa/qplatformnativeinterface.h> #include <qpa/qplatformnativeinterface.h>
#include <QtCore/QVariant>
#include <EGL/egl.h> #include <EGL/egl.h>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE

View File

@ -31,16 +31,17 @@
** **
****************************************************************************/ ****************************************************************************/
#include "qeglfscontext.h"
#include "qeglfswindow.h"
#include "qeglfshooks.h"
#include <QtPlatformSupport/private/qeglconvenience_p.h>
#include <QtPlatformSupport/private/qeglpbuffer_p.h>
#include <QtPlatformSupport/private/qeglplatformcursor_p.h>
#include <QtGui/QSurface> #include <QtGui/QSurface>
#include <QtDebug> #include <QtDebug>
#include <QtPlatformSupport/private/qeglplatformcursor_p.h>
#include <QtPlatformSupport/private/qeglconvenience_p.h>
#include <QtPlatformSupport/private/qeglpbuffer_p.h>
#include "qeglfswindow.h"
#include "qeglfshooks.h"
#include "qeglfscontext.h"
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
QEglFSContext::QEglFSContext(const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display, QEglFSContext::QEglFSContext(const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display,

View File

@ -31,10 +31,10 @@
** **
****************************************************************************/ ****************************************************************************/
#include "qeglfshooks.h"
#include <QtPlatformSupport/private/qeglplatformcursor_p.h> #include <QtPlatformSupport/private/qeglplatformcursor_p.h>
#include <QtPlatformSupport/private/qeglconvenience_p.h> #include <QtPlatformSupport/private/qeglconvenience_p.h>
#include <QtCore/QRegularExpression> #include <QtCore/QRegularExpression>
#include "qeglfshooks.h"
#if defined(Q_OS_LINUX) #if defined(Q_OS_LINUX)
#include <fcntl.h> #include <fcntl.h>

View File

@ -31,19 +31,9 @@
** **
****************************************************************************/ ****************************************************************************/
#include "qeglfsintegration.h" #include <QtCore/qtextstream.h>
#include "qeglfswindow.h"
#include "qeglfshooks.h"
#include "qeglfscontext.h"
#include <QtGui/private/qguiapplication_p.h> #include <QtGui/private/qguiapplication_p.h>
#include <QtPlatformSupport/private/qeglconvenience_p.h>
#include <QtPlatformSupport/private/qeglplatformcontext_p.h>
#include <QtPlatformSupport/private/qeglpbuffer_p.h>
#include <QtPlatformHeaders/QEGLNativeContext>
#include <qpa/qplatformwindow.h> #include <qpa/qplatformwindow.h>
#include <QtGui/QSurfaceFormat> #include <QtGui/QSurfaceFormat>
#include <QtGui/QOpenGLContext> #include <QtGui/QOpenGLContext>
@ -51,6 +41,16 @@
#include <QtGui/QOffscreenSurface> #include <QtGui/QOffscreenSurface>
#include <qpa/qplatformcursor.h> #include <qpa/qplatformcursor.h>
#include "qeglfsintegration.h"
#include "qeglfswindow.h"
#include "qeglfshooks.h"
#include "qeglfscontext.h"
#include <QtPlatformSupport/private/qeglconvenience_p.h>
#include <QtPlatformSupport/private/qeglplatformcontext_p.h>
#include <QtPlatformSupport/private/qeglpbuffer_p.h>
#include <QtPlatformHeaders/QEGLNativeContext>
#include <EGL/egl.h> #include <EGL/egl.h>
static void initResources() static void initResources()

View File

@ -31,10 +31,12 @@
** **
****************************************************************************/ ****************************************************************************/
#include <QtCore/qtextstream.h>
#include <QtPlatformSupport/private/qeglplatformcursor_p.h>
#include "qeglfsscreen.h" #include "qeglfsscreen.h"
#include "qeglfswindow.h" #include "qeglfswindow.h"
#include "qeglfshooks.h" #include "qeglfshooks.h"
#include <QtPlatformSupport/private/qeglplatformcursor_p.h>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE

View File

@ -31,8 +31,7 @@
** **
****************************************************************************/ ****************************************************************************/
#include "qeglfswindow.h" #include <QtCore/qtextstream.h>
#include "qeglfshooks.h"
#include <qpa/qwindowsysteminterface.h> #include <qpa/qwindowsysteminterface.h>
#include <qpa/qplatformintegration.h> #include <qpa/qplatformintegration.h>
#include <private/qguiapplication_p.h> #include <private/qguiapplication_p.h>
@ -40,6 +39,9 @@
#include <QtPlatformSupport/private/qeglplatformcursor_p.h> #include <QtPlatformSupport/private/qeglplatformcursor_p.h>
#include <QtPlatformSupport/private/qeglconvenience_p.h> #include <QtPlatformSupport/private/qeglconvenience_p.h>
#include "qeglfswindow.h"
#include "qeglfshooks.h"
#include <QtDebug> #include <QtDebug>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE

View File

@ -31,10 +31,10 @@
** **
****************************************************************************/ ****************************************************************************/
#include "qminimaleglwindow.h"
#include <qpa/qwindowsysteminterface.h> #include <qpa/qwindowsysteminterface.h>
#include "qminimaleglwindow.h"
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
QMinimalEglWindow::QMinimalEglWindow(QWindow *w) QMinimalEglWindow::QMinimalEglWindow(QWindow *w)