build: enable sdbus++ common.hpp output
The generated server.hpp file now requires a common.hpp to also be
generated. Add that to the meson.build.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I82d345e48480ca8864f7442e74da50afb288ee92
diff --git a/xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/meson.build b/xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/meson.build
index 2302ad4..6168e73 100644
--- a/xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/meson.build
+++ b/xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/meson.build
@@ -19,6 +19,15 @@
install: true,
install_dir: get_option('includedir') / 'xyz/openbmc_project/Ipmi/Internal/SoftPowerOff')
+if_common_hpp = custom_target(
+ 'common.hpp',
+ output: 'common.hpp',
+ input: if_yaml_file,
+ capture: true,
+ command: [sdbuspp_prog, '-r', root, 'interface', 'common-header', domain],
+ install: true,
+ install_dir: get_option('includedir') / 'xyz/openbmc_project/Ipmi/Internal/SoftPowerOff')
+
softoff_dbus_deps = [
dependency('phosphor-dbus-interfaces'),
dependency('sdbusplus'),
@@ -29,6 +38,7 @@
[
if_cpp,
if_hpp,
+ if_common_hpp,
],
implicit_include_directories: false,
include_directories: root_inc,
@@ -39,7 +49,7 @@
softoff_dbus = declare_dependency(
dependencies: softoff_dbus_deps,
- sources: [if_hpp],
+ sources: [if_hpp, if_common_hpp],
link_with: softoff_dbus_lib)
softoff_dbus_reqs = []