gst-plugins-base: put valgrind header availability define into config.h for subparse

Make the valgrind header avaibility accessible to any code in
gst-plugins-base, currently it was only signalled to unit tests.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7126>
This commit is contained in:
Tim-Philipp Müller 2024-07-02 15:49:03 +01:00 committed by GStreamer Marge Bot
parent 506af5b8e4
commit 084f6b3fbe
2 changed files with 3 additions and 5 deletions

View file

@ -303,6 +303,9 @@ if get_option('default_library') == 'static'
gst_plugins_base_args += ['-DGST_STATIC_COMPILATION']
endif
valgrind_dep = dependency('valgrind', required: false)
core_conf.set('HAVE_VALGRIND', valgrind_dep.found())
libdrm_dep = dependency('libdrm', version : '>= 2.4.98',
required : get_option('drm'),
allow_fallback: host_system not in ['darwin', 'ios', 'android', 'windows']

View file

@ -129,11 +129,6 @@ test_defines = [
'-DGST_USE_UNSTABLE_API',
]
valgrind_dep = dependency('valgrind', required: false)
if valgrind_dep.found()
test_defines += ['-DHAVE_VALGRIND']
endif
if build_gstgl
test_defines += ['-DTEST_GST_GL_ABI_CHECK']
endif