diff options
author | Bilal Elmoussaoui <belmouss@redhat.com> | 2022-04-26 15:00:46 +0200 |
---|---|---|
committer | Marge Bot <marge-bot@gnome.org> | 2022-09-02 08:04:31 +0000 |
commit | 7902fa3f9fb9e772f0b74ed86f1c7ea8489ee601 (patch) | |
tree | b9cf3ffc6d739734b7957339a0deb8b917f56fd0 /config.h.meson | |
parent | f94189d4eb487298525005543f7b7dd1dc243bda (diff) | |
download | mutter-7902fa3f9fb9e772f0b74ed86f1c7ea8489ee601.tar.gz |
core: Make sound player feature optional
Mutter can play sounds in some contexts and also provides an API
for libmutter users to do so using libcanberra internally.
In some specific use cases of Mutter, we would like to not depend
on libcanberra and not have any sound playing feature by default.
The changes keeps the sound player API but make it no-op if the
sound_player feature is disabled to not make it possible to break
a gnome-shell build.
See https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2270
for relevant discussion
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2375>
Diffstat (limited to 'config.h.meson')
-rw-r--r-- | config.h.meson | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config.h.meson b/config.h.meson index e6ff572f5..c7724b24f 100644 --- a/config.h.meson +++ b/config.h.meson @@ -61,6 +61,9 @@ /* Defined if gnome-desktop is enabled */ #mesondefine HAVE_GNOME_DESKTOP +/* Defined if sound player is enabled */ +#mesondefine HAVE_SOUND_PLAYER + /* Building with SM support */ #mesondefine HAVE_SM |