Drop dependency with PlasmaWaylandProtocols

Now that we are using the RemoteDesktop XDP, we don't need FakeInput
anymore.

BUG: 465767
This commit is contained in:
Aleix Pol 2023-02-16 14:38:47 +01:00 committed by Albert Vaca Cintora
parent 804d17b67c
commit 5d4b074ef5
2 changed files with 0 additions and 11 deletions

View file

@ -83,7 +83,6 @@ else()
endif()
find_package(Wayland 1.9 REQUIRED Client)
find_package(Qt${QT_MAJOR_VERSION} REQUIRED COMPONENTS WaylandClient)
find_package(PlasmaWaylandProtocols REQUIRED)
find_package(WaylandProtocols REQUIRED)
pkg_check_modules(XkbCommon IMPORTED_TARGET xkbcommon)
endif()

View file

@ -16,16 +16,6 @@ if(UNIX AND NOT APPLE)
PURPOSE "Needed for the remote mousepad plugin"
)
if (QT_MAJOR_VERSION EQUAL "5")
ecm_add_qtwayland_client_protocol(wayland_SRCS
PROTOCOL ${PLASMA_WAYLAND_PROTOCOLS_DIR}/fake-input.xml
BASENAME fake-input
)
else()
qt6_generate_wayland_protocol_client_sources(kdeconnect_mousepad FILES
${PLASMA_WAYLAND_PROTOCOLS_DIR}/fake-input.xml)
endif()
target_sources(kdeconnect_mousepad PRIVATE ${wayland_SRCS})
target_link_libraries(kdeconnect_mousepad Wayland::Client Qt::WaylandClient PkgConfig::XkbCommon)
target_sources(kdeconnect_mousepad PUBLIC waylandremoteinput.cpp)