mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-20 02:20:13 +01:00
Define common_inc which includes both public_inc and the project root directory. The project root directory will allow access to config.h and all the shared/ headers. Replacing all custom '.', '..', '../..', '../shared' etc. include paths with common_inc reduces clutter in the target definitions and enforces the common #include directive style, as e.g. including shared/ headers without the subdirectory name no longer works. Unfortunately this does not prevent one from using private libweston headers with the usual include pattern for public headers. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
30 lines
852 B
Meson
30 lines
852 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 ]
|
|
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
|