The XCB plugin should not rely on QT_CONFIG=opengl anymore
authorGunnar Sletta <gunnar.sletta@nokia.com>
Wed, 31 Aug 2011 12:07:54 +0000 (14:07 +0200)
committerLars Knoll <lars.knoll@nokia.com>
Wed, 31 Aug 2011 14:32:52 +0000 (16:32 +0200)
Change-Id: Ieeedb7eb68704df811c613873bd2fc4b77e2aa04
Reviewed-on: http://codereview.qt.nokia.com/3966
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kevin Simons <kevin.simons@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/plugins/platforms/xcb/qglxintegration.cpp
src/plugins/platforms/xcb/xcb.pro

index bf58721..41bceaf 100644 (file)
@@ -41,7 +41,6 @@
 
 #include <QDebug>
 #include <QLibrary>
-#include <QGLFormat>
 
 #include "qxcbwindow.h"
 #include "qxcbscreen.h"
index ba36ab1..7700b48 100644 (file)
@@ -53,29 +53,25 @@ contains(QT_CONFIG, xcb-render) {
     LIBS += -lxcb-render -lxcb-render-util
 }
 
-contains(QT_CONFIG, opengl) {
-    QT += opengl
-
 #    DEFINES += XCB_USE_DRI2
-    contains(DEFINES, XCB_USE_DRI2) {
-        LIBS += -lxcb-dri2 -lEGL
-
-        CONFIG += link_pkgconfig
-        PKGCONFIG += libdrm
-
-        HEADERS += qdri2context.h
-        SOURCES += qdri2context.cpp
-
-    } else {
-        contains(QT_CONFIG, opengles2) {
-            DEFINES += XCB_USE_EGL
-            LIBS += -lEGL
-            HEADERS += qxcbeglsurface.h
-        } else:contains(QT_CONFIG, xcb-xlib) {
-            DEFINES += XCB_USE_GLX
-            HEADERS += qglxintegration.h
-            SOURCES += qglxintegration.cpp
-        }
+contains(DEFINES, XCB_USE_DRI2) {
+    LIBS += -lxcb-dri2 -lEGL
+
+    CONFIG += link_pkgconfig
+    PKGCONFIG += libdrm
+
+    HEADERS += qdri2context.h
+    SOURCES += qdri2context.cpp
+
+} else {
+    contains(QT_CONFIG, opengles2) {
+        DEFINES += XCB_USE_EGL
+        LIBS += -lEGL
+        HEADERS += qxcbeglsurface.h
+    } else:contains(QT_CONFIG, xcb-xlib) {
+        DEFINES += XCB_USE_GLX
+        HEADERS += qglxintegration.h
+        SOURCES += qglxintegration.cpp
     }
 }