summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/xcb.pro
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2011-02-24 16:43:52 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2011-03-01 07:59:40 (GMT)
commit7629130b24c01d406f5dee8e6600538db666cfa8 (patch)
tree48f65f55fae1dc0eb8dc06a333415b0cd04d7a9f /src/plugins/platforms/xcb/xcb.pro
parent463cee77f75d20760f9f74f52e1dfccb44fcb862 (diff)
downloadQt-7629130b24c01d406f5dee8e6600538db666cfa8.zip
Qt-7629130b24c01d406f5dee8e6600538db666cfa8.tar.gz
Qt-7629130b24c01d406f5dee8e6600538db666cfa8.tar.bz2
Lighthouse: Adding EGL support to the xcb plugin
Diffstat (limited to 'src/plugins/platforms/xcb/xcb.pro')
-rw-r--r--src/plugins/platforms/xcb/xcb.pro27
1 files changed, 21 insertions, 6 deletions
diff --git a/src/plugins/platforms/xcb/xcb.pro b/src/plugins/platforms/xcb/xcb.pro
index a6e92ef..b5850e4 100644
--- a/src/plugins/platforms/xcb/xcb.pro
+++ b/src/plugins/platforms/xcb/xcb.pro
@@ -21,14 +21,29 @@ HEADERS = \
qxcbwindow.h \
qxcbwindowsurface.h
-contains(QT_CONFIG, opengl):DEFINES += XCB_USE_XLIB_FOR_GLX
-
-contains(DEFINES, XCB_USE_XLIB_FOR_GLX) {
+contains(QT_CONFIG, opengl) {
QT += opengl
-
- HEADERS += qglxintegration.h
- SOURCES += qglxintegration.cpp
+ DEFINES += XCB_USE_XLIB
LIBS += -lX11 -lX11-xcb
+
+ contains(QT_CONFIG, opengles2) {
+ DEFINES += XCB_USE_EGL
+ HEADERS += \
+ ../eglconvenience/qeglplatformcontext.h \
+ ../eglconvenience/qeglconvenience.h \
+ ../eglconvenience/qxlibeglintegration.h
+
+ SOURCES += \
+ ../eglconvenience/qeglplatformcontext.cpp \
+ ../eglconvenience/qeglconvenience.cpp \
+ ../eglconvenience/qxlibeglintegration.cpp
+
+ LIBS += -lEGL
+ } else {
+ DEFINES += XCB_USE_GLX
+ HEADERS += qglxintegration.h
+ SOURCES += qglxintegration.cpp
+ }
}
LIBS += -lxcb -lxcb-image -lxcb-keysyms -lxcb-icccm