build: enable sdbus++ common.hpp output
This repository is [incorrectly] not using the sdbus++-gen-meson,
but instead is hand-rolling the sdbus++ calls. The newest version
of sdbus++ adds a dependency between `server.hpp` and `common.hpp`,
so add the invocations as necessary.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I250cb0caa5ef6ab0e63f4e8cd66b8ae4f7c85500
diff --git a/xyz/openbmc_project/Dump/Internal/Create/meson.build b/xyz/openbmc_project/Dump/Internal/Create/meson.build
index a34e7c3..f2d2c45 100644
--- a/xyz/openbmc_project/Dump/Internal/Create/meson.build
+++ b/xyz/openbmc_project/Dump/Internal/Create/meson.build
@@ -1,5 +1,20 @@
# SPDX-License-Identifier: Apache-2.0
+common_hpp = custom_target(
+ 'common.hpp',
+ command : [
+ sdbusplusplus_prog, '-r', meson.project_source_root(),
+ 'interface',
+ 'common-header',
+ 'xyz.openbmc_project.Dump.Internal.Create',
+ ],
+ input : '../Create.interface.yaml',
+ capture : true,
+ output : 'common.hpp',
+ install : true,
+ install_dir: get_option('includedir') / 'xyz/openbmc_project/Dump/Internal/Create'
+ )
+
server_hpp = custom_target(
'server.hpp',
command : [
@@ -9,6 +24,7 @@
'xyz.openbmc_project.Dump.Internal.Create',
],
input : '../Create.interface.yaml',
+ depends: common_hpp,
capture : true,
output : 'server.hpp',
install : true,