2019-04-23 13:34:05 +03:00
|
|
|
if get_option('pipewire')
|
2020-11-17 16:44:07 +03:00
|
|
|
user_hint = 'If you rather not build this, set \'-Dpipewire=false\'.'
|
2019-04-23 13:34:05 +03:00
|
|
|
|
|
|
|
if not get_option('backend-drm')
|
|
|
|
error('Attempting to build the pipewire plugin without the required DRM backend. ' + user_hint)
|
|
|
|
endif
|
|
|
|
|
2019-04-18 16:43:55 +03:00
|
|
|
deps_pipewire = [ dep_libweston_private ]
|
2020-07-06 09:58:02 +03:00
|
|
|
|
|
|
|
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
|
2019-04-23 13:34:05 +03:00
|
|
|
|
|
|
|
plugin_pipewire = shared_library(
|
|
|
|
'pipewire-plugin',
|
|
|
|
'pipewire-plugin.c',
|
2019-04-05 17:09:28 +03:00
|
|
|
include_directories: common_inc,
|
2019-04-23 13:34:05 +03:00
|
|
|
dependencies: deps_pipewire,
|
|
|
|
name_prefix: '',
|
|
|
|
install: true,
|
|
|
|
install_dir: dir_module_libweston
|
|
|
|
)
|
|
|
|
env_modmap += 'pipewire-plugin.so=@0@;'.format(plugin_pipewire.full_path())
|
|
|
|
endif
|