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/Sensor/Device/meson.build b/gen/xyz/openbmc_project/Sensor/Device/meson.build
new file mode 100644
index 0000000..d8542a8
--- /dev/null
+++ b/gen/xyz/openbmc_project/Sensor/Device/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'xyz/openbmc_project/Sensor/Device__cpp'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Sensor/Device.errors.yaml', ],
+ output: [ 'error.cpp', 'error.hpp', ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'cpp',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Sensor/Device',
+ ],
+)
+
diff --git a/gen/xyz/openbmc_project/Sensor/Threshold/Critical/meson.build b/gen/xyz/openbmc_project/Sensor/Threshold/Critical/meson.build
new file mode 100644
index 0000000..ea74a3f
--- /dev/null
+++ b/gen/xyz/openbmc_project/Sensor/Threshold/Critical/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'xyz/openbmc_project/Sensor/Threshold/Critical__cpp'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Sensor/Threshold/Critical.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/Sensor/Threshold/Critical',
+ ],
+)
+
diff --git a/gen/xyz/openbmc_project/Sensor/Threshold/Warning/meson.build b/gen/xyz/openbmc_project/Sensor/Threshold/Warning/meson.build
new file mode 100644
index 0000000..3b960b8
--- /dev/null
+++ b/gen/xyz/openbmc_project/Sensor/Threshold/Warning/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'xyz/openbmc_project/Sensor/Threshold/Warning__cpp'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Sensor/Threshold/Warning.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/Sensor/Threshold/Warning',
+ ],
+)
+
diff --git a/gen/xyz/openbmc_project/Sensor/Threshold/meson.build b/gen/xyz/openbmc_project/Sensor/Threshold/meson.build
new file mode 100644
index 0000000..6538b48
--- /dev/null
+++ b/gen/xyz/openbmc_project/Sensor/Threshold/meson.build
@@ -0,0 +1,44 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'xyz/openbmc_project/Sensor/Threshold__cpp'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Sensor/Threshold.errors.yaml', ],
+ output: [ 'error.cpp', 'error.hpp', ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'cpp',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Sensor/Threshold',
+ ],
+)
+
+subdir('Critical')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Sensor/Threshold/Critical__markdown'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Sensor/Threshold/Critical.interface.yaml', ],
+ output: [ 'Critical.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Sensor/Threshold/Critical',
+ ],
+ build_by_default: true,
+)
+
+subdir('Warning')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Sensor/Threshold/Warning__markdown'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Sensor/Threshold/Warning.interface.yaml', ],
+ output: [ 'Warning.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Sensor/Threshold/Warning',
+ ],
+ build_by_default: true,
+)
+
diff --git a/gen/xyz/openbmc_project/Sensor/Value/meson.build b/gen/xyz/openbmc_project/Sensor/Value/meson.build
new file mode 100644
index 0000000..49640e8
--- /dev/null
+++ b/gen/xyz/openbmc_project/Sensor/Value/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'xyz/openbmc_project/Sensor/Value__cpp'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Sensor/Value.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/Sensor/Value',
+ ],
+)
+
diff --git a/gen/xyz/openbmc_project/Sensor/meson.build b/gen/xyz/openbmc_project/Sensor/meson.build
new file mode 100644
index 0000000..b749c1a
--- /dev/null
+++ b/gen/xyz/openbmc_project/Sensor/meson.build
@@ -0,0 +1,46 @@
+# Generated file; do not modify.
+subdir('Device')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Sensor/Device__markdown'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Sensor/Device.errors.yaml', ],
+ output: [ 'Device.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Sensor/Device',
+ ],
+ build_by_default: true,
+)
+
+subdir('Threshold')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Sensor/Threshold__markdown'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Sensor/Threshold.errors.yaml', ],
+ output: [ 'Threshold.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Sensor/Threshold',
+ ],
+ build_by_default: true,
+)
+
+subdir('Value')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Sensor/Value__markdown'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Sensor/Value.interface.yaml', ],
+ output: [ 'Value.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Sensor/Value',
+ ],
+ build_by_default: true,
+)
+