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/Chassis/Buttons/meson.build b/gen/xyz/openbmc_project/Chassis/Buttons/meson.build
new file mode 100644
index 0000000..82794e1
--- /dev/null
+++ b/gen/xyz/openbmc_project/Chassis/Buttons/meson.build
@@ -0,0 +1,61 @@
+# Generated file; do not modify.
+subdir('ID')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Chassis/Buttons/ID__markdown'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Chassis/Buttons/ID.interface.yaml', ],
+ output: [ 'ID.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Chassis/Buttons/ID',
+ ],
+ build_by_default: true,
+)
+
+subdir('NMI')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Chassis/Buttons/NMI__markdown'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Chassis/Buttons/NMI.interface.yaml', ],
+ output: [ 'NMI.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Chassis/Buttons/NMI',
+ ],
+ build_by_default: true,
+)
+
+subdir('Power')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Chassis/Buttons/Power__markdown'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Chassis/Buttons/Power.interface.yaml', ],
+ output: [ 'Power.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Chassis/Buttons/Power',
+ ],
+ build_by_default: true,
+)
+
+subdir('Reset')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Chassis/Buttons/Reset__markdown'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Chassis/Buttons/Reset.interface.yaml', ],
+ output: [ 'Reset.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Chassis/Buttons/Reset',
+ ],
+ build_by_default: true,
+)
+