Details
-
Suggestion
-
Resolution: Fixed
-
P3: Somewhat important
-
None
-
None
-
a2ff329d2 (dev), fef1539e3 (dev), 9c1bca42d (6.7)
Description
Similar to xcb, it would be useful to have a configure test in qtbase/gui that checks if we have the required wayland libraries and exposes that as a (private) feature. E.g.
qt_feature("wayland" PRIVATE
LABEL "Wayland libraries"
PURPOSE "Indicates whether the Wayland libraries are available"
CONDITION TEST_wayland_libs
)
That way we can condition wayland specifics in qtbase to CONFIG(wayland), rather than the way to general Q_OS_UNIX, e.g:
#if defined(Q_OS_UNIX)
struct Q_GUI_EXPORT QWaylandWindow : public QObject