[sysprof/wip/chergert/mem-preload] build: install memory interceptor to libexecdir



commit 40cee8ae901364bf6aa2d301b12c8b72de52b59e
Author: Christian Hergert <chergert redhat com>
Date:   Tue Feb 4 12:44:09 2020 -0800

    build: install memory interceptor to libexecdir

 meson.build                        |  1 +
 src/libsysprof/preload/meson.build | 11 ++++++++---
 2 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index 69303c7..b5937eb 100644
--- a/meson.build
+++ b/meson.build
@@ -31,6 +31,7 @@ config_h.set_quoted('PACKAGE_NAME', 'sysprof')
 config_h.set_quoted('PACKAGE_VERSION', meson.project_version())
 config_h.set_quoted('PACKAGE_STRING', 'sysprof-' + meson.project_version())
 config_h.set_quoted('PACKAGE_BUGREPORT', 'https://bugzilla.gnome.org/enter_bug.cgi?product=sysprof')
+config_h.set_quoted('PACKAGE_LIBEXECDIR', join_paths(get_option('prefix'), get_option('libexecdir')))
 config_h.set('PACKAGE_TARNAME', 'PACKAGE_STRING')
 config_h.set('PACKAGE', 'PACKAGE_NAME')
 config_h.set('VERSION', 'PACKAGE_VERSION')
diff --git a/src/libsysprof/preload/meson.build b/src/libsysprof/preload/meson.build
index b2a7d8a..596fc79 100644
--- a/src/libsysprof/preload/meson.build
+++ b/src/libsysprof/preload/meson.build
@@ -4,8 +4,13 @@ libsysprof_memory_preload_deps = [
   libunwind_dep,
 ]
 
-libsysprof_memory_preload = shared_library('sysprof-memory-collector',
-  ['sysprof-memory-collector.c'],
+libsysprof_memory_preload_sources = [
+  'sysprof-memory-collector.c',
+]
+
+libsysprof_memory_preload = shared_library('sysprof-memory-@0@'.format(libsysprof_api_version),
+  libsysprof_memory_preload_sources,
   dependencies: libsysprof_memory_preload_deps,
+       install: true,
+   install_dir: get_option('libexecdir'),
 )
-


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