mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-07 08:21:11 -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
|
endif
|
||||||
|
|
||||||
if not build_wp and (sm_choice == 'wireplumber')
|
if not build_wp and (sm_choice == 'wireplumber')
|
||||||
error('building of the wireplumber subproject is disabled, ' +
|
wp_prog = find_program('wireplumber')
|
||||||
'but the requested session-manager is 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
|
elif build_wp
|
||||||
wp_proj = subproject('wireplumber', required : true)
|
wp_proj = subproject('wireplumber', required : true)
|
||||||
if sm_choice == 'wireplumber'
|
if sm_choice == 'wireplumber'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue