From 6296c4fe778fd23d9e30b077616bc153b06a8b06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Thu, 23 Oct 2025 13:43:02 +0200 Subject: [PATCH] build: Allow to install media roles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Install role based config if set. Signed-off-by: Guido Günther --- data/meson.build | 3 +++ meson.build | 2 ++ meson.options | 3 +++ 3 files changed, 8 insertions(+) diff --git a/data/meson.build b/data/meson.build index b68c5ae..de3310f 100644 --- a/data/meson.build +++ b/data/meson.build @@ -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 diff --git a/meson.build b/meson.build index b14c4c2..bc2a572 100644 --- a/meson.build +++ b/meson.build @@ -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')), '---------------', '', ] diff --git a/meson.options b/meson.options index 9db4de7..55f4d36 100644 --- a/meson.options +++ b/meson.options @@ -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')