summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/xcb.pro
diff options
context:
space:
mode:
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