mirror of
https://invent.kde.org/network/krfb
synced 2024-07-05 09:28:35 +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)
|
option(DISABLE_PIPEWIRE "Disable PipeWire support." OFF)
|
||||||
if(NOT DISABLE_PIPEWIRE)
|
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()
|
endif()
|
||||||
add_feature_info(PipeWire KPipeWire_FOUND "Required for pipewire screencast plugin")
|
|
||||||
find_package(PlasmaWaylandProtocols 1.5.0)
|
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(KWayland REQUIRED)
|
||||||
find_package(QtWaylandScanner REQUIRED)
|
find_package(QtWaylandScanner REQUIRED)
|
||||||
find_package(Qt6WaylandClient)
|
find_package(Qt6WaylandClient)
|
||||||
|
|
|
@ -45,6 +45,7 @@ target_link_libraries(krfb_framebuffer_pw
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
Qt::DBus
|
Qt::DBus
|
||||||
KF6::CoreAddons
|
KF6::CoreAddons
|
||||||
|
PkgConfig::PipeWire
|
||||||
Plasma::KWaylandClient
|
Plasma::KWaylandClient
|
||||||
Wayland::Client
|
Wayland::Client
|
||||||
krfbprivate
|
krfbprivate
|
||||||
|
|
Loading…
Reference in New Issue
Block a user