mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
udev: Make Udev optional
In order to further simplify "unprivileged" builds, add "udev" boolean, which make installing Udev rules optional. I.e. without requiring any ugly hacks (mktemp -d), an privileged build capable of running PulseAudio and JACK applications, can be configured trivially: meson --prefix=~/.local build meson configure build -Dsystemd-user-unit-dir=$HOME/.config/systemd/user meson configure build -Dpipewire-alsa=false meson configure build -Dudev=false Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@iki.fi>
This commit is contained in:
parent
86576f1e63
commit
7aabd50d1e
2 changed files with 5 additions and 1 deletions
|
|
@ -137,6 +137,10 @@ option('pw-cat',
|
||||||
description: 'Build pw-cat/pw-play/pw-record',
|
description: 'Build pw-cat/pw-play/pw-record',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
value: true)
|
value: true)
|
||||||
|
option('udev',
|
||||||
|
description: 'Enable Udev integration',
|
||||||
|
type: 'boolean',
|
||||||
|
value: true)
|
||||||
option('udevrulesdir',
|
option('udevrulesdir',
|
||||||
type : 'string',
|
type : 'string',
|
||||||
description : 'Directory for udev rules (defaults to /lib/udev/rules.d)')
|
description : 'Directory for udev rules (defaults to /lib/udev/rules.d)')
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ executable('test-timer',
|
||||||
install : false,
|
install : false,
|
||||||
)
|
)
|
||||||
|
|
||||||
if libudev_dep.found()
|
if get_option('udev') and libudev_dep.found()
|
||||||
install_data(alsa_udevrules,
|
install_data(alsa_udevrules,
|
||||||
install_dir : udevrulesdir,
|
install_dir : udevrulesdir,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue