build-sys: Add an option for enabling/disabling Valgrind

In OpenEmbedded the PulseAudio recipe currently disables Valgrind
support by passing "ac_cv_header_valgrind_memcheck_h=no" to the
configure script (this was added to make it deterministic whether
Valgrdind support gets enabled or not). I'm converting the PulseAudio
recipe to use Meson, and I needed an option to disable Valgrind.
This commit is contained in:
Tanu Kaskinen 2020-02-14 07:29:33 +02:00 committed by Georg Chini
parent e43ca00d52
commit dc79f304dd
2 changed files with 8 additions and 1 deletions

View file

@ -141,6 +141,9 @@ option('systemd',
option('udev',
type : 'feature', value : 'auto',
description : 'Optional udev support')
option('valgrind',
type : 'feature', value : 'auto',
description : 'Optional Valgrind support')
option('x11',
type : 'feature', value : 'auto',
description : 'Optional X11 support')