build: add sdbus++-gen-meson generated files
Use the tool to generate the meson.build files for the current
tree of interfaces, but do not utilize them yet. Add a
small helper tool to regenerate as needed.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ie1f68984e5b01dcab661863d2ac719d0e3cd45c1
diff --git a/gen/xyz/openbmc_project/Control/Power/ACPIPowerState/meson.build b/gen/xyz/openbmc_project/Control/Power/ACPIPowerState/meson.build
new file mode 100644
index 0000000..726563c
--- /dev/null
+++ b/gen/xyz/openbmc_project/Control/Power/ACPIPowerState/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'xyz/openbmc_project/Control/Power/ACPIPowerState__cpp'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Control/Power/ACPIPowerState.interface.yaml', ],
+ output: [ 'server.cpp', 'server.hpp', 'client.hpp', ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'cpp',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Control/Power/ACPIPowerState',
+ ],
+)
+
diff --git a/gen/xyz/openbmc_project/Control/Power/Cap/meson.build b/gen/xyz/openbmc_project/Control/Power/Cap/meson.build
new file mode 100644
index 0000000..ef401bf
--- /dev/null
+++ b/gen/xyz/openbmc_project/Control/Power/Cap/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'xyz/openbmc_project/Control/Power/Cap__cpp'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Control/Power/Cap.interface.yaml', ],
+ output: [ 'server.cpp', 'server.hpp', 'client.hpp', ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'cpp',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Control/Power/Cap',
+ ],
+)
+
diff --git a/gen/xyz/openbmc_project/Control/Power/RestorePolicy/meson.build b/gen/xyz/openbmc_project/Control/Power/RestorePolicy/meson.build
new file mode 100644
index 0000000..bb18e25
--- /dev/null
+++ b/gen/xyz/openbmc_project/Control/Power/RestorePolicy/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'xyz/openbmc_project/Control/Power/RestorePolicy__cpp'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Control/Power/RestorePolicy.interface.yaml', ],
+ output: [ 'server.cpp', 'server.hpp', 'client.hpp', ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'cpp',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Control/Power/RestorePolicy',
+ ],
+)
+
diff --git a/gen/xyz/openbmc_project/Control/Power/meson.build b/gen/xyz/openbmc_project/Control/Power/meson.build
new file mode 100644
index 0000000..05628ec
--- /dev/null
+++ b/gen/xyz/openbmc_project/Control/Power/meson.build
@@ -0,0 +1,46 @@
+# Generated file; do not modify.
+subdir('ACPIPowerState')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Control/Power/ACPIPowerState__markdown'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Control/Power/ACPIPowerState.interface.yaml', ],
+ output: [ 'ACPIPowerState.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Control/Power/ACPIPowerState',
+ ],
+ build_by_default: true,
+)
+
+subdir('Cap')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Control/Power/Cap__markdown'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Control/Power/Cap.interface.yaml', ],
+ output: [ 'Cap.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Control/Power/Cap',
+ ],
+ build_by_default: true,
+)
+
+subdir('RestorePolicy')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Control/Power/RestorePolicy__markdown'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Control/Power/RestorePolicy.interface.yaml', ],
+ output: [ 'RestorePolicy.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Control/Power/RestorePolicy',
+ ],
+ build_by_default: true,
+)
+