mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
meson: if WP is the default SM but not built, use the system one
If we're not building wireplumber but it is set as the default session manager, search for one in $PATH and use that.
This commit is contained in:
parent
05759e3bab
commit
c25cec230c
1 changed files with 7 additions and 2 deletions
|
|
@ -46,8 +46,13 @@ if sm_choice == 'media-session'
|
|||
endif
|
||||
|
||||
if not build_wp and (sm_choice == 'wireplumber')
|
||||
error('building of the wireplumber subproject is disabled, ' +
|
||||
'but the requested session-manager is wireplumber')
|
||||
wp_prog = find_program('wireplumber')
|
||||
conf_config.set('session_manager_path', wp_prog.full_path())
|
||||
conf_config_uninstalled.set('session_manager_path', wp_prog.full_path())
|
||||
conf_config_uninstalled.set('session_manager_args', '')
|
||||
summary({'Using system wireplumber': wp_prog.full_path()},
|
||||
section: 'Session managers',
|
||||
bool_yn: true)
|
||||
elif build_wp
|
||||
wp_proj = subproject('wireplumber', required : true)
|
||||
if sm_choice == 'wireplumber'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue