2021-04-07 11:20:25 +01:00
|
|
|
if(UNIX AND NOT APPLE)
|
|
|
|
find_package(QtWaylandScanner REQUIRED)
|
|
|
|
find_package(Wayland 1.15 COMPONENTS Client)
|
|
|
|
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS WaylandClient)
|
|
|
|
endif()
|
2021-03-03 14:24:24 +00:00
|
|
|
|
2020-05-26 17:55:47 +01:00
|
|
|
set(debug_file_SRCS)
|
|
|
|
ecm_qt_declare_logging_category(
|
|
|
|
debug_file_SRCS HEADER plugin_clipboard_debug.h
|
|
|
|
IDENTIFIER KDECONNECT_PLUGIN_CLIPBOARD CATEGORY_NAME kdeconnect.plugin.clipboard
|
|
|
|
DEFAULT_SEVERITY Warning
|
|
|
|
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin clipboard)")
|
2021-04-07 11:20:25 +01:00
|
|
|
|
2013-08-13 14:48:02 +01:00
|
|
|
set(kdeconnect_clipboard_SRCS
|
|
|
|
clipboardplugin.cpp
|
2016-09-09 15:18:56 +01:00
|
|
|
clipboardlistener.cpp
|
2020-05-26 17:55:47 +01:00
|
|
|
${debug_file_SRCS}
|
2013-08-13 14:48:02 +01:00
|
|
|
)
|
|
|
|
|
2021-04-07 11:20:25 +01:00
|
|
|
if(UNIX AND NOT APPLE)
|
|
|
|
list(APPEND kdeconnect_clipboard_SRCS datacontrol.cpp)
|
|
|
|
ecm_add_qtwayland_client_protocol(kdeconnect_clipboard_SRCS
|
|
|
|
PROTOCOL wlr-data-control-unstable-v1.xml
|
|
|
|
BASENAME wlr-data-control-unstable-v1
|
|
|
|
)
|
|
|
|
set(kdeconnect_clipboard_WL_LINK_LIBS Qt5::GuiPrivate # for native interface to get wl_seat
|
|
|
|
Wayland::Client Qt::WaylandClient)
|
|
|
|
endif()
|
|
|
|
|
2021-03-03 14:24:24 +00:00
|
|
|
|
2021-06-28 19:33:52 +01:00
|
|
|
kdeconnect_add_plugin(kdeconnect_clipboard SOURCES ${kdeconnect_clipboard_SRCS})
|
2013-08-13 14:48:02 +01:00
|
|
|
|
2021-03-03 14:24:24 +00:00
|
|
|
target_link_libraries(kdeconnect_clipboard kdeconnectcore
|
|
|
|
Qt5::Gui
|
2021-04-07 11:20:25 +01:00
|
|
|
${kdeconnect_clipboard_WL_LINK_LIBS}
|
2021-03-03 14:24:24 +00:00
|
|
|
)
|