[gtk: 1/2] build: Install Valgrind suppressions files



commit e123853b8b8cd23c8e21ff54470be4106abdb7e8
Author: Philip Chimento <philip chimento gmail com>
Date:   Sun Feb 23 15:00:37 2020 -0800

    build: Install Valgrind suppressions files
    
    This is so that other programs linking to GTK can use GTK's suppressions
    files when performing their own Valgrind analysis.
    
    Closes: #138

 meson.build | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/meson.build b/meson.build
index 22804b5196..2ba1516d7e 100644
--- a/meson.build
+++ b/meson.build
@@ -794,6 +794,13 @@ meson.add_install_script('build-aux/meson/post-install.py',
                          gtk_libdir,
                          gtk_datadir)
 
+if host_machine.system() != 'windows'
+  # Install Valgrind suppression files (except on Windows,
+  # as Valgrind is currently not supported on Windows)
+  install_data('gtk.supp', 'gtk64.supp',
+    install_dir : join_paths(gtk_datadir, 'gtk-4.0', 'valgrind'))
+endif
+
 summary = [
   '',
   '------',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]