Skip to contentSkip to conversation

build: various fixes for the Meson build of libtraceevent

PATCH New Alexander Kanavin 1 participant 1 message Mar 11, 2024 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build: various fixes for the Meson build of libtraceevent

- Make the plugin directory the same as the Makefiles
- Install the plugins as modules not static and versioned shared libraries

---
 meson.build         | 2 +-
 plugins/meson.build | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)
meson.build +1 -1
index 40ce38c..1eb7912 100644
@@ -25,7 +25,7 @@ htmldir = join_paths(prefixdir, get_option('htmldir'))
 libdir = join_paths(prefixdir, get_option('libdir'))
 plugindir = get_option('plugindir')
 if plugindir == ''
-    plugindir = join_paths(libdir, 'libtraceevent/plugins')
+    plugindir = join_paths(libdir, 'traceevent/plugins')
 endif
 
 add_project_arguments(
plugins/meson.build +1 -2
index 74ad664..4919be4 100644
@@ -19,11 +19,10 @@ plugins = [
 
 pdeps = []
 foreach plugin : plugins
-    pdeps += library(
+    pdeps += shared_module(
         plugin.replace('.c', ''),
         plugin,
         name_prefix: '',
-        version: library_version,
         dependencies: [libtraceevent_dep],
         include_directories: [incdir],
         install: true,
Signature · 1 line
2.39.2