summaryrefslogtreecommitdiffstats
path: root/src/compositor/hardware_integration/hardware_integration.pri
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2011-12-05 17:09:02 +0100
committerLaszlo Agocs <laszlo.p.agocs@nokia.com>2011-12-07 09:58:35 +0100
commit4c89518228012ddc3602eab405e4b5fb8108fcdf (patch)
tree615d4fdc38999e408d52998c39760064d223b652 /src/compositor/hardware_integration/hardware_integration.pri
parent542eca71e074b5110df2aaf822449bf7d6ec2b91 (diff)
Make wayland actually a module
Also fix so that QtCompositor can be built as shared object. + fix so that the default QT_WAYLAND_GL_CONFIG is wayland_egl Change-Id: I02b72e99286584426bd37ab2d00bbc84af11efdc Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
Diffstat (limited to 'src/compositor/hardware_integration/hardware_integration.pri')
-rw-r--r--src/compositor/hardware_integration/hardware_integration.pri48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/compositor/hardware_integration/hardware_integration.pri b/src/compositor/hardware_integration/hardware_integration.pri
new file mode 100644
index 000000000..6e65ea9a3
--- /dev/null
+++ b/src/compositor/hardware_integration/hardware_integration.pri
@@ -0,0 +1,48 @@
+isEmpty(QT_WAYLAND_GL_CONFIG):QT_WAYLAND_GL_CONFIG = $$(QT_WAYLAND_GL_CONFIG)
+
+!mac:contains(QT_CONFIG, opengl):!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,dri2_xcb) {
+ QT_WAYLAND_GL_INTEGRATION = $$QT_WAYLAND_GL_CONFIG
+ CONFIG += dri2_xcb
+ } else {
+ QT_WAYLAND_GL_INTEGRATION = $$QT_WAYLAND_GL_CONFIG
+ 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")
+}
+
+wayland_egl {
+ include (wayland_egl/wayland_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)
+}