diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2017-01-12 14:04:04 +0100 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2019-04-04 12:10:05 +0000 |
commit | 8663de3fa789d8b8e10c5580b37f6eb3beac9ed6 (patch) | |
tree | 326bb613e96f8944b1bb93d9ff90149725b7c26c /src/imports | |
parent | c87451570f93fd7bf8653c27d6120f6436b9aaae (diff) | |
download | qtwayland-8663de3fa789d8b8e10c5580b37f6eb3beac9ed6.tar.gz |
Compositor: Don't require OpenGL to build the QML APIs
[ChangeLog][Compositor API] The compositor API now works without OpenGL support.
This makes the compositor API work with shared memory clients only. If OpenGL
clients connect they will currently punch holes in the compositor window, but
fixing that is out of scope for this patch.
Fixes: QTBUG-74896
Change-Id: I6c1ba82f28ba9edecf380e471124e15d16f9518e
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/compositor/qwaylandquickcompositorplugin.cpp | 2 | ||||
-rw-r--r-- | src/imports/imports.pro | 10 |
2 files changed, 9 insertions, 3 deletions
diff --git a/src/imports/compositor/qwaylandquickcompositorplugin.cpp b/src/imports/compositor/qwaylandquickcompositorplugin.cpp index df7536ed..c77be966 100644 --- a/src/imports/compositor/qwaylandquickcompositorplugin.cpp +++ b/src/imports/compositor/qwaylandquickcompositorplugin.cpp @@ -133,7 +133,9 @@ public: qmlRegisterType<QWaylandQuickCompositorQuickExtensionContainer>(uri, 1, 0, "WaylandCompositor"); qmlRegisterType<QWaylandQuickItem>(uri, 1, 0, "WaylandQuickItem"); qmlRegisterType<QWaylandQuickItem, 13>(uri, 1, 13, "WaylandQuickItem"); +#if QT_CONFIG(opengl) qmlRegisterType<QWaylandQuickHardwareLayer>(uri, 1, 2, "WaylandHardwareLayer"); +#endif qmlRegisterType<QWaylandMouseTracker>(uri, 1, 0, "WaylandMouseTracker"); qmlRegisterType<QWaylandQuickOutput>(uri, 1, 0, "WaylandOutput"); qmlRegisterType<QWaylandQuickSurface>(uri, 1, 0, "WaylandSurface"); diff --git a/src/imports/imports.pro b/src/imports/imports.pro index c8394f0c..1fced3df 100644 --- a/src/imports/imports.pro +++ b/src/imports/imports.pro @@ -2,7 +2,11 @@ TEMPLATE = subdirs qtHaveModule(quick): { SUBDIRS += \ - compositor \ - texture-sharing \ - texture-sharing-extension + compositor + + qtHaveModule(opengl): { + SUBDIRS += \ + texture-sharing \ + texture-sharing-extension + } } |