1 contains(QT_CONFIG, opengl) {
2 DEFINES += QT_WAYLAND_GL_SUPPORT
6 $$PWD/qwaylandglintegration.h \
7 $$PWD/qwaylandglwindowsurface.h
10 $$PWD/qwaylandglintegration.cpp \
11 $$PWD/qwaylandglwindowsurface.cpp
13 QT_WAYLAND_GL_CONFIG = $$(QT_WAYLAND_GL_CONFIG)
14 contains(QT_CONFIG, opengles2) {
15 isEqual(QT_WAYLAND_GL_CONFIG, wayland_egl) {
16 QT_WAYLAND_GL_INTEGRATION = $$QT_WAYLAND_GL_CONFIG
18 } else:isEqual(QT_WAYLAND_GL_CONFIG,readback) {
19 QT_WAYLAND_GL_INTEGRATION = readback_egl
20 CONFIG += readback_egl
22 QT_WAYLAND_GL_INTEGRATION = xcomposite_egl
23 CONFIG += xcomposite_egl
26 isEqual(QT_WAYLAND_GL_CONFIG, readback) {
27 QT_WAYLAND_GL_INTEGRATION = readback_glx
28 CONFIG += readback_glx
30 QT_WAYLAND_GL_INTEGRATION = xcomposite_glx
31 CONFIG += xcomposite_glx
35 message("Wayland GL Integration: $$QT_WAYLAND_GL_INTEGRATION")
40 include ($$PWD/wayland_egl/wayland_egl.pri)
44 include ($$PWD/readback_egl/readback_egl.pri)
48 include ($$PWD/readback_glx/readback_glx.pri)
52 include ($$PWD/xcomposite_glx/xcomposite_glx.pri)
56 include ($$PWD/xcomposite_egl/xcomposite_egl.pri)