mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-09-06 18:05:39 +00:00
![Pekka Paalanen](/assets/img/avatar_default.png)
We have two kinds of libweston users: internal and external. Weston, the frontend, counts as an external user, and should not have access to libweston private headers. The shell plugins are external users as well, because we intend people to be able to write them. Renderers, backends, and some plugins are internal users who will need access to private headers. Create two different Meson dependency objects, one for each kind. This makes it less likely to accidentally use a private header. Screen-share is a Weston plugin and therefore counts as an external user, but it needs the backend API to deliver input. Until we are comfortable exposing public API for that purpose, let it use internal headers. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
31 lines
860 B
Meson
31 lines
860 B
Meson
if get_option('pipewire')
|
|
user_hint = 'If you rather not build this, set "pipewire=false".'
|
|
|
|
if not get_option('backend-drm')
|
|
error('Attempting to build the pipewire plugin without the required DRM backend. ' + user_hint)
|
|
endif
|
|
|
|
depnames = [
|
|
'libpipewire-0.2', 'libspa-0.1'
|
|
]
|
|
deps_pipewire = [ dep_libweston_private ]
|
|
foreach depname : depnames
|
|
dep = dependency(depname, required: false)
|
|
if not dep.found()
|
|
error('Pipewire plugin requires @0@ which was not found. '.format(depname) + user_hint)
|
|
endif
|
|
deps_pipewire += dep
|
|
endforeach
|
|
|
|
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
|