pipewire/spa/plugins/alsa/meson.build
Jarkko Sakkinen 7aabd50d1e 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>
2021-01-09 23:42:05 +02:00

49 lines
1.1 KiB
Meson

subdir('acp')
subdir('mixer')
spa_alsa_sources = ['alsa.c',
'alsa-udev.c',
'alsa-acp-device.c',
'alsa-pcm-device.c',
'alsa-pcm-sink.c',
'alsa-pcm-source.c',
'alsa-pcm.c',
'alsa-seq-bridge.c',
'alsa-seq.c']
spa_alsa = shared_library(
'spa-alsa',
[ spa_alsa_sources ],
c_args : acp_c_args,
include_directories : [spa_inc, configinc],
dependencies : [ alsa_dep, libudev_dep, mathlib ],
link_with : [ acp_lib ],
install : true,
install_dir : join_paths(spa_plugindir, 'alsa')
)
alsa_udevrules = [
'90-pipewire-alsa.rules',
]
executable('spa-acp-tool',
[ 'acp-tool.c' ],
c_args : acp_c_args,
include_directories : [spa_inc ],
dependencies : [ alsa_dep, mathlib ],
link_with : [ acp_lib ],
install : true,
)
executable('test-timer',
[ 'test-timer.c' ],
dependencies : [ alsa_dep, mathlib ],
install : false,
)
if get_option('udev') and libudev_dep.found()
install_data(alsa_udevrules,
install_dir : udevrulesdir,
)
endif