+contains(QT_CONFIG, opengl) {
HEADERS += \
$$PWD/graphicshardwareintegration.h
SOURCES += \
$$PWD/graphicshardwareintegration.cpp
-wayland_gl{
- contains(QT_CONFIG, opengl) {
- DEFINES += QT_WAYLAND_GL_SUPPORT
- QT += opengl
+ DEFINES += QT_COMPOSITOR_WAYLAND_GL
+ QT += opengl
- contains(QT_CONFIG, opengles2) {
- mesa_egl {
- include (mesa_egl/mesa_egl.pri)
- DEFINES += QT_COMPOSITOR_MESA_EGL
- }
- dri2_xcb {
- include (dri2_xcb/dri2_xcb.pri)
- DEFINES += QT_COMPOSITOR_DRI2_XCB
- }
- xcomposite_egl {
- include (xcomposite_egl/xcomposite_egl.pri)
- }
+ QT_WAYLAND_GL_CONFIG = $$(QT_WAYLAND_GL_CONFIG)
+ contains(QT_CONFIG, opengles2) {
+ isEqual(QT_WAYLAND_GL_CONFIG, wayland_egl) {
+ QT_WAYLAND_GL_INTEGRATION = $$QT_WAYLAND_GL_CONFIG
+ CONFIG += mesa_egl
+ } else:isEqual(QT_WAYLAND_GL_CONFIG,dri2_xcb) {
+ QT_WAYLAND_GL_INTEGRATION = $$QT_WAYLAND_GL_CONFIG
+ CONFIG += dri2_xcb
} else {
- xcomposite_glx {
- include (xcomposite_glx/xcomposite_glx.pri)
- }
+ QT_WAYLAND_GL_INTEGRATION = xcomposite_egl
+ CONFIG += xcomposite_egl
}
+ } 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")
+}
+
+mesa_egl {
+ include (mesa_egl/mesa_egl.pri)
+}
+dri2_xcb {
+ include (dri2_xcb/dri2_xcb.pri)
+}
+xcomposite_egl {
+ include (xcomposite_egl/xcomposite_egl.pri)
+}
+xcomposite_glx {
+ include (xcomposite_glx/xcomposite_glx.pri)
}
LIBS += -lwayland-server -lffi
}
-wayland_gl {
- system(echo "Qt-Compositor configured with openGL")
- QT += opengl
- DEFINES += QT_COMPOSITOR_WAYLAND_GL
-} else {
- system(echo "Qt-Compositor configured as raster only compositor")
-}
-
include ($$PWD/util/util.pri)
include ($$PWD/wayland_wrapper/wayland_wrapper.pri)
include ($$PWD/hardware_integration/hardware_integration.pri)