Revision control
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
- #### Inputs
+ # configure.cmake for the WaylandClientFeaturesPrivate module
+ # The following client-side features have not been moved
+ # to qtbase, as they are very Qt specific.
-
- #### Libraries
-
-
- # Even if libdrm is already found by qtbase we still need to list it as dependency for some of our
- # plugins
- if(TARGET Libdrm::Libdrm)
- qt_internal_disable_find_package_global_promotion(Libdrm::Libdrm)
- endif()
- qt_find_package(Libdrm PROVIDED_TARGETS Libdrm::Libdrm MODULE_NAME gui QMAKE_LIB drm MARK_OPTIONAL)
-
- #### Tests
-
-
- #### Features
-
- qt_feature("wayland-client-primary-selection" PRIVATE
- LABEL "primary-selection clipboard"
- CONDITION QT_FEATURE_clipboard
- )
- qt_feature("wayland-client-fullscreen-shell-v1" PRIVATE
- LABEL "fullscreen-shell-v1"
- CONDITION QT_FEATURE_wayland_client
- )
qt_feature("wayland-client-ivi-shell" PRIVATE
LABEL "ivi-shell"
CONDITION QT_FEATURE_wayland_client
)
- qt_feature("wayland-client-wl-shell" PRIVATE
- LABEL "wl-shell (deprecated)"
- CONDITION QT_FEATURE_wayland_client
- )
- qt_feature("wayland-client-xdg-shell" PRIVATE
- LABEL "xdg-shell"
- CONDITION QT_FEATURE_wayland_client
- )
qt_feature("wayland-client-qt-shell" PRIVATE
LABEL "qt-shell"
CONDITION QT_FEATURE_wayland_client
)
- qt_feature("egl-extension-platform-wayland" PRIVATE
- LABEL "EGL wayland platform extension"
- CONDITION QT_FEATURE_wayland_client AND QT_FEATURE_opengl AND QT_FEATURE_egl AND TEST_egl_1_5_wayland
+
+ # And this feature depends on QtSvg, so we can't have it in qtbase
+
+ qt_feature("wayland-decoration-adwaita" PRIVATE
+ LABEL "GNOME-like client-side decorations"
+ CONDITION NOT WIN32 AND QT_FEATURE_wayland_client AND TARGET Qt::DBus AND TARGET Qt::Svg
)
- qt_configure_add_summary_section(NAME "Qt Wayland Client Shell Integrations")
- qt_configure_add_summary_entry(ARGS "wayland-client-xdg-shell")
+
+ qt_configure_add_summary_section(NAME "Wayland Client")
+ qt_configure_add_summary_section(NAME "Shell Integrations")
qt_configure_add_summary_entry(ARGS "wayland-client-ivi-shell")
- qt_configure_add_summary_entry(ARGS "wayland-client-wl-shell")
qt_configure_add_summary_entry(ARGS "wayland-client-qt-shell")
- qt_configure_end_summary_section() # end of "Qt Wayland Client Shell Integrations" section
+ qt_configure_end_summary_section() # end of "Shell Integrations" section
+ qt_configure_add_summary_section(NAME "Decoration Plugins")
+ qt_configure_add_summary_entry(ARGS "wayland-decoration-adwaita")
+ qt_configure_end_summary_section() # end of "Decoration Plugins" section
+ qt_configure_end_summary_section() # end of "Wayland Client" section