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/Security/RestrictionMode/meson.build b/gen/xyz/openbmc_project/Control/Security/RestrictionMode/meson.build
new file mode 100644
index 0000000..831a7fa
--- /dev/null
+++ b/gen/xyz/openbmc_project/Control/Security/RestrictionMode/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'xyz/openbmc_project/Control/Security/RestrictionMode__cpp'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Control/Security/RestrictionMode.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/Security/RestrictionMode',
+ ],
+)
+
diff --git a/gen/xyz/openbmc_project/Control/Security/SpecialMode/meson.build b/gen/xyz/openbmc_project/Control/Security/SpecialMode/meson.build
new file mode 100644
index 0000000..333bbc7
--- /dev/null
+++ b/gen/xyz/openbmc_project/Control/Security/SpecialMode/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'xyz/openbmc_project/Control/Security/SpecialMode__cpp'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Control/Security/SpecialMode.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/Security/SpecialMode',
+ ],
+)
+
diff --git a/gen/xyz/openbmc_project/Control/Security/meson.build b/gen/xyz/openbmc_project/Control/Security/meson.build
new file mode 100644
index 0000000..f37c2dc
--- /dev/null
+++ b/gen/xyz/openbmc_project/Control/Security/meson.build
@@ -0,0 +1,31 @@
+# Generated file; do not modify.
+subdir('RestrictionMode')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Control/Security/RestrictionMode__markdown'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Control/Security/RestrictionMode.interface.yaml', ],
+ output: [ 'RestrictionMode.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Control/Security/RestrictionMode',
+ ],
+ build_by_default: true,
+)
+
+subdir('SpecialMode')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Control/Security/SpecialMode__markdown'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Control/Security/SpecialMode.interface.yaml', ],
+ output: [ 'SpecialMode.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Control/Security/SpecialMode',
+ ],
+ build_by_default: true,
+)
+