mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-26 06:18:14 +02:00
The intention is that you should be able to replace these with the pipewire-backend that you can load together with the DRM-backend. The functionality should be equivalent, but the libweston software architecture becomes more maintainable for upstream. Also the pipewire-backend is not tied to the DRM-backend, and can work with any other backend and even alone. Once the remoting and pipewire plugins are gone, we can remove the virtual output API from DRM-backend. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
32 lines
1 KiB
Meson
32 lines
1 KiB
Meson
if get_option('deprecated-pipewire')
|
|
user_hint = 'If you rather not build this, set \'-Ddeprecated-pipewire=false\'.'
|
|
|
|
if not get_option('backend-drm')
|
|
error('Attempting to build the pipewire plugin without the required DRM backend. ' + user_hint)
|
|
endif
|
|
|
|
deps_pipewire = [ dep_libweston_private ]
|
|
|
|
dep_libpipewire = dependency('libpipewire-0.3', required: false)
|
|
if not dep_libpipewire.found()
|
|
error('Pipewire plugin requires libpipewire which was not found. ' + user_hint)
|
|
endif
|
|
deps_pipewire += dep_libpipewire
|
|
|
|
dep_libspa = dependency('libspa-0.2', required: false)
|
|
if not dep_libspa.found()
|
|
error('Pipewire plugin requires libspa which was not found. ' + user_hint)
|
|
endif
|
|
deps_pipewire += dep_libspa
|
|
|
|
plugin_pipewire = shared_library(
|
|
'pipewire-plugin',
|
|
'pipewire-plugin.c',
|
|
include_directories: common_inc,
|
|
dependencies: deps_pipewire,
|
|
name_prefix: '',
|
|
install: true,
|
|
install_dir: dir_module_libweston
|
|
)
|
|
env_modmap += 'pipewire-plugin.so=@0@;'.format(plugin_pipewire.full_path())
|
|
endif
|