1 contains(QT_CONFIG, opengl) {
2 DEFINES += QT_WAYLAND_GL_SUPPORT
5 $$PWD/qwaylandglintegration.h
8 $$PWD/qwaylandglintegration.cpp
10 QT_WAYLAND_GL_CONFIG = $$(QT_WAYLAND_GL_CONFIG)
11 contains(QT_CONFIG, opengles2) {
12 isEqual(QT_WAYLAND_GL_CONFIG, xcomposite_egl) {
13 QT_WAYLAND_GL_INTEGRATION = xcomposite_egl
14 CONFIG += xcomposite_egl
15 } else:isEqual(QT_WAYLAND_GL_CONFIG,readback) {
16 QT_WAYLAND_GL_INTEGRATION = readback_egl
17 CONFIG += readback_egl
19 QT_WAYLAND_GL_INTEGRATION = $$QT_WAYLAND_GL_CONFIG
23 QT_WAYLAND_GL_INTEGRATION = readback_cgl
24 CONFIG += readback_cgl
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/readback_cgl/readback_cgl.pri)
56 include ($$PWD/xcomposite_glx/xcomposite_glx.pri)
60 include ($$PWD/xcomposite_egl/xcomposite_egl.pri)