mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
29 lines
546 B
Meson
29 lines
546 B
Meson
if bashcompletiondir != 'no'
|
|
aliases = []
|
|
|
|
if get_option('daemon')
|
|
aliases += [
|
|
'pacmd',
|
|
'pasuspender',
|
|
]
|
|
endif
|
|
|
|
if not get_option('daemon-only')
|
|
aliases += [
|
|
'pacat',
|
|
'pactl',
|
|
'padsp',
|
|
'paplay',
|
|
'parec',
|
|
'parecord',
|
|
]
|
|
endif
|
|
|
|
install_data('pulseaudio', install_dir : bashcompletiondir)
|
|
|
|
foreach alias : aliases
|
|
dst = join_paths(bashcompletiondir, alias)
|
|
cmd = 'ln -fs @0@ $DESTDIR@1@'.format('pulseaudio', dst)
|
|
meson.add_install_script('sh', '-c', cmd)
|
|
endforeach
|
|
endif
|