@ -7,44 +7,45 @@ target_link_libraries(taskmanagerplugin taskmanager)
install ( TARGETS taskmanagerplugin DESTINATION ${ KDE_INSTALL_QMLDIR } /org/kde/taskmanager )
install ( FILES qmldir DESTINATION ${ KDE_INSTALL_QMLDIR } /org/kde/taskmanager )
if ( TARGET K::KPipeWire )
ecm_qt_declare_logging_category ( SRCS
H E A D E R l o g g i n g . h
I D E N T I F I E R P I P E W I R E _ L O G G I N G
C A T E G O R Y _ N A M E p l a s m a _ w o r k s p a c e _ p i p e w i r e _ l o g g i n g
D E S C R I P T I O N " P i p e W i r e c o m p o n e n t s f o r w i n d o w t h u m b n a i l s "
E X P O R T P l a s m a W o r k s p a c e P i p e W i r e )
ecm_qt_install_logging_categories (
E X P O R T P l a s m a W o r k s p a c e P i p e W i r e
F I L E m y p r o j e c t . c a t e g o r i e s
D E S T I N A T I O N " $ { K D E _ I N S T A L L _ L O G G I N G C A T E G O R I E S D I R } "
ecm_qt_declare_logging_category ( SRCS
H E A D E R l o g g i n g . h
I D E N T I F I E R P I P E W I R E _ L O G G I N G
C A T E G O R Y _ N A M E p l a s m a _ w o r k s p a c e _ p i p e w i r e _ l o g g i n g
D E S C R I P T I O N " P i p e W i r e c o m p o n e n t s f o r w i n d o w t h u m b n a i l s "
E X P O R T P l a s m a W o r k s p a c e P i p e W i r e )
ecm_qt_install_logging_categories (
E X P O R T P l a s m a W o r k s p a c e P i p e W i r e
F I L E m y p r o j e c t . c a t e g o r i e s
D E S T I N A T I O N " $ { K D E _ I N S T A L L _ L O G G I N G C A T E G O R I E S D I R } "
)
if ( QT_MAJOR_VERSION EQUAL "5" )
ecm_add_qtwayland_client_protocol ( SRCS
P R O T O C O L $ { P L A S M A _ W A Y L A N D _ P R O T O C O L S _ D I R } / z k d e - s c r e e n c a s t - u n s t a b l e - v 1 . x m l
B A S E N A M E z k d e - s c r e e n c a s t - u n s t a b l e - v 1
)
else ( )
qt6_generate_wayland_protocol_client_sources ( taskmanagerplugin FILES
$ { P L A S M A _ W A Y L A N D _ P R O T O C O L S _ D I R } / z k d e - s c r e e n c a s t - u n s t a b l e - v 1 . x m l )
endif ( )
target_include_directories ( taskmanagerplugin PRIVATE ${ Libdrm_INCLUDE_DIR } )
if ( QT_MAJOR_VERSION EQUAL "5" )
ecm_add_qtwayland_client_protocol ( SRCS
P R O T O C O L $ { P L A S M A _ W A Y L A N D _ P R O T O C O L S _ D I R } / z k d e - s c r e e n c a s t - u n s t a b l e - v 1 . x m l
B A S E N A M E z k d e - s c r e e n c a s t - u n s t a b l e - v 1
)
else ( )
qt6_generate_wayland_protocol_client_sources ( taskmanagerplugin FILES
$ { P L A S M A _ W A Y L A N D _ P R O T O C O L S _ D I R } / z k d e - s c r e e n c a s t - u n s t a b l e - v 1 . x m l )
endif ( )
target_include_directories ( taskmanagerplugin PRIVATE ${ Libdrm_INCLUDE_DIR } )
target_sources ( taskmanagerplugin PUBLIC screencasting.cpp screencastingrequest.cpp ${ SRCS } )
target_link_libraries ( taskmanagerplugin Qt::Qml Qt::GuiPrivate
K F 5 : : I 1 8 n
K F 5 : : W a y l a n d C l i e n t
W a y l a n d : : C l i e n t )
if ( ${ Qt5Gui_OPENGL_IMPLEMENTATION } STREQUAL "GLESv2" )
target_link_libraries ( taskmanagerplugin Qt5::Gui_GLESv2 )
elseif ( TARGET Qt5::Gui_GL )
target_link_libraries ( taskmanagerplugin Qt5::Gui_GL )
endif ( )
if ( TARGET Qt5::Gui_EGL )
target_link_libraries ( taskmanagerplugin Qt5::Gui_EGL )
endif ( )
if ( TARGET K::KPipeWire )
target_compile_definitions ( taskmanagerplugin PRIVATE -DWITH_KPIPEWIRE )
target_sources ( taskmanagerplugin PUBLIC screencasting.cpp screencastingrequest.cpp ${ SRCS } )
target_link_libraries ( taskmanagerplugin PkgConfig::PipeWire
Q t : : Q m l Q t : : G u i P r i v a t e
K F 5 : : I 1 8 n
K F 5 : : W a y l a n d C l i e n t
K : : K P i p e W i r e
W a y l a n d : : C l i e n t )
if ( ${ Qt5Gui_OPENGL_IMPLEMENTATION } STREQUAL "GLESv2" )
target_link_libraries ( taskmanagerplugin Qt5::Gui_GLESv2 )
elseif ( TARGET Qt5::Gui_GL )
target_link_libraries ( taskmanagerplugin Qt5::Gui_GL )
endif ( )
if ( TARGET Qt5::Gui_EGL )
target_link_libraries ( taskmanagerplugin Qt5::Gui_EGL )
endif ( )
K : : K P i p e W i r e )
endif ( )