meson: enable full subproject build
Misc changes to the build process and adding wrap-files so that
the full repository can be built as a meson subproject. This
depends on a few pending changes upstream in phosphor-host-ipmid,
but since that subproject references HEAD it will automatically
resolve as those changes are merged.
Change-Id: Ia3d50e0efa21b07ae4d4886f5930a270976670ed
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
diff --git a/src/meson.build b/src/meson.build
index d8c3c0b..698258a 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -6,15 +6,22 @@
so_version = '0.1.0'
+sources = [
+ 'iei_oem.cpp',
+]
+
+deps = [
+ phosphor_dbus_interfaces_dep,
+ phosphor_logging_dep,
+ ipmid_dep,
+ sdbusplus_dep,
+]
+
shared_library(
'iei-ipmi-oem',
- 'iei_oem.cpp',
- dependencies: [
- phosphor_dbus_interfaces,
- phosphor_logging,
- libipmid,
- ],
+ sources,
+ dependencies: deps,
version: so_version,
install: true,
install_dir: get_option('libdir') / 'ipmid-providers'
- )
+)