diff --git a/src/platformsupport/wayland/CMakeLists.txt b/src/platformsupport/wayland/CMakeLists.txt new file mode 100644 index 00000000000..62c1adbec41 --- /dev/null +++ b/src/platformsupport/wayland/CMakeLists.txt @@ -0,0 +1,58 @@ +# Generated from src.pro. +# special case begin +qt_find_package(WaylandScanner PROVIDED_TARGETS Wayland::Scanner) +qt_find_package(Wayland) + +if (NOT WaylandScanner_FOUND OR NOT Wayland_FOUND) + message(WARNING "QtWayland is missing required dependencies, nothing will be built. \ +Although this could be considered an error, the configuration will still pass as coin (Qt's \ +continuous integration system) will fail the build if configure fails, but will still try to \ +configure the module on targets that are missing dependencies.") + return() +endif() + +# We conditionally add_subdirectory(client) based on a feature that is defined +# in client/configure.cmake, so we need this hack to make sure the feature is +# defined on this level as well. +# TODO: when we remove configure.json support and stop generating +# configure.cmake, we should move the features up one level and deduplicate the +# features shared with the compositor. +qt_feature_module_begin( + NO_MODULE + PUBLIC_FILE "qtwayland-client-config.h" + PRIVATE_FILE "qtwayland-client-config_p.h" +) +include("${CMAKE_CURRENT_SOURCE_DIR}/client/configure.cmake") +qt_feature_module_end(NO_MODULE) + +# Similar hack as above, but for the compositor +qt_feature_module_begin( + NO_MODULE + PUBLIC_FILE "qtwayland-compositor-config.h" + PRIVATE_FILE "qtwayland-compositor-config_p.h" +) +include("${CMAKE_CURRENT_SOURCE_DIR}/compositor/configure.cmake") +qt_feature_module_end(NO_MODULE) +# special case end + +add_subdirectory(qtwaylandscanner) + +# special case begin +# TODO: Ideally these macros would be part of the qtwaylandscanner tool, and not the compositor/client +include(client/Qt6WaylandClientMacros.cmake) +include(compositor/Qt6WaylandCompositorMacros.cmake) +#special case end + +if (QT_FEATURE_wayland_client) + add_subdirectory(client) +endif() + +if (QT_FEATURE_wayland_server) + add_subdirectory(compositor) +endif() + +if (QT_FEATURE_wayland_server OR QT_FEATURE_wayland_client) + add_subdirectory(plugins) + add_subdirectory(imports) +endif() +# special case end diff --git a/src/plugins/platforms/wayland/.prev_CMakeLists.txt b/src/plugins/platforms/wayland/.prev_CMakeLists.txt new file mode 100644 index 00000000000..274cf70d670 --- /dev/null +++ b/src/plugins/platforms/wayland/.prev_CMakeLists.txt @@ -0,0 +1,135 @@ +# Generated from client.pro. + +##################################################################### +## WaylandClient Module: +##################################################################### + +qt_add_module(WaylandClient + PLUGIN_TYPES wayland-graphics-integration-client wayland-inputdevice-integration wayland-decoration-client wayland-shell-integration + SOURCES + ../shared/qwaylandinputmethodeventbuilder.cpp ../shared/qwaylandinputmethodeventbuilder_p.h + ../shared/qwaylandmimehelper.cpp ../shared/qwaylandmimehelper_p.h + ../shared/qwaylandsharedmemoryformathelper_p.h + global/qwaylandclientextension.cpp global/qwaylandclientextension.h global/qwaylandclientextension_p.h + hardwareintegration/qwaylandclientbufferintegration.cpp hardwareintegration/qwaylandclientbufferintegration_p.h + hardwareintegration/qwaylandclientbufferintegrationfactory.cpp hardwareintegration/qwaylandclientbufferintegrationfactory_p.h + hardwareintegration/qwaylandclientbufferintegrationplugin.cpp hardwareintegration/qwaylandclientbufferintegrationplugin_p.h + hardwareintegration/qwaylandhardwareintegration.cpp hardwareintegration/qwaylandhardwareintegration_p.h + hardwareintegration/qwaylandserverbufferintegration.cpp hardwareintegration/qwaylandserverbufferintegration_p.h + hardwareintegration/qwaylandserverbufferintegrationfactory.cpp hardwareintegration/qwaylandserverbufferintegrationfactory_p.h + hardwareintegration/qwaylandserverbufferintegrationplugin.cpp hardwareintegration/qwaylandserverbufferintegrationplugin_p.h + inputdeviceintegration/qwaylandinputdeviceintegration_p.h + inputdeviceintegration/qwaylandinputdeviceintegrationfactory.cpp inputdeviceintegration/qwaylandinputdeviceintegrationfactory_p.h + inputdeviceintegration/qwaylandinputdeviceintegrationplugin.cpp inputdeviceintegration/qwaylandinputdeviceintegrationplugin_p.h + qtwaylandclientglobal.h qtwaylandclientglobal_p.h + qwaylandabstractdecoration.cpp qwaylandabstractdecoration_p.h + qwaylandbuffer.cpp qwaylandbuffer_p.h + qwaylanddecorationfactory.cpp qwaylanddecorationfactory_p.h + qwaylanddecorationplugin.cpp qwaylanddecorationplugin_p.h + qwaylanddisplay.cpp qwaylanddisplay_p.h + qwaylandextendedsurface.cpp qwaylandextendedsurface_p.h + qwaylandinputcontext.cpp qwaylandinputcontext_p.h + qwaylandinputdevice.cpp qwaylandinputdevice_p.h + qwaylandintegration.cpp qwaylandintegration_p.h + qwaylandnativeinterface.cpp qwaylandnativeinterface_p.h + qwaylandqtkey.cpp qwaylandqtkey_p.h + qwaylandscreen.cpp qwaylandscreen_p.h + qwaylandshellsurface.cpp qwaylandshellsurface_p.h + qwaylandshm.cpp qwaylandshm_p.h + qwaylandshmbackingstore.cpp qwaylandshmbackingstore_p.h + qwaylandshmwindow.cpp qwaylandshmwindow_p.h + qwaylandsubsurface.cpp qwaylandsubsurface_p.h + qwaylandsurface.cpp qwaylandsurface_p.h + qwaylandtouch.cpp qwaylandtouch_p.h + qwaylandwindow.cpp qwaylandwindow_p.h + qwaylandwindowmanagerintegration.cpp qwaylandwindowmanagerintegration_p.h + shellintegration/qwaylandshellintegration_p.h + shellintegration/qwaylandshellintegrationfactory.cpp shellintegration/qwaylandshellintegrationfactory_p.h + shellintegration/qwaylandshellintegrationplugin.cpp shellintegration/qwaylandshellintegrationplugin_p.h + INCLUDE_DIRECTORIES + ../shared + global + hardwareintegration + inputdeviceintegration + shellintegration + LIBRARIES + Qt::CorePrivate + Qt::EventDispatcherSupportPrivate + Qt::FontDatabaseSupportPrivate + Qt::GuiPrivate + Qt::ServiceSupportPrivate + Qt::ThemeSupportPrivate + PUBLIC_LIBRARIES + Qt::Core + Qt::Gui + Wayland::Client +) + +qt6_generate_wayland_protocol_client_sources(WaylandClient + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../3rdparty/protocol/text-input-unstable-v2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../3rdparty/protocol/wp-primary-selection-unstable-v1.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../3rdparty/protocol/xdg-output-unstable-v1.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../extensions/qt-key-unstable-v1.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../extensions/qt-windowmanager.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../extensions/surface-extension.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../extensions/touch-extension.xml + ${CMAKE_CURRENT_SOURCE_DIR}/hardwareintegration/../../extensions/hardware-integration.xml + ${CMAKE_CURRENT_SOURCE_DIR}/hardwareintegration/../../extensions/server-buffer-extension.xml +) + +#### Keys ignored in scope 1:.:.:client.pro:: +# MODULE = "waylandclient" +# QMAKE_CXXFLAGS_WARN_ON = "--Wcast-qual" + +## Scopes: +##################################################################### + +qt_extend_target(WaylandClient CONDITION QT_FEATURE_vulkan + SOURCES + qwaylandvulkaninstance.cpp qwaylandvulkaninstance_p.h + qwaylandvulkanwindow.cpp qwaylandvulkanwindow_p.h + LIBRARIES + Qt::VulkanSupportPrivate +) + +qt_extend_target(WaylandClient CONDITION QT_FEATURE_xkbcommon + LIBRARIES + Qt::XkbCommonSupportPrivate +) + +qt_extend_target(WaylandClient CONDITION TARGET linuxaccessibility_support_private + LIBRARIES + linuxaccessibility_support_private +) + +qt_extend_target(WaylandClient CONDITION QT_FEATURE_clipboard + SOURCES + qwaylandclipboard.cpp qwaylandclipboard_p.h +) + +qt_extend_target(WaylandClient CONDITION QT_FEATURE_cursor + SOURCES + qwaylandcursor.cpp qwaylandcursor_p.h + PUBLIC_LIBRARIES + Wayland::Cursor +) + +qt_extend_target(WaylandClient CONDITION QT_FEATURE_wayland_datadevice + SOURCES + qwaylanddatadevice.cpp qwaylanddatadevice_p.h + qwaylanddatadevicemanager.cpp qwaylanddatadevicemanager_p.h + qwaylanddataoffer.cpp qwaylanddataoffer_p.h + qwaylanddatasource.cpp qwaylanddatasource_p.h +) + +qt_extend_target(WaylandClient CONDITION QT_FEATURE_wayland_client_primary_selection + SOURCES + qwaylandprimaryselectionv1.cpp qwaylandprimaryselectionv1_p.h +) + +qt_extend_target(WaylandClient CONDITION QT_FEATURE_draganddrop + SOURCES + qwaylanddnd.cpp qwaylanddnd_p.h +) diff --git a/src/plugins/platforms/wayland/CMakeLists.txt b/src/plugins/platforms/wayland/CMakeLists.txt new file mode 100644 index 00000000000..1338651794c --- /dev/null +++ b/src/plugins/platforms/wayland/CMakeLists.txt @@ -0,0 +1,135 @@ +# Generated from client.pro. + +##################################################################### +## WaylandClient Module: +##################################################################### + +qt_add_module(WaylandClient + PLUGIN_TYPES wayland-graphics-integration-client wayland-inputdevice-integration wayland-decoration-client wayland-shell-integration + SOURCES + ../shared/qwaylandinputmethodeventbuilder.cpp ../shared/qwaylandinputmethodeventbuilder_p.h + ../shared/qwaylandmimehelper.cpp ../shared/qwaylandmimehelper_p.h + ../shared/qwaylandsharedmemoryformathelper_p.h + global/qwaylandclientextension.cpp global/qwaylandclientextension.h global/qwaylandclientextension_p.h + hardwareintegration/qwaylandclientbufferintegration.cpp hardwareintegration/qwaylandclientbufferintegration_p.h + hardwareintegration/qwaylandclientbufferintegrationfactory.cpp hardwareintegration/qwaylandclientbufferintegrationfactory_p.h + hardwareintegration/qwaylandclientbufferintegrationplugin.cpp hardwareintegration/qwaylandclientbufferintegrationplugin_p.h + hardwareintegration/qwaylandhardwareintegration.cpp hardwareintegration/qwaylandhardwareintegration_p.h + hardwareintegration/qwaylandserverbufferintegration.cpp hardwareintegration/qwaylandserverbufferintegration_p.h + hardwareintegration/qwaylandserverbufferintegrationfactory.cpp hardwareintegration/qwaylandserverbufferintegrationfactory_p.h + hardwareintegration/qwaylandserverbufferintegrationplugin.cpp hardwareintegration/qwaylandserverbufferintegrationplugin_p.h + inputdeviceintegration/qwaylandinputdeviceintegration_p.h + inputdeviceintegration/qwaylandinputdeviceintegrationfactory.cpp inputdeviceintegration/qwaylandinputdeviceintegrationfactory_p.h + inputdeviceintegration/qwaylandinputdeviceintegrationplugin.cpp inputdeviceintegration/qwaylandinputdeviceintegrationplugin_p.h + qtwaylandclientglobal.h qtwaylandclientglobal_p.h + qwaylandabstractdecoration.cpp qwaylandabstractdecoration_p.h + qwaylandbuffer.cpp qwaylandbuffer_p.h + qwaylanddecorationfactory.cpp qwaylanddecorationfactory_p.h + qwaylanddecorationplugin.cpp qwaylanddecorationplugin_p.h + qwaylanddisplay.cpp qwaylanddisplay_p.h + qwaylandextendedsurface.cpp qwaylandextendedsurface_p.h + qwaylandinputcontext.cpp qwaylandinputcontext_p.h + qwaylandinputdevice.cpp qwaylandinputdevice_p.h + qwaylandintegration.cpp qwaylandintegration_p.h + qwaylandnativeinterface.cpp qwaylandnativeinterface_p.h + qwaylandqtkey.cpp qwaylandqtkey_p.h + qwaylandscreen.cpp qwaylandscreen_p.h + qwaylandshellsurface.cpp qwaylandshellsurface_p.h + qwaylandshm.cpp qwaylandshm_p.h + qwaylandshmbackingstore.cpp qwaylandshmbackingstore_p.h + qwaylandshmwindow.cpp qwaylandshmwindow_p.h + qwaylandsubsurface.cpp qwaylandsubsurface_p.h + qwaylandsurface.cpp qwaylandsurface_p.h + qwaylandtouch.cpp qwaylandtouch_p.h + qwaylandwindow.cpp qwaylandwindow_p.h + qwaylandwindowmanagerintegration.cpp qwaylandwindowmanagerintegration_p.h + shellintegration/qwaylandshellintegration_p.h + shellintegration/qwaylandshellintegrationfactory.cpp shellintegration/qwaylandshellintegrationfactory_p.h + shellintegration/qwaylandshellintegrationplugin.cpp shellintegration/qwaylandshellintegrationplugin_p.h + INCLUDE_DIRECTORIES + ../shared + global + hardwareintegration + inputdeviceintegration + shellintegration + LIBRARIES + Qt::CorePrivate + Qt::EventDispatcherSupportPrivate + Qt::FontDatabaseSupportPrivate + Qt::GuiPrivate + Qt::ServiceSupportPrivate + Qt::ThemeSupportPrivate + PUBLIC_LIBRARIES + Qt::Core + Qt::Gui + Wayland::Client +) + +qt6_generate_wayland_protocol_client_sources(WaylandClient + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../3rdparty/protocol/text-input-unstable-v2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../3rdparty/protocol/wp-primary-selection-unstable-v1.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../3rdparty/protocol/xdg-output-unstable-v1.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../extensions/qt-key-unstable-v1.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../extensions/qt-windowmanager.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../extensions/surface-extension.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../extensions/touch-extension.xml + ${CMAKE_CURRENT_SOURCE_DIR}/hardwareintegration/../../extensions/hardware-integration.xml + ${CMAKE_CURRENT_SOURCE_DIR}/hardwareintegration/../../extensions/server-buffer-extension.xml +) + +#### Keys ignored in scope 1:.:.:client.pro:: +# MODULE = "waylandclient" +# QMAKE_CXXFLAGS_WARN_ON = "--Wcast-qual" + +## Scopes: +##################################################################### + +qt_extend_target(WaylandClient CONDITION QT_FEATURE_vulkan + SOURCES + qwaylandvulkaninstance.cpp qwaylandvulkaninstance_p.h + qwaylandvulkanwindow.cpp qwaylandvulkanwindow_p.h + LIBRARIES + Qt::VulkanSupportPrivate +) + +qt_extend_target(WaylandClient CONDITION QT_FEATURE_xkbcommon + LIBRARIES + Qt::XkbCommonSupportPrivate +) + +qt_extend_target(WaylandClient CONDITION TARGET Qt::LinuxAccessibilitySupportPrivate # special case + LIBRARIES + Qt::LinuxAccessibilitySupportPrivate # special case +) + +qt_extend_target(WaylandClient CONDITION QT_FEATURE_clipboard + SOURCES + qwaylandclipboard.cpp qwaylandclipboard_p.h +) + +qt_extend_target(WaylandClient CONDITION QT_FEATURE_cursor + SOURCES + qwaylandcursor.cpp qwaylandcursor_p.h + PUBLIC_LIBRARIES + Wayland::Cursor +) + +qt_extend_target(WaylandClient CONDITION QT_FEATURE_wayland_datadevice + SOURCES + qwaylanddatadevice.cpp qwaylanddatadevice_p.h + qwaylanddatadevicemanager.cpp qwaylanddatadevicemanager_p.h + qwaylanddataoffer.cpp qwaylanddataoffer_p.h + qwaylanddatasource.cpp qwaylanddatasource_p.h +) + +qt_extend_target(WaylandClient CONDITION QT_FEATURE_wayland_client_primary_selection + SOURCES + qwaylandprimaryselectionv1.cpp qwaylandprimaryselectionv1_p.h +) + +qt_extend_target(WaylandClient CONDITION QT_FEATURE_draganddrop + SOURCES + qwaylanddnd.cpp qwaylanddnd_p.h +) diff --git a/src/plugins/platforms/wayland/configure.cmake b/src/plugins/platforms/wayland/configure.cmake new file mode 100644 index 00000000000..99aed833e5a --- /dev/null +++ b/src/plugins/platforms/wayland/configure.cmake @@ -0,0 +1,194 @@ + + +#### Inputs + + + +#### Libraries + +if((LINUX) OR QT_FIND_ALL_PACKAGES_ALWAYS) + qt_find_package(Wayland PROVIDED_TARGETS Wayland::Client) +endif() +if((LINUX) OR QT_FIND_ALL_PACKAGES_ALWAYS) + qt_find_package(Wayland PROVIDED_TARGETS Wayland::Cursor) +endif() +if((LINUX) OR QT_FIND_ALL_PACKAGES_ALWAYS) + qt_find_package(Wayland PROVIDED_TARGETS Wayland::Egl) +endif() +qt_find_package(XComposite PROVIDED_TARGETS PkgConfig::XComposite) + + +#### Tests + +# drm-egl-server +qt_config_compile_test(drm_egl_server + LABEL "DRM EGL Server" + LIBRARIES + EGL::EGL + CODE +" +#include +#include + +int main(int argc, char **argv) +{ + (void)argc; (void)argv; + /* BEGIN TEST: */ +#ifdef EGL_MESA_drm_image +return 0; +#else +#error Requires EGL_MESA_drm_image to be defined +return 1; +#endif + /* END TEST: */ + return 0; +} +") + +# libhybris-egl-server +qt_config_compile_test(libhybris_egl_server + LABEL "libhybris EGL Server" + LIBRARIES + EGL::EGL + CODE +" +#include +#include +#include + +int main(int argc, char **argv) +{ + (void)argc; (void)argv; + /* BEGIN TEST: */ +#ifdef EGL_HYBRIS_native_buffer +return 0; +#else +#error Requires EGL_HYBRIS_native_buffer to be defined +return 1; +#endif + /* END TEST: */ + return 0; +} +") + +# dmabuf-server-buffer +qt_config_compile_test(dmabuf_server_buffer + LABEL "Linux dma-buf Buffer Sharing" + LIBRARIES + EGL::EGL + CODE +" +#include +#include +#include + +int main(int argc, char **argv) +{ + (void)argc; (void)argv; + /* BEGIN TEST: */ +#ifdef EGL_LINUX_DMA_BUF_EXT +return 0; +#else +#error Requires EGL_LINUX_DMA_BUF_EXT +return 1; +#endif + /* END TEST: */ + return 0; +} +") + +# vulkan-server-buffer +qt_config_compile_test(vulkan_server_buffer + LABEL "Vulkan Buffer Sharing" + CODE +" +#include + +int main(int argc, char **argv) +{ + (void)argc; (void)argv; + /* BEGIN TEST: */ +VkExportMemoryAllocateInfoKHR exportAllocInfo = {}; +exportAllocInfo.sType = VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_KHR; +exportAllocInfo.handleTypes = VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT_KHR; +return 0; + /* END TEST: */ + return 0; +} +") + + + +#### Features + +qt_feature("wayland_client" PRIVATE + LABEL "Qt Wayland Client" + CONDITION NOT WIN32 AND Wayland_FOUND AND Wayland_FOUND AND WaylandScanner_FOUND +) +qt_feature("wayland_datadevice" PRIVATE + CONDITION QT_FEATURE_draganddrop OR QT_FEATURE_clipboard +) +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_xdg_shell_v5" PRIVATE + LABEL "xdg-shell unstable v5 (deprecated)" + CONDITION QT_FEATURE_wayland_client +) +qt_feature("wayland_client_xdg_shell_v6" PRIVATE + LABEL "xdg-shell unstable v6" + CONDITION QT_FEATURE_wayland_client +) +qt_feature("wayland_egl" PRIVATE + LABEL "EGL" + CONDITION QT_FEATURE_wayland_client AND QT_FEATURE_opengl AND QT_FEATURE_egl AND Wayland_FOUND +) +qt_feature("wayland_brcm" PRIVATE + LABEL "Raspberry Pi" + CONDITION QT_FEATURE_wayland_client AND QT_FEATURE_eglfs_brcm +) +qt_feature("xcomposite_egl" PRIVATE + LABEL "XComposite EGL" + CONDITION QT_FEATURE_wayland_client AND QT_FEATURE_opengl AND QT_FEATURE_egl AND QT_FEATURE_xlib AND XComposite_FOUND AND QT_FEATURE_egl_x11 +) +qt_feature("xcomposite_glx" PRIVATE + LABEL "XComposite GLX" + CONDITION QT_FEATURE_wayland_client AND QT_FEATURE_opengl AND NOT QT_FEATURE_opengles2 AND QT_FEATURE_xlib AND XComposite_FOUND +) +qt_feature("wayland_drm_egl_server_buffer" PRIVATE + LABEL "DRM EGL" + CONDITION QT_FEATURE_wayland_client AND QT_FEATURE_opengl AND QT_FEATURE_egl AND TEST_drm_egl_server +) +qt_feature("wayland_libhybris_egl_server_buffer" PRIVATE + LABEL "libhybris EGL" + CONDITION QT_FEATURE_wayland_client AND QT_FEATURE_opengl AND QT_FEATURE_egl AND TEST_libhybris_egl_server +) +qt_feature("wayland_dmabuf_server_buffer" PRIVATE + LABEL "Linux dma-buf server buffer integration" + CONDITION QT_FEATURE_wayland_client AND QT_FEATURE_opengl AND QT_FEATURE_egl AND TEST_dmabuf_server_buffer +) +qt_feature("wayland_vulkan_server_buffer" PRIVATE + LABEL "Vulkan-based server buffer integration" + CONDITION QT_FEATURE_wayland_client AND QT_FEATURE_opengl AND QT_FEATURE_egl AND TEST_vulkan_server_buffer +) +qt_feature("wayland_shm_emulation_server_buffer" PRIVATE + LABEL "Shm emulation server buffer integration" + CONDITION QT_FEATURE_wayland_client AND QT_FEATURE_opengl +) diff --git a/src/plugins/platforms/wayland/plugins/CMakeLists.txt b/src/plugins/platforms/wayland/plugins/CMakeLists.txt new file mode 100644 index 00000000000..ef58376aede --- /dev/null +++ b/src/plugins/platforms/wayland/plugins/CMakeLists.txt @@ -0,0 +1,8 @@ +# Generated from plugins.pro. + +add_subdirectory(hardwareintegration) +if(TARGET Qt::WaylandClient) + add_subdirectory(platforms) + add_subdirectory(decorations) + add_subdirectory(shellintegration) +endif() diff --git a/src/plugins/platforms/wayland/plugins/decorations/CMakeLists.txt b/src/plugins/platforms/wayland/plugins/decorations/CMakeLists.txt new file mode 100644 index 00000000000..fd7fbeb2034 --- /dev/null +++ b/src/plugins/platforms/wayland/plugins/decorations/CMakeLists.txt @@ -0,0 +1,3 @@ +# Generated from decorations.pro. + +add_subdirectory(bradient) diff --git a/src/plugins/platforms/wayland/plugins/decorations/bradient/CMakeLists.txt b/src/plugins/platforms/wayland/plugins/decorations/bradient/CMakeLists.txt new file mode 100644 index 00000000000..760718cac7c --- /dev/null +++ b/src/plugins/platforms/wayland/plugins/decorations/bradient/CMakeLists.txt @@ -0,0 +1,22 @@ +# Generated from bradient.pro. + +##################################################################### +## bradient Plugin: +##################################################################### + +qt_add_plugin(bradient + TYPE wayland-decoration-client + CLASS_NAME QWaylandBradientDecorationPlugin + SOURCES + main.cpp + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Core + Qt::Gui + Qt::WaylandClient + Wayland::Client +) + +#### Keys ignored in scope 1:.:.:bradient.pro:: +# OTHER_FILES = "bradient.json" diff --git a/src/plugins/platforms/wayland/plugins/hardwareintegration/CMakeLists.txt b/src/plugins/platforms/wayland/plugins/hardwareintegration/CMakeLists.txt new file mode 100644 index 00000000000..32493e4bcb4 --- /dev/null +++ b/src/plugins/platforms/wayland/plugins/hardwareintegration/CMakeLists.txt @@ -0,0 +1,29 @@ +# Generated from client.pro. + +if(QT_FEATURE_wayland_egl) + add_subdirectory(wayland-egl) +endif() +if(QT_FEATURE_wayland_brcm) + add_subdirectory(brcm-egl) +endif() +if(QT_FEATURE_xcomposite_egl) + add_subdirectory(xcomposite-egl) +endif() +if(QT_FEATURE_xcomposite_glx) + add_subdirectory(xcomposite-glx) +endif() +if(QT_FEATURE_wayland_drm_egl_server_buffer) + add_subdirectory(drm-egl-server) +endif() +if(QT_FEATURE_wayland_libhybris_egl_server_buffer) + add_subdirectory(libhybris-egl-server) +endif() +if(QT_FEATURE_wayland_shm_emulation_server_buffer) + add_subdirectory(shm-emulation-server) +endif() +if(QT_FEATURE_wayland_dmabuf_server_buffer) + add_subdirectory(dmabuf-server) +endif() +if(QT_FEATURE_wayland_vulkan_server_buffer) + add_subdirectory(vulkan-server) +endif() diff --git a/src/plugins/platforms/wayland/plugins/hardwareintegration/brcm-egl/CMakeLists.txt b/src/plugins/platforms/wayland/plugins/hardwareintegration/brcm-egl/CMakeLists.txt new file mode 100644 index 00000000000..e02b020e6df --- /dev/null +++ b/src/plugins/platforms/wayland/plugins/hardwareintegration/brcm-egl/CMakeLists.txt @@ -0,0 +1,36 @@ +# Generated from brcm-egl.pro. + +##################################################################### +## brcm-egl Plugin: +##################################################################### + +qt_add_plugin(brcm-egl + TYPE wayland-graphics-integration-client + CLASS_NAME QWaylandBrcmEglClientBufferPlugin + SOURCES + ../../../../hardwareintegration/client/brcm-egl/qwaylandbrcmeglintegration.cpp ../../../../hardwareintegration/client/brcm-egl/qwaylandbrcmeglintegration.h + ../../../../hardwareintegration/client/brcm-egl/qwaylandbrcmeglwindow.cpp ../../../../hardwareintegration/client/brcm-egl/qwaylandbrcmeglwindow.h + ../../../../hardwareintegration/client/brcm-egl/qwaylandbrcmglcontext.cpp ../../../../hardwareintegration/client/brcm-egl/qwaylandbrcmglcontext.h + main.cpp + INCLUDE_DIRECTORIES + ../../../../hardwareintegration/client/brcm-egl + LIBRARIES + Qt::EglSupportPrivate + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + ${CMAKE_DL_LIBS} + EGL::EGL + Qt::Core + Qt::EglSupport + Qt::Gui + Qt::WaylandClient + Wayland::Client +) + +qt6_generate_wayland_protocol_client_sources(brcm-egl + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../hardwareintegration/client/brcm-egl/../../../extensions/brcm.xml +) + +#### Keys ignored in scope 1:.:.:brcm-egl.pro:: +# OTHER_FILES = "brcm-egl.json" diff --git a/src/plugins/platforms/wayland/plugins/hardwareintegration/dmabuf-server/CMakeLists.txt b/src/plugins/platforms/wayland/plugins/hardwareintegration/dmabuf-server/CMakeLists.txt new file mode 100644 index 00000000000..41d7c12e252 --- /dev/null +++ b/src/plugins/platforms/wayland/plugins/hardwareintegration/dmabuf-server/CMakeLists.txt @@ -0,0 +1,32 @@ +# Generated from dmabuf-server.pro. + +##################################################################### +## dmabuf-server Plugin: +##################################################################### + +qt_add_plugin(dmabuf-server + TYPE wayland-graphics-integration-client + CLASS_NAME DmaBufServerBufferPlugin + SOURCES + ../../../../hardwareintegration/client/dmabuf-server/dmabufserverbufferintegration.cpp ../../../../hardwareintegration/client/dmabuf-server/dmabufserverbufferintegration.h + main.cpp + INCLUDE_DIRECTORIES + ../../../../hardwareintegration/client/dmabuf-server + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + EGL::EGL + Qt::Core + Qt::Gui + Qt::WaylandClient + Wayland::Client +) + +qt6_generate_wayland_protocol_client_sources(dmabuf-server + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../hardwareintegration/client/dmabuf-server/../../../extensions/qt-dmabuf-server-buffer.xml +) + +#### Keys ignored in scope 1:.:.:dmabuf-server.pro:: +# OTHER_FILES = "dmabuf-server.json" +# QMAKE_CXXFLAGS_WARN_ON = "--Wcast-qual" diff --git a/src/plugins/platforms/wayland/plugins/hardwareintegration/drm-egl-server/CMakeLists.txt b/src/plugins/platforms/wayland/plugins/hardwareintegration/drm-egl-server/CMakeLists.txt new file mode 100644 index 00000000000..337857cc259 --- /dev/null +++ b/src/plugins/platforms/wayland/plugins/hardwareintegration/drm-egl-server/CMakeLists.txt @@ -0,0 +1,32 @@ +# Generated from drm-egl-server.pro. + +##################################################################### +## drm-egl-server Plugin: +##################################################################### + +qt_add_plugin(drm-egl-server + TYPE wayland-graphics-integration-client + CLASS_NAME DrmEglServerBufferPlugin + SOURCES + ../../../../hardwareintegration/client/drm-egl-server/drmeglserverbufferintegration.cpp ../../../../hardwareintegration/client/drm-egl-server/drmeglserverbufferintegration.h + main.cpp + INCLUDE_DIRECTORIES + ../../../../hardwareintegration/client/drm-egl-server + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + EGL::EGL + Qt::Core + Qt::Gui + Qt::WaylandClient + Wayland::Client +) + +qt6_generate_wayland_protocol_client_sources(drm-egl-server + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../hardwareintegration/client/drm-egl-server/../../../extensions/drm-egl-server-buffer.xml +) + +#### Keys ignored in scope 1:.:.:drm-egl-server.pro:: +# OTHER_FILES = "drm-egl-server.json" +# QMAKE_CXXFLAGS_WARN_ON = "--Wcast-qual" diff --git a/src/plugins/platforms/wayland/plugins/hardwareintegration/libhybris-egl-server/CMakeLists.txt b/src/plugins/platforms/wayland/plugins/hardwareintegration/libhybris-egl-server/CMakeLists.txt new file mode 100644 index 00000000000..ca1738f50f3 --- /dev/null +++ b/src/plugins/platforms/wayland/plugins/hardwareintegration/libhybris-egl-server/CMakeLists.txt @@ -0,0 +1,31 @@ +# Generated from libhybris-egl-server.pro. + +##################################################################### +## libhybris-egl-server Plugin: +##################################################################### + +qt_add_plugin(libhybris-egl-server + TYPE wayland-graphics-integration-client + CLASS_NAME LibHybrisEglServerBufferPlugin + SOURCES + ../../../../hardwareintegration/client/libhybris-egl-server/libhybriseglserverbufferintegration.cpp ../../../../hardwareintegration/client/libhybris-egl-server/libhybriseglserverbufferintegration.h + main.cpp + INCLUDE_DIRECTORIES + ../../../../hardwareintegration/client/libhybris-egl-server + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + EGL::EGL + Qt::Core + Qt::Gui + Qt::WaylandClient + Wayland::Client +) + +qt6_generate_wayland_protocol_client_sources(libhybris-egl-server + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../hardwareintegration/client/libhybris-egl-server/../../../extensions/libhybris-egl-server-buffer.xml +) + +#### Keys ignored in scope 1:.:.:libhybris-egl-server.pro:: +# OTHER_FILES = "libhybris-egl-server.json" diff --git a/src/plugins/platforms/wayland/plugins/hardwareintegration/shm-emulation-server/CMakeLists.txt b/src/plugins/platforms/wayland/plugins/hardwareintegration/shm-emulation-server/CMakeLists.txt new file mode 100644 index 00000000000..d7a7294ec9a --- /dev/null +++ b/src/plugins/platforms/wayland/plugins/hardwareintegration/shm-emulation-server/CMakeLists.txt @@ -0,0 +1,31 @@ +# Generated from shm-emulation-server.pro. + +##################################################################### +## shm-emulation-server Plugin: +##################################################################### + +qt_add_plugin(shm-emulation-server + TYPE wayland-graphics-integration-client + CLASS_NAME ShmServerBufferPlugin + SOURCES + ../../../../hardwareintegration/client/shm-emulation-server/shmserverbufferintegration.cpp ../../../../hardwareintegration/client/shm-emulation-server/shmserverbufferintegration.h + main.cpp + INCLUDE_DIRECTORIES + ../../../../hardwareintegration/client/shm-emulation-server + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Core + Qt::Gui + Qt::WaylandClient + Wayland::Client +) + +qt6_generate_wayland_protocol_client_sources(shm-emulation-server + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../hardwareintegration/client/shm-emulation-server/../../../extensions/shm-emulation-server-buffer.xml +) + +#### Keys ignored in scope 1:.:.:shm-emulation-server.pro:: +# OTHER_FILES = "shm-emulation-server.json" +# QMAKE_CXXFLAGS_WARN_ON = "--Wcast-qual" diff --git a/src/plugins/platforms/wayland/plugins/hardwareintegration/vulkan-server/CMakeLists.txt b/src/plugins/platforms/wayland/plugins/hardwareintegration/vulkan-server/CMakeLists.txt new file mode 100644 index 00000000000..46ad01249d2 --- /dev/null +++ b/src/plugins/platforms/wayland/plugins/hardwareintegration/vulkan-server/CMakeLists.txt @@ -0,0 +1,31 @@ +# Generated from vulkan-server.pro. + +##################################################################### +## vulkan-server Plugin: +##################################################################### + +qt_add_plugin(vulkan-server + TYPE wayland-graphics-integration-client + CLASS_NAME VulkanServerBufferPlugin + SOURCES + ../../../../hardwareintegration/client/vulkan-server/vulkanserverbufferintegration.cpp ../../../../hardwareintegration/client/vulkan-server/vulkanserverbufferintegration.h + main.cpp + INCLUDE_DIRECTORIES + ../../../../hardwareintegration/client/vulkan-server + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Core + Qt::Gui + Qt::WaylandClient + Wayland::Client +) + +qt6_generate_wayland_protocol_client_sources(vulkan-server + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../hardwareintegration/client/vulkan-server/../../../extensions/qt-vulkan-server-buffer-unstable-v1.xml +) + +#### Keys ignored in scope 1:.:.:vulkan-server.pro:: +# OTHER_FILES = "vulkan-server.json" +# QMAKE_CXXFLAGS_WARN_ON = "--Wcast-qual" diff --git a/src/plugins/platforms/wayland/plugins/hardwareintegration/wayland-egl/CMakeLists.txt b/src/plugins/platforms/wayland/plugins/hardwareintegration/wayland-egl/CMakeLists.txt new file mode 100644 index 00000000000..cbe1b6a9f9a --- /dev/null +++ b/src/plugins/platforms/wayland/plugins/hardwareintegration/wayland-egl/CMakeLists.txt @@ -0,0 +1,32 @@ +# Generated from wayland-egl.pro. + +##################################################################### +## qt-plugin-wayland-egl Plugin: +##################################################################### + +qt_add_plugin(qt-plugin-wayland-egl + TYPE wayland-graphics-integration-client + CLASS_NAME QWaylandEglClientBufferPlugin + SOURCES + ../../../../hardwareintegration/client/wayland-egl/qwaylandeglclientbufferintegration.cpp ../../../../hardwareintegration/client/wayland-egl/qwaylandeglclientbufferintegration.h + ../../../../hardwareintegration/client/wayland-egl/qwaylandeglinclude.h + ../../../../hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp ../../../../hardwareintegration/client/wayland-egl/qwaylandeglwindow.h + ../../../../hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp ../../../../hardwareintegration/client/wayland-egl/qwaylandglcontext.h + main.cpp + INCLUDE_DIRECTORIES + ../../../../hardwareintegration/client/wayland-egl + LIBRARIES + Qt::EglSupportPrivate + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + EGL::EGL + Qt::Core + Qt::EglSupport + Qt::Gui + Qt::WaylandClient + Wayland::Client + Wayland::Egl +) + +#### Keys ignored in scope 1:.:.:wayland-egl.pro:: +# OTHER_FILES = "wayland-egl.json" diff --git a/src/plugins/platforms/wayland/plugins/hardwareintegration/xcomposite-egl/CMakeLists.txt b/src/plugins/platforms/wayland/plugins/hardwareintegration/xcomposite-egl/CMakeLists.txt new file mode 100644 index 00000000000..a4b6e27413b --- /dev/null +++ b/src/plugins/platforms/wayland/plugins/hardwareintegration/xcomposite-egl/CMakeLists.txt @@ -0,0 +1,40 @@ +# Generated from xcomposite-egl.pro. + +##################################################################### +## xcomposite-egl Plugin: +##################################################################### + +qt_add_plugin(xcomposite-egl + TYPE wayland-graphics-integration-client + CLASS_NAME QWaylandXCompositeEglClientBufferPlugin + SOURCES + ../../../../hardwareintegration/client/xcomposite-egl/qwaylandxcompositeeglclientbufferintegration.cpp ../../../../hardwareintegration/client/xcomposite-egl/qwaylandxcompositeeglclientbufferintegration.h + ../../../../hardwareintegration/client/xcomposite-egl/qwaylandxcompositeeglcontext.cpp ../../../../hardwareintegration/client/xcomposite-egl/qwaylandxcompositeeglcontext.h + ../../../../hardwareintegration/client/xcomposite-egl/qwaylandxcompositeeglwindow.cpp ../../../../hardwareintegration/client/xcomposite-egl/qwaylandxcompositeeglwindow.h + ../../../../hardwareintegration/client/xcomposite_share/qwaylandxcompositebuffer.cpp ../../../../hardwareintegration/client/xcomposite_share/qwaylandxcompositebuffer.h + main.cpp + INCLUDE_DIRECTORIES + ../../../../hardwareintegration/client/xcomposite-egl + ../../../../hardwareintegration/client/xcomposite_share + LIBRARIES + Qt::EglSupportPrivate + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + EGL::EGL + PkgConfig::XComposite + Qt::Core + Qt::EglSupport + Qt::Gui + Qt::WaylandClient + Wayland::Client + X11::X11 +) + +qt6_generate_wayland_protocol_client_sources(xcomposite-egl + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../hardwareintegration/client/xcomposite_share/../../../extensions/xcomposite.xml +) + +#### Keys ignored in scope 1:.:.:xcomposite-egl.pro:: +# OTHER_FILES = "xcomposite-egl.json" +# QMAKE_CXXFLAGS_WARN_ON = "--Wcast-qual" diff --git a/src/plugins/platforms/wayland/plugins/hardwareintegration/xcomposite-glx/CMakeLists.txt b/src/plugins/platforms/wayland/plugins/hardwareintegration/xcomposite-glx/CMakeLists.txt new file mode 100644 index 00000000000..179dd8db2e5 --- /dev/null +++ b/src/plugins/platforms/wayland/plugins/hardwareintegration/xcomposite-glx/CMakeLists.txt @@ -0,0 +1,39 @@ +# Generated from xcomposite-glx.pro. + +##################################################################### +## xcomposite-glx Plugin: +##################################################################### + +qt_add_plugin(xcomposite-glx + TYPE wayland-graphics-integration-client + CLASS_NAME QWaylandXCompositeGlxClientBufferPlugin + SOURCES + ../../../../hardwareintegration/client/xcomposite-glx/qwaylandxcompositeglxcontext.cpp ../../../../hardwareintegration/client/xcomposite-glx/qwaylandxcompositeglxcontext.h + ../../../../hardwareintegration/client/xcomposite-glx/qwaylandxcompositeglxintegration.cpp ../../../../hardwareintegration/client/xcomposite-glx/qwaylandxcompositeglxintegration.h + ../../../../hardwareintegration/client/xcomposite-glx/qwaylandxcompositeglxwindow.cpp ../../../../hardwareintegration/client/xcomposite-glx/qwaylandxcompositeglxwindow.h + ../../../../hardwareintegration/client/xcomposite_share/qwaylandxcompositebuffer.cpp ../../../../hardwareintegration/client/xcomposite_share/qwaylandxcompositebuffer.h + main.cpp + INCLUDE_DIRECTORIES + ../../../../hardwareintegration/client/xcomposite-glx + ../../../../hardwareintegration/client/xcomposite_share + LIBRARIES + Qt::GlxSupportPrivate + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + ${CMAKE_DL_LIBS} + PkgConfig::XComposite + Qt::Core + Qt::GlxSupport + Qt::Gui + Qt::WaylandClient + Wayland::Client + X11::X11 +) + +qt6_generate_wayland_protocol_client_sources(xcomposite-glx + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../hardwareintegration/client/xcomposite_share/../../../extensions/xcomposite.xml +) + +#### Keys ignored in scope 1:.:.:xcomposite-glx.pro:: +# OTHER_FILES = "xcomposite-glx.json" diff --git a/src/plugins/platforms/wayland/plugins/shellintegration/CMakeLists.txt b/src/plugins/platforms/wayland/plugins/shellintegration/CMakeLists.txt new file mode 100644 index 00000000000..03364328c25 --- /dev/null +++ b/src/plugins/platforms/wayland/plugins/shellintegration/CMakeLists.txt @@ -0,0 +1,20 @@ +# Generated from shellintegration.pro. + +if(QT_FEATURE_wayland_client_fullscreen_shell_v1) + add_subdirectory(fullscreen-shell-v1) +endif() +if(QT_FEATURE_wayland_client_ivi_shell) + add_subdirectory(ivi-shell) +endif() +if(QT_FEATURE_wayland_client_wl_shell) + add_subdirectory(wl-shell) +endif() +if(QT_FEATURE_wayland_client_xdg_shell) + add_subdirectory(xdg-shell) +endif() +if(QT_FEATURE_wayland_client_xdg_shell_v5) + add_subdirectory(xdg-shell-v5) +endif() +if(QT_FEATURE_wayland_client_xdg_shell_v6) + add_subdirectory(xdg-shell-v6) +endif() diff --git a/src/plugins/platforms/wayland/plugins/shellintegration/fullscreen-shell-v1/CMakeLists.txt b/src/plugins/platforms/wayland/plugins/shellintegration/fullscreen-shell-v1/CMakeLists.txt new file mode 100644 index 00000000000..7cc47c75729 --- /dev/null +++ b/src/plugins/platforms/wayland/plugins/shellintegration/fullscreen-shell-v1/CMakeLists.txt @@ -0,0 +1,30 @@ +# Generated from fullscreen-shell-v1.pro. + +##################################################################### +## fullscreen-shell-v1 Plugin: +##################################################################### + +qt_add_plugin(fullscreen-shell-v1 + TYPE wayland-shell-integration + CLASS_NAME QWaylandFullScreenShellV1IntegrationPlugin + SOURCES + main.cpp + qwaylandfullscreenshellv1integration.cpp qwaylandfullscreenshellv1integration.h + qwaylandfullscreenshellv1surface.cpp qwaylandfullscreenshellv1surface.h + LIBRARIES + Qt::GuiPrivate + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Core + Qt::Gui + Qt::WaylandClient + Wayland::Client +) + +qt6_generate_wayland_protocol_client_sources(fullscreen-shell-v1 + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../../../3rdparty/protocol/fullscreen-shell-unstable-v1.xml +) + +#### Keys ignored in scope 1:.:.:fullscreen-shell-v1.pro:: +# OTHER_FILES = "fullscreen-shell-v1.json" diff --git a/src/plugins/platforms/wayland/plugins/shellintegration/wl-shell/CMakeLists.txt b/src/plugins/platforms/wayland/plugins/shellintegration/wl-shell/CMakeLists.txt new file mode 100644 index 00000000000..85891524287 --- /dev/null +++ b/src/plugins/platforms/wayland/plugins/shellintegration/wl-shell/CMakeLists.txt @@ -0,0 +1,38 @@ +# Generated from wl-shell.pro. + +##################################################################### +## wl-shell Plugin: +##################################################################### + +qt_add_plugin(wl-shell + TYPE wayland-shell-integration + CLASS_NAME QWaylandWlShellIntegrationPlugin + SOURCES + main.cpp + qwaylandwlshellintegration.cpp qwaylandwlshellintegration_p.h + qwaylandwlshellsurface.cpp qwaylandwlshellsurface_p.h + LIBRARIES + Qt::GuiPrivate + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Core + Qt::Gui + Qt::WaylandClient + Wayland::Client +) + +qt6_generate_wayland_protocol_client_sources(wl-shell + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../../../3rdparty/protocol/wayland.xml +) + +#### Keys ignored in scope 1:.:.:wl-shell.pro:: +# OTHER_FILES = "wl-shell.json" + +## Scopes: +##################################################################### + +qt_extend_target(wl-shell CONDITION QT_FEATURE_xkbcommon + LIBRARIES + XKB::XKB +) diff --git a/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell-v5/CMakeLists.txt b/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell-v5/CMakeLists.txt new file mode 100644 index 00000000000..3fa2ba746a4 --- /dev/null +++ b/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell-v5/CMakeLists.txt @@ -0,0 +1,40 @@ +# Generated from xdg-shell-v5.pro. + +##################################################################### +## xdg-shell-v5 Plugin: +##################################################################### + +qt_add_plugin(xdg-shell-v5 + TYPE wayland-shell-integration + CLASS_NAME QWaylandXdgShellV5IntegrationPlugin + SOURCES + main.cpp + pregenerated/3rdparty/qwayland-xdg-shell-unstable-v5.cpp pregenerated/3rdparty/qwayland-xdg-shell-unstable-v5_p.h + pregenerated/3rdparty/wayland-xdg-shell-unstable-v5-client-protocol_p.h + pregenerated/3rdparty/wayland-xdg-shell-unstable-v5-protocol.c + qwaylandxdgpopupv5.cpp qwaylandxdgpopupv5_p.h + qwaylandxdgshellv5.cpp qwaylandxdgshellv5_p.h + qwaylandxdgshellv5integration.cpp qwaylandxdgshellv5integration_p.h + qwaylandxdgsurfacev5.cpp qwaylandxdgsurfacev5_p.h + INCLUDE_DIRECTORIES + pregenerated/3rdparty + LIBRARIES + Qt::GuiPrivate + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Core + Qt::Gui + Qt::WaylandClient + Wayland::Client +) + +#### Keys ignored in scope 1:.:.:xdg-shell-v5.pro:: +# OTHER_FILES = "xdg-shell-v5.json" + +## Scopes: +##################################################################### + +qt_extend_target(xdg-shell-v5 CONDITION QT_FEATURE_xkbcommon + PUBLIC_LIBRARIES + XKB::XKB +) diff --git a/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell-v6/CMakeLists.txt b/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell-v6/CMakeLists.txt new file mode 100644 index 00000000000..d6fa7dd6a45 --- /dev/null +++ b/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell-v6/CMakeLists.txt @@ -0,0 +1,38 @@ +# Generated from xdg-shell-v6.pro. + +##################################################################### +## xdg-shell-v6 Plugin: +##################################################################### + +qt_add_plugin(xdg-shell-v6 + TYPE wayland-shell-integration + CLASS_NAME QWaylandXdgShellV6IntegrationPlugin + SOURCES + main.cpp + qwaylandxdgshellv6.cpp qwaylandxdgshellv6_p.h + qwaylandxdgshellv6integration.cpp qwaylandxdgshellv6integration_p.h + LIBRARIES + Qt::GuiPrivate + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Core + Qt::Gui + Qt::WaylandClient + Wayland::Client +) + +qt6_generate_wayland_protocol_client_sources(xdg-shell-v6 + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../../../3rdparty/protocol/xdg-shell-unstable-v6.xml +) + +#### Keys ignored in scope 1:.:.:xdg-shell-v6.pro:: +# OTHER_FILES = "xdg-shell-v6.json" + +## Scopes: +##################################################################### + +qt_extend_target(xdg-shell-v6 CONDITION QT_FEATURE_xkbcommon + LIBRARIES + XKB::XKB +) diff --git a/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell/CMakeLists.txt b/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell/CMakeLists.txt new file mode 100644 index 00000000000..96a02fc7f85 --- /dev/null +++ b/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell/CMakeLists.txt @@ -0,0 +1,40 @@ +# Generated from xdg-shell.pro. + +##################################################################### +## xdg-shell Plugin: +##################################################################### + +qt_add_plugin(xdg-shell + TYPE wayland-shell-integration + CLASS_NAME QWaylandXdgShellIntegrationPlugin + SOURCES + main.cpp + qwaylandxdgdecorationv1.cpp qwaylandxdgdecorationv1_p.h + qwaylandxdgshell.cpp qwaylandxdgshell_p.h + qwaylandxdgshellintegration.cpp qwaylandxdgshellintegration_p.h + LIBRARIES + Qt::GuiPrivate + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Core + Qt::Gui + Qt::WaylandClient + Wayland::Client +) + +qt6_generate_wayland_protocol_client_sources(xdg-shell + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../../../3rdparty/protocol/xdg-decoration-unstable-v1.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../../../3rdparty/protocol/xdg-shell.xml +) + +#### Keys ignored in scope 1:.:.:xdg-shell.pro:: +# OTHER_FILES = "xdg-shell.json" + +## Scopes: +##################################################################### + +qt_extend_target(xdg-shell CONDITION QT_FEATURE_xkbcommon + LIBRARIES + XKB::XKB +) diff --git a/src/tools/qtwaylandscanner/CMakeLists.txt b/src/tools/qtwaylandscanner/CMakeLists.txt new file mode 100644 index 00000000000..107702c3196 --- /dev/null +++ b/src/tools/qtwaylandscanner/CMakeLists.txt @@ -0,0 +1,16 @@ +# Generated from qtwaylandscanner.pro. + +##################################################################### +## qtwaylandscanner Tool: +##################################################################### + +qt_add_tool(qtwaylandscanner + TOOLS_TARGET QtWaylandScanner # special case + SOURCES + qtwaylandscanner.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +#### Keys ignored in scope 1:.:.:qtwaylandscanner.pro:: +# _OPTION = "host_build" diff --git a/src/tools/qtwaylandscanner/Qt6WaylandClientMacros.cmake b/src/tools/qtwaylandscanner/Qt6WaylandClientMacros.cmake new file mode 100644 index 00000000000..83e557ffd4d --- /dev/null +++ b/src/tools/qtwaylandscanner/Qt6WaylandClientMacros.cmake @@ -0,0 +1,59 @@ +function(qt6_generate_wayland_protocol_client_sources target) + qt_parse_all_arguments(arg "qt6_generate_wayland_protocol_client_sources" "" "" "FILES" ${ARGN}) + get_target_property(target_binary_dir ${target} BINARY_DIR) + + foreach(protocol_file IN LISTS arg_FILES) + get_filename_component(protocol_name "${protocol_file}" NAME_WLE) + + set(waylandscanner_header_output "${target_binary_dir}/wayland-${protocol_name}-client-protocol.h") + set(waylandscanner_code_output "${target_binary_dir}/wayland-${protocol_name}-protocol.c") + # TODO: Maybe add "client" prefix or suffix to these in Qt6? + set(qtwaylandscanner_header_output "${target_binary_dir}/qwayland-${protocol_name}.h") + set(qtwaylandscanner_code_output "${target_binary_dir}/qwayland-${protocol_name}.cpp") + + add_custom_command( + OUTPUT "${waylandscanner_header_output}" + #TODO: Maybe put the files in ${CMAKE_CURRENT_BINARY_DIR/wayland_generated instead? + COMMAND Wayland::Scanner --include-core-only client-header < "${protocol_file}" > "${waylandscanner_header_output}" + ) + + add_custom_command( + OUTPUT "${waylandscanner_code_output}" + COMMAND Wayland::Scanner --include-core-only code < "${protocol_file}" > "${waylandscanner_code_output}" + ) + + # TODO: Make this less hacky + set(wayland_include_dir "") + get_target_property(is_for_module "${target}" INTERFACE_MODULE_HAS_HEADERS) + if (is_for_module) + set(wayland_include_dir "QtWaylandClient/private") + endif() + + add_custom_command( + OUTPUT "${qtwaylandscanner_header_output}" + COMMAND Qt6::qtwaylandscanner client-header "${protocol_file}" "${wayland_include_dir}" > "${qtwaylandscanner_header_output}" + ) + + # TODO: We need this hack in order to get the xcomposite plugins to build... + # unfortunately, it's not going to work outside QtWayland because we're using waylandclient-private includes + set(qtwaylandscanner_code_include "") + set (targets_that_need_include "xcomposite-egl" "xcomposite-glx" "qwayland-xcomposite-egl" "qwayland-xcomposite-glx") + if ("${target}" IN_LIST targets_that_need_include OR is_for_module) + set(qtwaylandscanner_code_include "") + endif() + + add_custom_command( + OUTPUT "${qtwaylandscanner_code_output}" + COMMAND Qt6::qtwaylandscanner client-code "${protocol_file}" --header-path='${wayland_include_dir}' --add-include='${qtwaylandscanner_code_include}' > "${qtwaylandscanner_code_output}" + ) + + target_sources(${target} PRIVATE + "${waylandscanner_header_output}" + "${waylandscanner_code_output}" + "${qtwaylandscanner_header_output}" + "${qtwaylandscanner_code_output}" + ) + endforeach() + target_include_directories(${target} PRIVATE ${target_binary_dir}) +endfunction() + diff --git a/src/tools/qtwaylandscanner/Qt6WaylandCompositorMacros.cmake b/src/tools/qtwaylandscanner/Qt6WaylandCompositorMacros.cmake new file mode 100644 index 00000000000..15444e6cc69 --- /dev/null +++ b/src/tools/qtwaylandscanner/Qt6WaylandCompositorMacros.cmake @@ -0,0 +1,50 @@ +function(qt6_generate_wayland_protocol_server_sources target) + qt_parse_all_arguments(arg "qt6_generate_wayland_protocol_server_sources" "" "" "FILES" ${ARGN}) + get_target_property(target_binary_dir ${target} BINARY_DIR) + + foreach(protocol_file IN LISTS arg_FILES) + get_filename_component(protocol_name "${protocol_file}" NAME_WLE) + + set(waylandscanner_header_output "${target_binary_dir}/wayland-${protocol_name}-server-protocol.h") + set(waylandscanner_code_output "${target_binary_dir}/wayland-${protocol_name}-protocol.c") + set(qtwaylandscanner_header_output "${target_binary_dir}/qwayland-server-${protocol_name}.h") + set(qtwaylandscanner_code_output "${target_binary_dir}/qwayland-server-${protocol_name}.cpp") + + add_custom_command( + OUTPUT "${waylandscanner_header_output}" + #TODO: Maybe put the files in ${CMAKE_CURRENT_BINARY_DIR/wayland_generated instead? + COMMAND Wayland::Scanner --include-core-only server-header < "${protocol_file}" > "${waylandscanner_header_output}" + ) + add_custom_command( + OUTPUT "${waylandscanner_code_output}" + COMMAND Wayland::Scanner --include-core-only code < "${protocol_file}" > "${waylandscanner_code_output}" + ) + + # TODO: make this less hacky + set(wayland_include_dir "") + #get_target_property(qt_module "${target}" QT_MODULE) + get_target_property(is_for_module "${target}" INTERFACE_MODULE_HAS_HEADERS) + if (is_for_module) + set(wayland_include_dir "QtWaylandCompositor/private") + endif() + + add_custom_command( + OUTPUT "${qtwaylandscanner_header_output}" + COMMAND Qt6::qtwaylandscanner server-header "${protocol_file}" "${wayland_include_dir}" > "${qtwaylandscanner_header_output}" + ) + + add_custom_command( + OUTPUT "${qtwaylandscanner_code_output}" + COMMAND Qt6::qtwaylandscanner server-code "${protocol_file}" "${wayland_include_dir}" > "${qtwaylandscanner_code_output}" + ) + + target_sources(${target} PRIVATE + "${waylandscanner_header_output}" + "${waylandscanner_code_output}" + "${qtwaylandscanner_header_output}" + "${qtwaylandscanner_code_output}" + ) + endforeach() + target_include_directories(${target} PRIVATE ${target_binary_dir}) +endfunction() + diff --git a/tests/auto/wayland/CMakeLists.txt b/tests/auto/wayland/CMakeLists.txt new file mode 100644 index 00000000000..bd18ec3e185 --- /dev/null +++ b/tests/auto/wayland/CMakeLists.txt @@ -0,0 +1,19 @@ +# Generated from client.pro. + +add_subdirectory(client) +add_subdirectory(datadevicev1) +add_subdirectory(fullscreenshellv1) +add_subdirectory(iviapplication) +add_subdirectory(output) +add_subdirectory(primaryselectionv1) +add_subdirectory(seatv4) +add_subdirectory(seatv5) +add_subdirectory(surface) +add_subdirectory(wl_connect) +add_subdirectory(xdgdecorationv1) +add_subdirectory(xdgoutput) +add_subdirectory(xdgshell) +add_subdirectory(xdgshellv6) +if(QT_FEATURE_im) + add_subdirectory(inputcontext) +endif() diff --git a/tests/auto/wayland/client/.prev_CMakeLists.txt b/tests/auto/wayland/client/.prev_CMakeLists.txt new file mode 100644 index 00000000000..6fe4bb92d8c --- /dev/null +++ b/tests/auto/wayland/client/.prev_CMakeLists.txt @@ -0,0 +1,40 @@ +# Generated from client.pro. + +##################################################################### +## tst_client Test: +##################################################################### + +qt_add_test(tst_client + SOURCES + ../shared_old/mockcompositor.cpp ../shared_old/mockcompositor.h + ../shared_old/mockfullscreenshellv1.cpp ../shared_old/mockfullscreenshellv1.h + ../shared_old/mockinput.cpp ../shared_old/mockinput.h + ../shared_old/mockiviapplication.cpp ../shared_old/mockiviapplication.h + ../shared_old/mockoutput.cpp ../shared_old/mockoutput.h + ../shared_old/mocksurface.cpp ../shared_old/mocksurface.h + ../shared_old/mockwlshell.cpp ../shared_old/mockwlshell.h + ../shared_old/mockxdgshellv6.cpp ../shared_old/mockxdgshellv6.h + tst_client.cpp + INCLUDE_DIRECTORIES + ../shared_old + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Client + Wayland::Server +) + +qt6_generate_wayland_protocol_server_sources(tst_client + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/fullscreen-shell-unstable-v1.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/ivi-application.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/xdg-shell-unstable-v6.xml +) + +#### Keys ignored in scope 1:.:.:client.pro:: +# check.commands = "$(TESTRUNNER)" "$${PWD}/run-with-all-shells.sh" "$(TESTARGS)" diff --git a/tests/auto/wayland/client/CMakeLists.txt b/tests/auto/wayland/client/CMakeLists.txt new file mode 100644 index 00000000000..a20ea811ce8 --- /dev/null +++ b/tests/auto/wayland/client/CMakeLists.txt @@ -0,0 +1,41 @@ +# Generated from client.pro. + +##################################################################### +## tst_client Test: +##################################################################### + +qt_add_test(tst_client + SOURCES + ../shared_old/mockcompositor.cpp ../shared_old/mockcompositor.h + ../shared_old/mockfullscreenshellv1.cpp ../shared_old/mockfullscreenshellv1.h + ../shared_old/mockinput.cpp ../shared_old/mockinput.h + ../shared_old/mockiviapplication.cpp ../shared_old/mockiviapplication.h + ../shared_old/mockoutput.cpp ../shared_old/mockoutput.h + ../shared_old/mocksurface.cpp ../shared_old/mocksurface.h + ../shared_old/mockwlshell.cpp ../shared_old/mockwlshell.h + ../shared_old/mockxdgshellv6.cpp ../shared_old/mockxdgshellv6.h + tst_client.cpp + INCLUDE_DIRECTORIES + ../shared_old + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Client + Wayland::Server + Threads::Threads # special case +) + +qt6_generate_wayland_protocol_server_sources(tst_client + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/fullscreen-shell-unstable-v1.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/ivi-application.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/xdg-shell-unstable-v6.xml +) + +#### Keys ignored in scope 1:.:.:client.pro:: +# check.commands = "$(TESTRUNNER)" "$${PWD}/run-with-all-shells.sh" "$(TESTARGS)" diff --git a/tests/auto/wayland/datadevicev1/.prev_CMakeLists.txt b/tests/auto/wayland/datadevicev1/.prev_CMakeLists.txt new file mode 100644 index 00000000000..bfea1434910 --- /dev/null +++ b/tests/auto/wayland/datadevicev1/.prev_CMakeLists.txt @@ -0,0 +1,31 @@ +# Generated from datadevicev1.pro. + +##################################################################### +## tst_datadevicev1 Test: +##################################################################### + +qt_add_test(tst_datadevicev1 + SOURCES + ../shared/corecompositor.cpp ../shared/corecompositor.h + ../shared/coreprotocol.cpp ../shared/coreprotocol.h + ../shared/datadevice.cpp ../shared/datadevice.h + ../shared/mockcompositor.cpp ../shared/mockcompositor.h + ../shared/textinput.cpp ../shared/textinput.h + ../shared/xdgshell.cpp ../shared/xdgshell.h + tst_datadevicev1.cpp + INCLUDE_DIRECTORIES + ../shared + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Server +) + +qt6_generate_wayland_protocol_server_sources(tst_datadevicev1 + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/text-input-unstable-v2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/xdg-shell.xml +) diff --git a/tests/auto/wayland/datadevicev1/CMakeLists.txt b/tests/auto/wayland/datadevicev1/CMakeLists.txt new file mode 100644 index 00000000000..ad58772d4b0 --- /dev/null +++ b/tests/auto/wayland/datadevicev1/CMakeLists.txt @@ -0,0 +1,32 @@ +# Generated from datadevicev1.pro. + +##################################################################### +## tst_datadevicev1 Test: +##################################################################### + +qt_add_test(tst_datadevicev1 + SOURCES + ../shared/corecompositor.cpp ../shared/corecompositor.h + ../shared/coreprotocol.cpp ../shared/coreprotocol.h + ../shared/datadevice.cpp ../shared/datadevice.h + ../shared/mockcompositor.cpp ../shared/mockcompositor.h + ../shared/textinput.cpp ../shared/textinput.h + ../shared/xdgshell.cpp ../shared/xdgshell.h + tst_datadevicev1.cpp + INCLUDE_DIRECTORIES + ../shared + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Server + Threads::Threads # special case +) + +qt6_generate_wayland_protocol_server_sources(tst_datadevicev1 + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/text-input-unstable-v2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/xdg-shell.xml +) diff --git a/tests/auto/wayland/fullscreenshellv1/.prev_CMakeLists.txt b/tests/auto/wayland/fullscreenshellv1/.prev_CMakeLists.txt new file mode 100644 index 00000000000..5daef3bb3ff --- /dev/null +++ b/tests/auto/wayland/fullscreenshellv1/.prev_CMakeLists.txt @@ -0,0 +1,37 @@ +# Generated from fullscreenshellv1.pro. + +##################################################################### +## tst_client_fullscreenshellv1 Test: +##################################################################### + +qt_add_test(tst_client_fullscreenshellv1 + SOURCES + ../shared_old/mockcompositor.cpp ../shared_old/mockcompositor.h + ../shared_old/mockfullscreenshellv1.cpp ../shared_old/mockfullscreenshellv1.h + ../shared_old/mockinput.cpp ../shared_old/mockinput.h + ../shared_old/mockiviapplication.cpp ../shared_old/mockiviapplication.h + ../shared_old/mockoutput.cpp ../shared_old/mockoutput.h + ../shared_old/mocksurface.cpp ../shared_old/mocksurface.h + ../shared_old/mockwlshell.cpp ../shared_old/mockwlshell.h + ../shared_old/mockxdgshellv6.cpp ../shared_old/mockxdgshellv6.h + tst_fullscreenshellv1.cpp + INCLUDE_DIRECTORIES + ../shared_old + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Client + Wayland::Server +) + +qt6_generate_wayland_protocol_server_sources(tst_client_fullscreenshellv1 + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/fullscreen-shell-unstable-v1.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/ivi-application.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/xdg-shell-unstable-v6.xml +) diff --git a/tests/auto/wayland/fullscreenshellv1/CMakeLists.txt b/tests/auto/wayland/fullscreenshellv1/CMakeLists.txt new file mode 100644 index 00000000000..00348df9948 --- /dev/null +++ b/tests/auto/wayland/fullscreenshellv1/CMakeLists.txt @@ -0,0 +1,38 @@ +# Generated from fullscreenshellv1.pro. + +##################################################################### +## tst_client_fullscreenshellv1 Test: +##################################################################### + +qt_add_test(tst_client_fullscreenshellv1 + SOURCES + ../shared_old/mockcompositor.cpp ../shared_old/mockcompositor.h + ../shared_old/mockfullscreenshellv1.cpp ../shared_old/mockfullscreenshellv1.h + ../shared_old/mockinput.cpp ../shared_old/mockinput.h + ../shared_old/mockiviapplication.cpp ../shared_old/mockiviapplication.h + ../shared_old/mockoutput.cpp ../shared_old/mockoutput.h + ../shared_old/mocksurface.cpp ../shared_old/mocksurface.h + ../shared_old/mockwlshell.cpp ../shared_old/mockwlshell.h + ../shared_old/mockxdgshellv6.cpp ../shared_old/mockxdgshellv6.h + tst_fullscreenshellv1.cpp + INCLUDE_DIRECTORIES + ../shared_old + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Client + Wayland::Server + Threads::Threads # special case +) + +qt6_generate_wayland_protocol_server_sources(tst_client_fullscreenshellv1 + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/fullscreen-shell-unstable-v1.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/ivi-application.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/xdg-shell-unstable-v6.xml +) diff --git a/tests/auto/wayland/inputcontext/.prev_CMakeLists.txt b/tests/auto/wayland/inputcontext/.prev_CMakeLists.txt new file mode 100644 index 00000000000..d5df86a13eb --- /dev/null +++ b/tests/auto/wayland/inputcontext/.prev_CMakeLists.txt @@ -0,0 +1,31 @@ +# Generated from inputcontext.pro. + +##################################################################### +## tst_inputcontext Test: +##################################################################### + +qt_add_test(tst_inputcontext + SOURCES + ../shared/corecompositor.cpp ../shared/corecompositor.h + ../shared/coreprotocol.cpp ../shared/coreprotocol.h + ../shared/datadevice.cpp ../shared/datadevice.h + ../shared/mockcompositor.cpp ../shared/mockcompositor.h + ../shared/textinput.cpp ../shared/textinput.h + ../shared/xdgshell.cpp ../shared/xdgshell.h + tst_inputcontext.cpp + INCLUDE_DIRECTORIES + ../shared + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Server +) + +qt6_generate_wayland_protocol_server_sources(tst_inputcontext + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/text-input-unstable-v2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/xdg-shell.xml +) diff --git a/tests/auto/wayland/inputcontext/CMakeLists.txt b/tests/auto/wayland/inputcontext/CMakeLists.txt new file mode 100644 index 00000000000..dfa788b313b --- /dev/null +++ b/tests/auto/wayland/inputcontext/CMakeLists.txt @@ -0,0 +1,32 @@ +# Generated from inputcontext.pro. + +##################################################################### +## tst_inputcontext Test: +##################################################################### + +qt_add_test(tst_inputcontext + SOURCES + ../shared/corecompositor.cpp ../shared/corecompositor.h + ../shared/coreprotocol.cpp ../shared/coreprotocol.h + ../shared/datadevice.cpp ../shared/datadevice.h + ../shared/mockcompositor.cpp ../shared/mockcompositor.h + ../shared/textinput.cpp ../shared/textinput.h + ../shared/xdgshell.cpp ../shared/xdgshell.h + tst_inputcontext.cpp + INCLUDE_DIRECTORIES + ../shared + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Server + Threads::Threads # special case +) + +qt6_generate_wayland_protocol_server_sources(tst_inputcontext + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/text-input-unstable-v2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/xdg-shell.xml +) diff --git a/tests/auto/wayland/iviapplication/.prev_CMakeLists.txt b/tests/auto/wayland/iviapplication/.prev_CMakeLists.txt new file mode 100644 index 00000000000..4193ba9b07f --- /dev/null +++ b/tests/auto/wayland/iviapplication/.prev_CMakeLists.txt @@ -0,0 +1,37 @@ +# Generated from iviapplication.pro. + +##################################################################### +## tst_client_iviapplication Test: +##################################################################### + +qt_add_test(tst_client_iviapplication + SOURCES + ../shared_old/mockcompositor.cpp ../shared_old/mockcompositor.h + ../shared_old/mockfullscreenshellv1.cpp ../shared_old/mockfullscreenshellv1.h + ../shared_old/mockinput.cpp ../shared_old/mockinput.h + ../shared_old/mockiviapplication.cpp ../shared_old/mockiviapplication.h + ../shared_old/mockoutput.cpp ../shared_old/mockoutput.h + ../shared_old/mocksurface.cpp ../shared_old/mocksurface.h + ../shared_old/mockwlshell.cpp ../shared_old/mockwlshell.h + ../shared_old/mockxdgshellv6.cpp ../shared_old/mockxdgshellv6.h + tst_iviapplication.cpp + INCLUDE_DIRECTORIES + ../shared_old + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Client + Wayland::Server +) + +qt6_generate_wayland_protocol_server_sources(tst_client_iviapplication + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/fullscreen-shell-unstable-v1.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/ivi-application.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/xdg-shell-unstable-v6.xml +) diff --git a/tests/auto/wayland/output/.prev_CMakeLists.txt b/tests/auto/wayland/output/.prev_CMakeLists.txt new file mode 100644 index 00000000000..8595888e955 --- /dev/null +++ b/tests/auto/wayland/output/.prev_CMakeLists.txt @@ -0,0 +1,31 @@ +# Generated from output.pro. + +##################################################################### +## tst_output Test: +##################################################################### + +qt_add_test(tst_output + SOURCES + ../shared/corecompositor.cpp ../shared/corecompositor.h + ../shared/coreprotocol.cpp ../shared/coreprotocol.h + ../shared/datadevice.cpp ../shared/datadevice.h + ../shared/mockcompositor.cpp ../shared/mockcompositor.h + ../shared/textinput.cpp ../shared/textinput.h + ../shared/xdgshell.cpp ../shared/xdgshell.h + tst_output.cpp + INCLUDE_DIRECTORIES + ../shared + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Server +) + +qt6_generate_wayland_protocol_server_sources(tst_output + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/text-input-unstable-v2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/xdg-shell.xml +) diff --git a/tests/auto/wayland/output/CMakeLists.txt b/tests/auto/wayland/output/CMakeLists.txt new file mode 100644 index 00000000000..c453ac424f1 --- /dev/null +++ b/tests/auto/wayland/output/CMakeLists.txt @@ -0,0 +1,32 @@ +# Generated from output.pro. + +##################################################################### +## tst_output Test: +##################################################################### + +qt_add_test(tst_output + SOURCES + ../shared/corecompositor.cpp ../shared/corecompositor.h + ../shared/coreprotocol.cpp ../shared/coreprotocol.h + ../shared/datadevice.cpp ../shared/datadevice.h + ../shared/mockcompositor.cpp ../shared/mockcompositor.h + ../shared/textinput.cpp ../shared/textinput.h + ../shared/xdgshell.cpp ../shared/xdgshell.h + tst_output.cpp + INCLUDE_DIRECTORIES + ../shared + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Server + Threads::Threads # special case +) + +qt6_generate_wayland_protocol_server_sources(tst_output + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/text-input-unstable-v2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/xdg-shell.xml +) diff --git a/tests/auto/wayland/primaryselectionv1/.prev_CMakeLists.txt b/tests/auto/wayland/primaryselectionv1/.prev_CMakeLists.txt new file mode 100644 index 00000000000..77a994dd4f9 --- /dev/null +++ b/tests/auto/wayland/primaryselectionv1/.prev_CMakeLists.txt @@ -0,0 +1,32 @@ +# Generated from primaryselectionv1.pro. + +##################################################################### +## tst_primaryselectionv1 Test: +##################################################################### + +qt_add_test(tst_primaryselectionv1 + SOURCES + ../shared/corecompositor.cpp ../shared/corecompositor.h + ../shared/coreprotocol.cpp ../shared/coreprotocol.h + ../shared/datadevice.cpp ../shared/datadevice.h + ../shared/mockcompositor.cpp ../shared/mockcompositor.h + ../shared/textinput.cpp ../shared/textinput.h + ../shared/xdgshell.cpp ../shared/xdgshell.h + tst_primaryselectionv1.cpp + INCLUDE_DIRECTORIES + ../shared + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Server +) + +qt6_generate_wayland_protocol_server_sources(tst_primaryselectionv1 + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/wp-primary-selection-unstable-v1.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/text-input-unstable-v2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/xdg-shell.xml +) diff --git a/tests/auto/wayland/primaryselectionv1/CMakeLists.txt b/tests/auto/wayland/primaryselectionv1/CMakeLists.txt new file mode 100644 index 00000000000..af912234398 --- /dev/null +++ b/tests/auto/wayland/primaryselectionv1/CMakeLists.txt @@ -0,0 +1,33 @@ +# Generated from primaryselectionv1.pro. + +##################################################################### +## tst_primaryselectionv1 Test: +##################################################################### + +qt_add_test(tst_primaryselectionv1 + SOURCES + ../shared/corecompositor.cpp ../shared/corecompositor.h + ../shared/coreprotocol.cpp ../shared/coreprotocol.h + ../shared/datadevice.cpp ../shared/datadevice.h + ../shared/mockcompositor.cpp ../shared/mockcompositor.h + ../shared/textinput.cpp ../shared/textinput.h + ../shared/xdgshell.cpp ../shared/xdgshell.h + tst_primaryselectionv1.cpp + INCLUDE_DIRECTORIES + ../shared + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Server + Threads::Threads # special case +) + +qt6_generate_wayland_protocol_server_sources(tst_primaryselectionv1 + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/wp-primary-selection-unstable-v1.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/text-input-unstable-v2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/xdg-shell.xml +) diff --git a/tests/auto/wayland/seatv4/.prev_CMakeLists.txt b/tests/auto/wayland/seatv4/.prev_CMakeLists.txt new file mode 100644 index 00000000000..ab7eb380f04 --- /dev/null +++ b/tests/auto/wayland/seatv4/.prev_CMakeLists.txt @@ -0,0 +1,42 @@ +# Generated from seatv4.pro. + +##################################################################### +## tst_seatv4 Test: +##################################################################### + +qt_add_test(tst_seatv4 + SOURCES + ../shared/corecompositor.cpp ../shared/corecompositor.h + ../shared/coreprotocol.cpp ../shared/coreprotocol.h + ../shared/datadevice.cpp ../shared/datadevice.h + ../shared/mockcompositor.cpp ../shared/mockcompositor.h + ../shared/textinput.cpp ../shared/textinput.h + ../shared/xdgshell.cpp ../shared/xdgshell.h + tst_seatv4.cpp + INCLUDE_DIRECTORIES + ../shared + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Server +) + +qt6_generate_wayland_protocol_server_sources(tst_seatv4 + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/text-input-unstable-v2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/xdg-shell.xml +) + +## Scopes: +##################################################################### + +qt_extend_target(tst_seatv4 CONDITION QT_FEATURE_cursor + LIBRARIES + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui + Wayland::Cursor +) diff --git a/tests/auto/wayland/seatv4/CMakeLists.txt b/tests/auto/wayland/seatv4/CMakeLists.txt new file mode 100644 index 00000000000..bd14a6a8bf6 --- /dev/null +++ b/tests/auto/wayland/seatv4/CMakeLists.txt @@ -0,0 +1,43 @@ +# Generated from seatv4.pro. + +##################################################################### +## tst_seatv4 Test: +##################################################################### + +qt_add_test(tst_seatv4 + SOURCES + ../shared/corecompositor.cpp ../shared/corecompositor.h + ../shared/coreprotocol.cpp ../shared/coreprotocol.h + ../shared/datadevice.cpp ../shared/datadevice.h + ../shared/mockcompositor.cpp ../shared/mockcompositor.h + ../shared/textinput.cpp ../shared/textinput.h + ../shared/xdgshell.cpp ../shared/xdgshell.h + tst_seatv4.cpp + INCLUDE_DIRECTORIES + ../shared + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Server + Threads::Threads # special case +) + +qt6_generate_wayland_protocol_server_sources(tst_seatv4 + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/text-input-unstable-v2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/xdg-shell.xml +) + +## Scopes: +##################################################################### + +qt_extend_target(tst_seatv4 CONDITION QT_FEATURE_cursor + LIBRARIES + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui + Wayland::Cursor +) diff --git a/tests/auto/wayland/seatv5/.prev_CMakeLists.txt b/tests/auto/wayland/seatv5/.prev_CMakeLists.txt new file mode 100644 index 00000000000..778c42c0bf3 --- /dev/null +++ b/tests/auto/wayland/seatv5/.prev_CMakeLists.txt @@ -0,0 +1,31 @@ +# Generated from seatv5.pro. + +##################################################################### +## tst_seatv5 Test: +##################################################################### + +qt_add_test(tst_seatv5 + SOURCES + ../shared/corecompositor.cpp ../shared/corecompositor.h + ../shared/coreprotocol.cpp ../shared/coreprotocol.h + ../shared/datadevice.cpp ../shared/datadevice.h + ../shared/mockcompositor.cpp ../shared/mockcompositor.h + ../shared/textinput.cpp ../shared/textinput.h + ../shared/xdgshell.cpp ../shared/xdgshell.h + tst_seatv5.cpp + INCLUDE_DIRECTORIES + ../shared + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Server +) + +qt6_generate_wayland_protocol_server_sources(tst_seatv5 + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/text-input-unstable-v2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/xdg-shell.xml +) diff --git a/tests/auto/wayland/seatv5/CMakeLists.txt b/tests/auto/wayland/seatv5/CMakeLists.txt new file mode 100644 index 00000000000..38c5d980f53 --- /dev/null +++ b/tests/auto/wayland/seatv5/CMakeLists.txt @@ -0,0 +1,32 @@ +# Generated from seatv5.pro. + +##################################################################### +## tst_seatv5 Test: +##################################################################### + +qt_add_test(tst_seatv5 + SOURCES + ../shared/corecompositor.cpp ../shared/corecompositor.h + ../shared/coreprotocol.cpp ../shared/coreprotocol.h + ../shared/datadevice.cpp ../shared/datadevice.h + ../shared/mockcompositor.cpp ../shared/mockcompositor.h + ../shared/textinput.cpp ../shared/textinput.h + ../shared/xdgshell.cpp ../shared/xdgshell.h + tst_seatv5.cpp + INCLUDE_DIRECTORIES + ../shared + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Server + Threads::Threads # special case +) + +qt6_generate_wayland_protocol_server_sources(tst_seatv5 + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/text-input-unstable-v2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/xdg-shell.xml +) diff --git a/tests/auto/wayland/surface/.prev_CMakeLists.txt b/tests/auto/wayland/surface/.prev_CMakeLists.txt new file mode 100644 index 00000000000..bb728928614 --- /dev/null +++ b/tests/auto/wayland/surface/.prev_CMakeLists.txt @@ -0,0 +1,31 @@ +# Generated from surface.pro. + +##################################################################### +## tst_surface Test: +##################################################################### + +qt_add_test(tst_surface + SOURCES + ../shared/corecompositor.cpp ../shared/corecompositor.h + ../shared/coreprotocol.cpp ../shared/coreprotocol.h + ../shared/datadevice.cpp ../shared/datadevice.h + ../shared/mockcompositor.cpp ../shared/mockcompositor.h + ../shared/textinput.cpp ../shared/textinput.h + ../shared/xdgshell.cpp ../shared/xdgshell.h + tst_surface.cpp + INCLUDE_DIRECTORIES + ../shared + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Server +) + +qt6_generate_wayland_protocol_server_sources(tst_surface + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/text-input-unstable-v2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/xdg-shell.xml +) diff --git a/tests/auto/wayland/surface/CMakeLists.txt b/tests/auto/wayland/surface/CMakeLists.txt new file mode 100644 index 00000000000..1470f414e60 --- /dev/null +++ b/tests/auto/wayland/surface/CMakeLists.txt @@ -0,0 +1,32 @@ +# Generated from surface.pro. + +##################################################################### +## tst_surface Test: +##################################################################### + +qt_add_test(tst_surface + SOURCES + ../shared/corecompositor.cpp ../shared/corecompositor.h + ../shared/coreprotocol.cpp ../shared/coreprotocol.h + ../shared/datadevice.cpp ../shared/datadevice.h + ../shared/mockcompositor.cpp ../shared/mockcompositor.h + ../shared/textinput.cpp ../shared/textinput.h + ../shared/xdgshell.cpp ../shared/xdgshell.h + tst_surface.cpp + INCLUDE_DIRECTORIES + ../shared + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Server + Threads::Threads # special case +) + +qt6_generate_wayland_protocol_server_sources(tst_surface + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/text-input-unstable-v2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/xdg-shell.xml +) diff --git a/tests/auto/wayland/wl_connect/CMakeLists.txt b/tests/auto/wayland/wl_connect/CMakeLists.txt new file mode 100644 index 00000000000..5ad3ac6a4a3 --- /dev/null +++ b/tests/auto/wayland/wl_connect/CMakeLists.txt @@ -0,0 +1,14 @@ +# Generated from wl_connect.pro. + +##################################################################### +## tst_wlconnect Test: +##################################################################### + +qt_add_test(tst_wlconnect + SOURCES + tst_wlconnect.cpp + LIBRARIES + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui +) diff --git a/tests/auto/wayland/xdgdecorationv1/.prev_CMakeLists.txt b/tests/auto/wayland/xdgdecorationv1/.prev_CMakeLists.txt new file mode 100644 index 00000000000..a73e1055c75 --- /dev/null +++ b/tests/auto/wayland/xdgdecorationv1/.prev_CMakeLists.txt @@ -0,0 +1,32 @@ +# Generated from xdgdecorationv1.pro. + +##################################################################### +## tst_xdgdecorationv1 Test: +##################################################################### + +qt_add_test(tst_xdgdecorationv1 + SOURCES + ../shared/corecompositor.cpp ../shared/corecompositor.h + ../shared/coreprotocol.cpp ../shared/coreprotocol.h + ../shared/datadevice.cpp ../shared/datadevice.h + ../shared/mockcompositor.cpp ../shared/mockcompositor.h + ../shared/textinput.cpp ../shared/textinput.h + ../shared/xdgshell.cpp ../shared/xdgshell.h + tst_xdgdecorationv1.cpp + INCLUDE_DIRECTORIES + ../shared + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Server +) + +qt6_generate_wayland_protocol_server_sources(tst_xdgdecorationv1 + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/xdg-decoration-unstable-v1.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/text-input-unstable-v2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/xdg-shell.xml +) diff --git a/tests/auto/wayland/xdgdecorationv1/CMakeLists.txt b/tests/auto/wayland/xdgdecorationv1/CMakeLists.txt new file mode 100644 index 00000000000..5d26b7fc865 --- /dev/null +++ b/tests/auto/wayland/xdgdecorationv1/CMakeLists.txt @@ -0,0 +1,33 @@ +# Generated from xdgdecorationv1.pro. + +##################################################################### +## tst_xdgdecorationv1 Test: +##################################################################### + +qt_add_test(tst_xdgdecorationv1 + SOURCES + ../shared/corecompositor.cpp ../shared/corecompositor.h + ../shared/coreprotocol.cpp ../shared/coreprotocol.h + ../shared/datadevice.cpp ../shared/datadevice.h + ../shared/mockcompositor.cpp ../shared/mockcompositor.h + ../shared/textinput.cpp ../shared/textinput.h + ../shared/xdgshell.cpp ../shared/xdgshell.h + tst_xdgdecorationv1.cpp + INCLUDE_DIRECTORIES + ../shared + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Server + Threads::Threads # special case +) + +qt6_generate_wayland_protocol_server_sources(tst_xdgdecorationv1 + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/xdg-decoration-unstable-v1.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/text-input-unstable-v2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/xdg-shell.xml +) diff --git a/tests/auto/wayland/xdgoutput/.prev_CMakeLists.txt b/tests/auto/wayland/xdgoutput/.prev_CMakeLists.txt new file mode 100644 index 00000000000..1a3afc1e292 --- /dev/null +++ b/tests/auto/wayland/xdgoutput/.prev_CMakeLists.txt @@ -0,0 +1,32 @@ +# Generated from xdgoutput.pro. + +##################################################################### +## tst_xdgoutput Test: +##################################################################### + +qt_add_test(tst_xdgoutput + SOURCES + ../shared/corecompositor.cpp ../shared/corecompositor.h + ../shared/coreprotocol.cpp ../shared/coreprotocol.h + ../shared/datadevice.cpp ../shared/datadevice.h + ../shared/mockcompositor.cpp ../shared/mockcompositor.h + ../shared/textinput.cpp ../shared/textinput.h + ../shared/xdgshell.cpp ../shared/xdgshell.h + tst_xdgoutput.cpp + INCLUDE_DIRECTORIES + ../shared + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Server +) + +qt6_generate_wayland_protocol_server_sources(tst_xdgoutput + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/xdg-output-unstable-v1.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/text-input-unstable-v2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/xdg-shell.xml +) diff --git a/tests/auto/wayland/xdgoutput/CMakeLists.txt b/tests/auto/wayland/xdgoutput/CMakeLists.txt new file mode 100644 index 00000000000..855268c9453 --- /dev/null +++ b/tests/auto/wayland/xdgoutput/CMakeLists.txt @@ -0,0 +1,33 @@ +# Generated from xdgoutput.pro. + +##################################################################### +## tst_xdgoutput Test: +##################################################################### + +qt_add_test(tst_xdgoutput + SOURCES + ../shared/corecompositor.cpp ../shared/corecompositor.h + ../shared/coreprotocol.cpp ../shared/coreprotocol.h + ../shared/datadevice.cpp ../shared/datadevice.h + ../shared/mockcompositor.cpp ../shared/mockcompositor.h + ../shared/textinput.cpp ../shared/textinput.h + ../shared/xdgshell.cpp ../shared/xdgshell.h + tst_xdgoutput.cpp + INCLUDE_DIRECTORIES + ../shared + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Server + Threads::Threads # special case +) + +qt6_generate_wayland_protocol_server_sources(tst_xdgoutput + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/xdg-output-unstable-v1.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/text-input-unstable-v2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/xdg-shell.xml +) diff --git a/tests/auto/wayland/xdgshell/.prev_CMakeLists.txt b/tests/auto/wayland/xdgshell/.prev_CMakeLists.txt new file mode 100644 index 00000000000..4dc670e9d91 --- /dev/null +++ b/tests/auto/wayland/xdgshell/.prev_CMakeLists.txt @@ -0,0 +1,31 @@ +# Generated from xdgshell.pro. + +##################################################################### +## tst_xdgshell Test: +##################################################################### + +qt_add_test(tst_xdgshell + SOURCES + ../shared/corecompositor.cpp ../shared/corecompositor.h + ../shared/coreprotocol.cpp ../shared/coreprotocol.h + ../shared/datadevice.cpp ../shared/datadevice.h + ../shared/mockcompositor.cpp ../shared/mockcompositor.h + ../shared/textinput.cpp ../shared/textinput.h + ../shared/xdgshell.cpp ../shared/xdgshell.h + tst_xdgshell.cpp + INCLUDE_DIRECTORIES + ../shared + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Server +) + +qt6_generate_wayland_protocol_server_sources(tst_xdgshell + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/text-input-unstable-v2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/xdg-shell.xml +) diff --git a/tests/auto/wayland/xdgshell/CMakeLists.txt b/tests/auto/wayland/xdgshell/CMakeLists.txt new file mode 100644 index 00000000000..025013e9f26 --- /dev/null +++ b/tests/auto/wayland/xdgshell/CMakeLists.txt @@ -0,0 +1,32 @@ +# Generated from xdgshell.pro. + +##################################################################### +## tst_xdgshell Test: +##################################################################### + +qt_add_test(tst_xdgshell + SOURCES + ../shared/corecompositor.cpp ../shared/corecompositor.h + ../shared/coreprotocol.cpp ../shared/coreprotocol.h + ../shared/datadevice.cpp ../shared/datadevice.h + ../shared/mockcompositor.cpp ../shared/mockcompositor.h + ../shared/textinput.cpp ../shared/textinput.h + ../shared/xdgshell.cpp ../shared/xdgshell.h + tst_xdgshell.cpp + INCLUDE_DIRECTORIES + ../shared + LIBRARIES + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Server + Threads::Threads # special case +) + +qt6_generate_wayland_protocol_server_sources(tst_xdgshell + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/text-input-unstable-v2.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../shared/../../../../src/3rdparty/protocol/xdg-shell.xml +) diff --git a/tests/auto/wayland/xdgshellv6/.prev_CMakeLists.txt b/tests/auto/wayland/xdgshellv6/.prev_CMakeLists.txt new file mode 100644 index 00000000000..ee3514f58a1 --- /dev/null +++ b/tests/auto/wayland/xdgshellv6/.prev_CMakeLists.txt @@ -0,0 +1,37 @@ +# Generated from xdgshellv6.pro. + +##################################################################### +## tst_client_xdgshellv6 Test: +##################################################################### + +qt_add_test(tst_client_xdgshellv6 + SOURCES + ../shared_old/mockcompositor.cpp ../shared_old/mockcompositor.h + ../shared_old/mockfullscreenshellv1.cpp ../shared_old/mockfullscreenshellv1.h + ../shared_old/mockinput.cpp ../shared_old/mockinput.h + ../shared_old/mockiviapplication.cpp ../shared_old/mockiviapplication.h + ../shared_old/mockoutput.cpp ../shared_old/mockoutput.h + ../shared_old/mocksurface.cpp ../shared_old/mocksurface.h + ../shared_old/mockwlshell.cpp ../shared_old/mockwlshell.h + ../shared_old/mockxdgshellv6.cpp ../shared_old/mockxdgshellv6.h + tst_xdgshellv6.cpp + INCLUDE_DIRECTORIES + ../shared_old + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Client + Wayland::Server +) + +qt6_generate_wayland_protocol_server_sources(tst_client_xdgshellv6 + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/fullscreen-shell-unstable-v1.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/ivi-application.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/xdg-shell-unstable-v6.xml +) diff --git a/tests/auto/wayland/xdgshellv6/CMakeLists.txt b/tests/auto/wayland/xdgshellv6/CMakeLists.txt new file mode 100644 index 00000000000..fe358889906 --- /dev/null +++ b/tests/auto/wayland/xdgshellv6/CMakeLists.txt @@ -0,0 +1,38 @@ +# Generated from xdgshellv6.pro. + +##################################################################### +## tst_client_xdgshellv6 Test: +##################################################################### + +qt_add_test(tst_client_xdgshellv6 + SOURCES + ../shared_old/mockcompositor.cpp ../shared_old/mockcompositor.h + ../shared_old/mockfullscreenshellv1.cpp ../shared_old/mockfullscreenshellv1.h + ../shared_old/mockinput.cpp ../shared_old/mockinput.h + ../shared_old/mockiviapplication.cpp ../shared_old/mockiviapplication.h + ../shared_old/mockoutput.cpp ../shared_old/mockoutput.h + ../shared_old/mocksurface.cpp ../shared_old/mocksurface.h + ../shared_old/mockwlshell.cpp ../shared_old/mockwlshell.h + ../shared_old/mockxdgshellv6.cpp ../shared_old/mockxdgshellv6.h + tst_xdgshellv6.cpp + INCLUDE_DIRECTORIES + ../shared_old + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + Qt::WaylandClientPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::WaylandClient + Wayland::Client + Wayland::Server + Threads::Threads # special case +) + +qt6_generate_wayland_protocol_server_sources(tst_client_xdgshellv6 + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/fullscreen-shell-unstable-v1.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/ivi-application.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/wayland.xml + ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/3rdparty/protocol/xdg-shell-unstable-v6.xml +)