mirror of
https://invent.kde.org/network/krfb
synced 2024-07-01 07:24:29 +00:00
Fix pipewire.h include not found
Without linking directly on PkgConfig::PipeWire, the header isn't found. It isn't found because KPipeWire doesn't expose that dependency publicly.
This commit is contained in:
parent
4abd4c8b06
commit
b3e3042bd8
|
@ -74,12 +74,14 @@ find_package(LibVNCServer REQUIRED)
|
|||
|
||||
option(DISABLE_PIPEWIRE "Disable PipeWire support." OFF)
|
||||
if(NOT DISABLE_PIPEWIRE)
|
||||
find_package(KPipeWire REQUIRED)
|
||||
find_package(KPipeWire CONFIG REQUIRED)
|
||||
pkg_check_modules(PipeWire IMPORTED_TARGET libpipewire-0.3)
|
||||
add_feature_info(PipeWire PipeWire_FOUND "Required for pipewire screencast plugin")
|
||||
endif()
|
||||
add_feature_info(PipeWire KPipeWire_FOUND "Required for pipewire screencast plugin")
|
||||
|
||||
find_package(PlasmaWaylandProtocols 1.5.0)
|
||||
|
||||
if(KPipeWire_FOUND AND PlasmaWaylandProtocols_FOUND)
|
||||
if(KPipeWire_FOUND AND PipeWire_FOUND AND PlasmaWaylandProtocols_FOUND)
|
||||
find_package(KWayland REQUIRED)
|
||||
find_package(QtWaylandScanner REQUIRED)
|
||||
find_package(Qt6WaylandClient)
|
||||
|
|
|
@ -45,6 +45,7 @@ target_link_libraries(krfb_framebuffer_pw
|
|||
Qt::Gui
|
||||
Qt::DBus
|
||||
KF6::CoreAddons
|
||||
PkgConfig::PipeWire
|
||||
Plasma::KWaylandClient
|
||||
Wayland::Client
|
||||
krfbprivate
|
||||
|
|
Loading…
Reference in New Issue
Block a user