Remove Qt4 stuff from qmake files
[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
4 HEADERS += \
5     $$PWD/qwaylandglintegration.h
6
7 SOURCES += \
8     $$PWD/qwaylandglintegration.cpp
9
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
18         } else {
19             QT_WAYLAND_GL_INTEGRATION = $$QT_WAYLAND_GL_CONFIG
20             CONFIG += wayland_egl
21         }
22     } else:mac {
23         QT_WAYLAND_GL_INTEGRATION = readback_cgl
24         CONFIG += readback_cgl
25     } else {
26         isEqual(QT_WAYLAND_GL_CONFIG, readback) {
27             QT_WAYLAND_GL_INTEGRATION = readback_glx
28             CONFIG += readback_glx
29         } else {
30             QT_WAYLAND_GL_INTEGRATION = xcomposite_glx
31             CONFIG += xcomposite_glx
32         }
33     }
34
35     message("Wayland GL Integration: $$QT_WAYLAND_GL_INTEGRATION")
36 }
37
38
39 wayland_egl {
40     include ($$PWD/wayland_egl/wayland_egl.pri)
41 }
42
43 readback_egl {
44     include ($$PWD/readback_egl/readback_egl.pri)
45 }
46
47 readback_glx {
48     include ($$PWD/readback_glx/readback_glx.pri)
49 }
50
51 readback_cgl {
52     include ($$PWD/readback_cgl/readback_cgl.pri)
53 }
54
55 xcomposite_glx {
56     include ($$PWD/xcomposite_glx/xcomposite_glx.pri)
57 }
58
59 xcomposite_egl {
60     include ($$PWD/xcomposite_egl/xcomposite_egl.pri)
61 }