X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fplugins%2Fplatforms%2Fwayland%2Fgl_integration%2Fgl_integration.pri;h=d7e268a9f1516adf35fc83bb48a69c81c7b88ba4;hb=6ace81964c8786700aaa82568e7f3a4c35b63172;hp=8a792a5d14b1729c67c8387b129b26a660d5f6cd;hpb=f3e2d281d5776ea69d2db5b8f27948be2deb2751;p=profile%2Fivi%2Fqtwayland.git diff --git a/src/plugins/platforms/wayland/gl_integration/gl_integration.pri b/src/plugins/platforms/wayland/gl_integration/gl_integration.pri index 8a792a5..d7e268a 100644 --- a/src/plugins/platforms/wayland/gl_integration/gl_integration.pri +++ b/src/plugins/platforms/wayland/gl_integration/gl_integration.pri @@ -1,13 +1,62 @@ -HEADERS += \ - $$PWD/qwaylandglintegration.h \ - $$PWD/qwaylandglwindowsurface.h +QT_WAYLAND_GL_CONFIG = $$(QT_WAYLAND_GL_CONFIG) +contains(QT_CONFIG, opengl):!equals(QT_WAYLAND_GL_CONFIG, nogl) { + + DEFINES += QT_WAYLAND_GL_SUPPORT + + HEADERS += \ + $$PWD/qwaylandglintegration.h + + SOURCES += \ + $$PWD/qwaylandglintegration.cpp + + 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,readback) { + QT_WAYLAND_GL_INTEGRATION = readback_egl + CONFIG += readback_egl + } else { + QT_WAYLAND_GL_INTEGRATION = $$QT_WAYLAND_GL_CONFIG + CONFIG += wayland_egl + } + } else:mac { + QT_WAYLAND_GL_INTEGRATION = readback_cgl + CONFIG += readback_cgl + } else { + isEqual(QT_WAYLAND_GL_CONFIG, readback) { + QT_WAYLAND_GL_INTEGRATION = readback_glx + CONFIG += readback_glx + } else { + QT_WAYLAND_GL_INTEGRATION = xcomposite_glx + CONFIG += xcomposite_glx + } + } + + message("Wayland GL Integration: $$QT_WAYLAND_GL_INTEGRATION") +} -SOURCES += \ - $$PWD/qwaylandglintegration.cpp \ - $$PWD/qwaylandglwindowsurface.cpp wayland_egl { include ($$PWD/wayland_egl/wayland_egl.pri) } +readback_egl { + include ($$PWD/readback_egl/readback_egl.pri) +} + +readback_glx { + include ($$PWD/readback_glx/readback_glx.pri) +} + +readback_cgl { + include ($$PWD/readback_cgl/readback_cgl.pri) +} +xcomposite_glx { + include ($$PWD/xcomposite_glx/xcomposite_glx.pri) +} + +xcomposite_egl { + include ($$PWD/xcomposite_egl/xcomposite_egl.pri) +}