mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
meson: make media_session_sources unconditional
The sources are used by the documentation, so rather than duplicating the checks for whether to build it or not, just define it as always-present empty array and fill it when needed. Otherwise we get a meson error if media-session is disabled but documentation is enabled.
This commit is contained in:
parent
852d6fc4b6
commit
bc2d820b6d
1 changed files with 2 additions and 1 deletions
|
|
@ -56,6 +56,7 @@ executable('export-spa-device',
|
|||
dependencies : [pipewire_dep, mathlib],
|
||||
)
|
||||
|
||||
media_session_sources = []
|
||||
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')
|
||||
|
|
@ -66,7 +67,7 @@ if get_option('session-managers').contains('media-session')
|
|||
sm_logind_src = ['media-session/logind.c']
|
||||
sm_logind_dep = [systemd_dep]
|
||||
endif
|
||||
media_session_sources = [
|
||||
media_session_sources += [
|
||||
'media-session/access-flatpak.c',
|
||||
'media-session/access-portal.c',
|
||||
'media-session/alsa-no-dsp.c',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue