meson: Install start-pulseaudio-x11 if x11 is found

Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
Arnaud Rebillout 2018-10-09 11:56:33 +07:00 committed by Arun Raghavan
parent ce16b373b2
commit 6b0bad4246

View File

@ -32,3 +32,16 @@ executable('pulseaudio',
dependencies : [ltdl_dep, cap_dep, dbus_dep, systemd_dep],
c_args : pa_c_args,
)
if x11_dep.found()
conf = configuration_data()
conf.set('PACTL_BINARY', join_paths(bindir, 'pactl'))
configure_file(
input : 'start-pulseaudio-x11.in',
output : 'start-pulseaudio-x11',
configuration : conf,
install : true,
install_dir : bindir,
)
endif