blob: 0156c4907c1aa0470b4ccdba5284dca2bbe01482 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
isEmpty(QT_WAYLAND_GL_CONFIG):QT_WAYLAND_GL_CONFIG = $$(QT_WAYLAND_GL_CONFIG)
!mac:!isEqual(QT_WAYLAND_GL_CONFIG,nogl) {
HEADERS += \
$$PWD/graphicshardwareintegration.h
SOURCES += \
$$PWD/graphicshardwareintegration.cpp
DEFINES += QT_COMPOSITOR_WAYLAND_GL
isEqual(QT_WAYLAND_GL_CONFIG, custom) {
QT_WAYLAND_GL_INTEGRATION = $$QT_WAYLAND_GL_CONFIG
} else {
contains(QT_CONFIG, opengles2) {
isEqual(QT_WAYLAND_GL_CONFIG, xcomposite_egl) {
QT_WAYLAND_GL_INTEGRATION = xcomposite_egl
CONFIG += xcomposite_egl
} else:isEqual(QT_WAYLAND_GL_CONFIG, brcm_egl)|isEmpty(QT_WAYLAND_GL_CONFIG):contains(config_test_brcm_egl,yes) {
QT_WAYLAND_GL_INTEGRATION = brcm_egl
CONFIG += brcm_egl
} else {
QT_WAYLAND_GL_INTEGRATION = wayland_egl
CONFIG += wayland_egl
DEFINES += MESA_EGL_NO_X11_HEADERS
}
} else {
QT_WAYLAND_GL_INTEGRATION = xcomposite_glx
CONFIG += xcomposite_glx
}
}
system(echo "Qt-Compositor configured with openGL: $$QT_WAYLAND_GL_INTEGRATION")
} else {
system(echo "Qt-Compositor configured as raster only compositor")
}
brcm_egl {
include (brcm_egl/brcm_egl.pri)
}
wayland_egl {
include (wayland_egl/wayland_egl.pri)
}
xcomposite_egl {
include (xcomposite_egl/xcomposite_egl.pri)
}
xcomposite_glx {
include (xcomposite_glx/xcomposite_glx.pri)
}
|