c766e5da6d
The scripting api is not suitable for implementing all features that should not be implemented in libkwin. For example, the krunner integration or screencasting are the things that don't belong to be compiled right into kwin and yet we don't have any other choice. This change introduces a quick and dirty plugin infrastructure that can be used to implement things such as colord integration, krunner integration, etc.
18 lines
521 B
CMake
18 lines
521 B
CMake
set(screencast_SOURCES
|
|
eglnativefence.cpp
|
|
main.cpp
|
|
pipewirecore.cpp
|
|
pipewirestream.cpp
|
|
screencastmanager.cpp
|
|
)
|
|
|
|
ecm_qt_declare_logging_category(screencast_SOURCES
|
|
HEADER kwinscreencast_logging.h
|
|
IDENTIFIER KWIN_SCREENCAST
|
|
CATEGORY_NAME kwin_screencast
|
|
DEFAULT_SEVERITY Warning
|
|
)
|
|
|
|
add_library(KWinScreencastPlugin OBJECT ${screencast_SOURCES})
|
|
target_compile_definitions(KWinScreencastPlugin PRIVATE QT_STATICPLUGIN)
|
|
target_link_libraries(KWinScreencastPlugin kwin PkgConfig::PipeWire)
|