From 902444ae1a323d6f956a55c3e57d98cc85a8993a Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 7 Sep 2021 15:36:32 +1000 Subject: [PATCH] meson: if media-session is to be built but alsa is missing, error out If -Dsession-managers includes media-session, we should error out if the dependency is missing instead of just silently skipping the build. --- src/examples/meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/examples/meson.build b/src/examples/meson.build index e3e446297..b53796959 100644 --- a/src/examples/meson.build +++ b/src/examples/meson.build @@ -56,7 +56,10 @@ executable('export-spa-device', dependencies : [pipewire_dep, mathlib], ) -if get_option('session-managers').contains('media-session') and alsa_dep.found() +if get_option('session-managers').contains('media-session') + if not alsa_dep.found() + error('Required dependency alsa not found, cannot build media-session without it') + endif sm_logind_src = [] sm_logind_dep = [] if systemd.found() and systemd_dep.found()