1 QT_WAYLAND_GL_CONFIG = $$(QT_WAYLAND_GL_CONFIG)
2 contains(QT_CONFIG, opengl):!equals(QT_WAYLAND_GL_CONFIG, nogl) {
4 DEFINES += QT_WAYLAND_GL_SUPPORT
7 $$PWD/qwaylandglintegration.h
10 $$PWD/qwaylandglintegration.cpp
12 contains(QT_CONFIG, opengles2) {
13 isEqual(QT_WAYLAND_GL_CONFIG, xcomposite_egl) {
14 QT_WAYLAND_GL_INTEGRATION = xcomposite_egl
15 CONFIG += xcomposite_egl
16 } else:isEqual(QT_WAYLAND_GL_CONFIG,readback) {
17 QT_WAYLAND_GL_INTEGRATION = readback_egl
18 CONFIG += readback_egl
20 QT_WAYLAND_GL_INTEGRATION = $$QT_WAYLAND_GL_CONFIG
24 QT_WAYLAND_GL_INTEGRATION = readback_cgl
25 CONFIG += readback_cgl
27 isEqual(QT_WAYLAND_GL_CONFIG, readback) {
28 QT_WAYLAND_GL_INTEGRATION = readback_glx
29 CONFIG += readback_glx
31 QT_WAYLAND_GL_INTEGRATION = xcomposite_glx
32 CONFIG += xcomposite_glx
36 message("Wayland GL Integration: $$QT_WAYLAND_GL_INTEGRATION")
41 include ($$PWD/wayland_egl/wayland_egl.pri)
45 include ($$PWD/readback_egl/readback_egl.pri)
49 include ($$PWD/readback_glx/readback_glx.pri)
53 include ($$PWD/readback_cgl/readback_cgl.pri)
57 include ($$PWD/xcomposite_glx/xcomposite_glx.pri)
61 include ($$PWD/xcomposite_egl/xcomposite_egl.pri)