Merge remote-tracking branch 'base/master' into refactor
[profile/ivi/qtwayland.git] / src / plugins / platforms / wayland / gl_integration / gl_integration.pri
1 contains(QT_CONFIG, opengl) {
2     DEFINES += QT_WAYLAND_GL_SUPPORT
3     QT += opengl
4
5 HEADERS += \
6     $$PWD/qwaylandglintegration.h
7
8 SOURCES += \
9     $$PWD/qwaylandglintegration.cpp
10
11     QT_WAYLAND_GL_CONFIG = $$(QT_WAYLAND_GL_CONFIG)
12     contains(QT_CONFIG, opengles2) {
13         isEqual(QT_WAYLAND_GL_CONFIG, wayland_egl) {
14             QT_WAYLAND_GL_INTEGRATION = $$QT_WAYLAND_GL_CONFIG
15             CONFIG += wayland_egl
16         } else:isEqual(QT_WAYLAND_GL_CONFIG,readback) {
17             QT_WAYLAND_GL_INTEGRATION = readback_egl
18             CONFIG += readback_egl
19         } else {
20             QT_WAYLAND_GL_INTEGRATION = xcomposite_egl
21             CONFIG += xcomposite_egl
22         }
23     } else {
24         isEqual(QT_WAYLAND_GL_CONFIG, readback) {
25             QT_WAYLAND_GL_INTEGRATION = readback_glx
26             CONFIG += readback_glx
27         } else {
28             QT_WAYLAND_GL_INTEGRATION = xcomposite_glx
29             CONFIG += xcomposite_glx
30         }
31     }
32
33     message("Wayland GL Integration: $$QT_WAYLAND_GL_INTEGRATION")
34 }
35
36
37 wayland_egl {
38     include ($$PWD/wayland_egl/wayland_egl.pri)
39 }
40
41 readback_egl {
42     include ($$PWD/readback_egl/readback_egl.pri)
43 }
44
45 readback_glx {
46     include ($$PWD/readback_glx/readback_glx.pri)
47 }
48
49 xcomposite_glx {
50     include ($$PWD/xcomposite_glx/xcomposite_glx.pri)
51 }
52
53 xcomposite_egl {
54     include ($$PWD/xcomposite_egl/xcomposite_egl.pri)
55 }