mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
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.
This commit is contained in:
parent
f0bc0d068e
commit
902444ae1a
1 changed files with 4 additions and 1 deletions
|
|
@ -56,7 +56,10 @@ executable('export-spa-device',
|
||||||
dependencies : [pipewire_dep, mathlib],
|
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_src = []
|
||||||
sm_logind_dep = []
|
sm_logind_dep = []
|
||||||
if systemd.found() and systemd_dep.found()
|
if systemd.found() and systemd_dep.found()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue