meson: Add glib_valgrind_suppressions variable to glib pkg-config file

Various projects are running tests under valgrind, and they are using
the GLib suppresions to avoid false-positive results.

While this is stored in a well-known path for some years, and easy to
figure out from the GLib prefix, it's better to expose it through a
proper pkgconfig variable so that it's easy to get it from any build
system.
This commit is contained in:
Marco Trevisan (Treviño)
2023-04-05 17:07:58 +02:00
parent 7fec23ed5e
commit fcad56e313
3 changed files with 14 additions and 6 deletions

View File

@@ -17,8 +17,8 @@ endif
if host_system != 'windows'
# Install Valgrind suppression file (except on Windows,
# as Valgrind is currently not supported on Windows)
install_data('glib.supp',
install_dir : get_option('datadir') / 'glib-2.0' / 'valgrind',
install_data(fs.name(valgrind_suppression_file),
install_dir : get_option('datadir') / valgrind_suppression_file_install_subdir,
install_tag : 'devel',
)
endif