Add a option for controlling libcanberra feature

The retains the previous behavior of automagic except it allows the user to
explicitly enable or disable the feature.

Chose to call the feature a more agnostic "audio-feedback".

Bug: https://bugs.gentoo.org/950761
See-Also: 22b04fff6e
Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2025-03-10 20:44:02 +02:00 committed by Arun Raghavan
parent ce48aec45f
commit 66a3e147b0
2 changed files with 4 additions and 1 deletions

View file

@ -10,7 +10,7 @@ cpp = meson.get_compiler('cpp')
gtkmm_dep = dependency('gtkmm-4.0', version : '>= 4.0', required : true)
sigcpp_dep = dependency('sigc++-3.0', required : true)
canberragtk_dep = dependency('libcanberra', version : '>= 0.16', required : false)
canberragtk_dep = dependency('libcanberra', version : '>= 0.16', required : get_option('audio-feedback'))
libpulse_dep = dependency('libpulse', version : '>= 5.0', required : true)
libpulsemlglib_dep = dependency('libpulse-mainloop-glib', version : '>= 0.9.16', required : true)

View file

@ -1,3 +1,6 @@
option('lynx',
type : 'boolean', value : true,
description : 'Enable building of the README text file for installation')
option('audio-feedback',
type : 'feature', value: 'auto',
description : 'Play a sound when you change the volume of a sink')