build: Allow to install media roles

Install role based config if set.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
This commit is contained in:
Guido Günther
2025-10-24 13:43:39 +02:00
parent d58b7cf517
commit 6296c4fe77
3 changed files with 8 additions and 0 deletions
+3
View File
@@ -91,4 +91,7 @@ if get_option('daemon')
install_dir: systemd_user_unit_dir,
)
if get_option('media-roles')
install_data('media-role-nodes.conf', install_dir: wireplumberdir)
endif
endif # daemon
+2
View File
@@ -42,6 +42,7 @@ if udev.found() and get_option('daemon')
else
udevdir = prefix / 'lib' / 'udev' / 'rules.d'
endif
wireplumberdir = datadir / 'wireplumber' / 'wireplumber.conf.d'
run_data = configuration_data()
run_data.set('ABS_BUILDDIR', meson.current_build_dir())
@@ -124,6 +125,7 @@ summary = [
' Introspection: @0@'.format(introspection),
' Vapi: @0@'.format(get_option('vapi')),
' Tests: @0@'.format(get_option('tests')),
' Media Roles: @0@'.format(get_option('media-roles')),
'---------------',
'',
]
+3
View File
@@ -19,3 +19,6 @@ option('tests',
option('systemd_user_unit_dir',
type: 'string', value: '',
description: 'Directory for systemd user units')
option('media-roles',
type: 'boolean', value: false,
description: 'Use media roles')