mirror of
https://gitlab.freedesktop.org/pipewire/media-session.git
synced 2025-12-20 04:10:02 +01:00
conf: template the set of with-foo module sets we install by default
Make this a meson option in the form -Dwith-module-sets=jack,pulseaudio which will then install with-jack, with-pulseaudio. That's the default setting. And add a comment to the files themselves so it's more obvious what they are there for, just an empty file is confusing.
This commit is contained in:
parent
08290f2c69
commit
4957b6bfed
5 changed files with 14 additions and 2 deletions
|
|
@ -7,10 +7,12 @@ conf_files = [
|
||||||
[ 'v4l2-monitor.conf', 'v4l2-monitor.conf' ],
|
[ 'v4l2-monitor.conf', 'v4l2-monitor.conf' ],
|
||||||
[ 'media-session.conf', 'media-session.conf' ],
|
[ 'media-session.conf', 'media-session.conf' ],
|
||||||
[ 'alsa-monitor.conf', 'alsa-monitor.conf' ],
|
[ 'alsa-monitor.conf', 'alsa-monitor.conf' ],
|
||||||
[ 'with-jack', 'with-jack' ],
|
|
||||||
[ 'with-pulseaudio', 'with-pulseaudio' ],
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
foreach opt : get_option('with-module-sets')
|
||||||
|
conf_files += [ [ 'with-module-set.in', 'with-@0@'.format(opt) ] ]
|
||||||
|
endforeach
|
||||||
|
|
||||||
foreach c : conf_files
|
foreach c : conf_files
|
||||||
configure_file(input : c.get(0),
|
configure_file(input : c.get(0),
|
||||||
output : c.get(1),
|
output : c.get(1),
|
||||||
|
|
|
||||||
5
media-session.d/with-module-set.in
Normal file
5
media-session.d/with-module-set.in
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
# This file is part of Media Session @VERSION@
|
||||||
|
#
|
||||||
|
# Add this file to @MEDIA_SESSION_CONFIG_DIR@/media-session.d/
|
||||||
|
# to load the corresponding module list in the in the media-session.conf
|
||||||
|
# session.modules[<filename>] array.
|
||||||
|
|
@ -29,3 +29,8 @@ option('systemd-user-service',
|
||||||
option('systemd-user-unit-dir',
|
option('systemd-user-unit-dir',
|
||||||
type : 'string',
|
type : 'string',
|
||||||
description : 'Directory for user systemd units (defaults to /usr/lib/systemd/user)')
|
description : 'Directory for user systemd units (defaults to /usr/lib/systemd/user)')
|
||||||
|
option('with-module-sets',
|
||||||
|
description : 'Extra modules sets to enable on install (see media-session.conf)',
|
||||||
|
type : 'array',
|
||||||
|
choices : ['alsa', 'jack', 'pulseaudio'],
|
||||||
|
value : ['jack', 'pulseaudio'])
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue