From 6b0bad42461fe2ec25907e84f933984d968d86d2 Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Tue, 9 Oct 2018 11:56:33 +0700 Subject: [PATCH] meson: Install start-pulseaudio-x11 if x11 is found Signed-off-by: Arnaud Rebillout --- src/daemon/meson.build | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/daemon/meson.build b/src/daemon/meson.build index 43555973d..78494e930 100644 --- a/src/daemon/meson.build +++ b/src/daemon/meson.build @@ -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