meson: adjust library build
Yocto requires libraries to be versioned for sane installs. Assigning
a version and build it as a 'library' rather than a 'module' so that
the right libraries end up in the right package split
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: If4a9a6688387aeda6242b4d0a3d80d6029aaad3e
diff --git a/meson.build b/meson.build
index 4fdf0db..6c4d0c5 100644
--- a/meson.build
+++ b/meson.build
@@ -63,7 +63,7 @@
userlayer_dep,
])
-zfboemcmds_lib = shared_module(
+zfboemcmds_lib = library(
'zfboemcmds',
'src/oemcommands.cpp',
'src/appcommands.cpp',
@@ -74,5 +74,7 @@
'src/biccommands.cpp',
implicit_include_directories: false,
dependencies: zfboemcmds_pre,
+ version: meson.project_version(),
+ override_options: ['b_lundef=false'],
install: true,
install_dir: get_option('libdir') / 'ipmid-providers')