build-sys: deprecate the pulseaudio backend

The PulseAudio audio backend is still the default. However, it will be
deprecated in favour of the GStreamer backend in a future release.

Then PulseAudio will be disabled by default, and later on removed.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
This commit is contained in:
Marc-André Lureau 2019-01-06 00:15:00 +04:00
parent 6a23198951
commit 9a4b3bcb55
2 changed files with 4 additions and 0 deletions

View File

@ -559,3 +559,6 @@ AC_MSG_NOTICE([
])
SPICE_PRINT_MESSAGES
AS_IF([test "x$enable_pulse" = "xyes"],
AC_MSG_WARN([PulseAudio backend is deprecated and will be removed in a future release]))

View File

@ -155,6 +155,7 @@ endif
spice_gtk_has_pulse = false
d = dependency('libpulse-mainloop-glib', required: get_option('pulse'))
if d.found()
warning('PulseAudio backend is deprecated and will be removed in a future release')
spice_glib_deps += d
spice_gtk_config_data.set('HAVE_PULSE', '1')
spice_gtk_has_pulse = true