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:
Peter Hutterer 2021-09-07 16:17:42 +10:00 committed by Wim Taymans
parent 05759e3bab
commit c25cec230c

View file

@ -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'