mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
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:
parent
e43ca00d52
commit
dc79f304dd
2 changed files with 8 additions and 1 deletions
|
|
@ -221,7 +221,6 @@ check_headers = [
|
||||||
'sys/un.h',
|
'sys/un.h',
|
||||||
'sys/wait.h',
|
'sys/wait.h',
|
||||||
'syslog.h',
|
'syslog.h',
|
||||||
'valgrind/memcheck.h',
|
|
||||||
'xlocale.h',
|
'xlocale.h',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
@ -232,6 +231,10 @@ foreach h : check_headers
|
||||||
endif
|
endif
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
|
if cc.has_header('valgrind/memcheck.h', required: get_option('valgrind'))
|
||||||
|
cdata.set('HAVE_VALGRIND_MEMCHECK_H', 1)
|
||||||
|
endif
|
||||||
|
|
||||||
# FIXME: move this to the above set
|
# FIXME: move this to the above set
|
||||||
if cc.has_header('pthread.h')
|
if cc.has_header('pthread.h')
|
||||||
cdata.set('HAVE_PTHREAD', 1)
|
cdata.set('HAVE_PTHREAD', 1)
|
||||||
|
|
@ -842,6 +845,7 @@ summary = [
|
||||||
'Enable SoXR (resampler): @0@'.format(soxr_dep.found()),
|
'Enable SoXR (resampler): @0@'.format(soxr_dep.found()),
|
||||||
'Enable WebRTC echo canceller: @0@'.format(webrtc_dep.found()),
|
'Enable WebRTC echo canceller: @0@'.format(webrtc_dep.found()),
|
||||||
'Enable Gcov coverage: @0@'.format(get_option('gcov')),
|
'Enable Gcov coverage: @0@'.format(get_option('gcov')),
|
||||||
|
'Enable Valgrind: @0@'.format(cdata.has('HAVE_VALGRIND_MEMCHECK_H')),
|
||||||
'Enable man pages: @0@'.format(get_option('man')),
|
'Enable man pages: @0@'.format(get_option('man')),
|
||||||
'Enable unit tests: @0@'.format(get_option('tests')),
|
'Enable unit tests: @0@'.format(get_option('tests')),
|
||||||
'',
|
'',
|
||||||
|
|
|
||||||
|
|
@ -141,6 +141,9 @@ option('systemd',
|
||||||
option('udev',
|
option('udev',
|
||||||
type : 'feature', value : 'auto',
|
type : 'feature', value : 'auto',
|
||||||
description : 'Optional udev support')
|
description : 'Optional udev support')
|
||||||
|
option('valgrind',
|
||||||
|
type : 'feature', value : 'auto',
|
||||||
|
description : 'Optional Valgrind support')
|
||||||
option('x11',
|
option('x11',
|
||||||
type : 'feature', value : 'auto',
|
type : 'feature', value : 'auto',
|
||||||
description : 'Optional X11 support')
|
description : 'Optional X11 support')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue