build: support registry generation
sdbus++-gen-meson version 10 adds support for redfish registry
generation and greatly simplifies the install directives.
Regenerate the YAML meson files and modify the base meson.build
as necessary. Also, format meson.build with `meson format`.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I77586fca7742d5468803913cb45276ca57271655
diff --git a/gen/xyz/openbmc_project/Logging/Create/meson.build b/gen/xyz/openbmc_project/Logging/Create/meson.build
index 387dc38..f0f3c3a 100644
--- a/gen/xyz/openbmc_project/Logging/Create/meson.build
+++ b/gen/xyz/openbmc_project/Logging/Create/meson.build
@@ -1,8 +1,19 @@
# Generated file; do not modify.
+
+sdbusplus_current_path = 'xyz/openbmc_project/Logging/Create'
+
generated_sources += custom_target(
'xyz/openbmc_project/Logging/Create__cpp'.underscorify(),
- input: [ '../../../../../yaml/xyz/openbmc_project/Logging/Create.interface.yaml', ],
- output: [ 'common.hpp', 'server.cpp', 'server.hpp', 'aserver.hpp', 'client.hpp', ],
+ input: [
+ '../../../../../yaml/xyz/openbmc_project/Logging/Create.interface.yaml',
+ ],
+ output: [
+ 'common.hpp',
+ 'server.hpp',
+ 'server.cpp',
+ 'aserver.hpp',
+ 'client.hpp',
+ ],
depend_files: sdbusplusplus_depfiles,
command: [
sdbuspp_gen_meson_prog, '--command', 'cpp',
@@ -11,5 +22,14 @@
'--directory', meson.current_source_dir() / '../../../../../yaml',
'xyz/openbmc_project/Logging/Create',
],
+ install: should_generate_cpp,
+ install_dir: [
+ get_option('includedir') / sdbusplus_current_path,
+ get_option('includedir') / sdbusplus_current_path,
+ false,
+ get_option('includedir') / sdbusplus_current_path,
+ get_option('includedir') / sdbusplus_current_path,
+ ],
+ build_by_default: should_generate_cpp,
)
diff --git a/gen/xyz/openbmc_project/Logging/Entry/meson.build b/gen/xyz/openbmc_project/Logging/Entry/meson.build
index 4bda0d8..6a83f14 100644
--- a/gen/xyz/openbmc_project/Logging/Entry/meson.build
+++ b/gen/xyz/openbmc_project/Logging/Entry/meson.build
@@ -1,8 +1,19 @@
# Generated file; do not modify.
+
+sdbusplus_current_path = 'xyz/openbmc_project/Logging/Entry'
+
generated_sources += custom_target(
'xyz/openbmc_project/Logging/Entry__cpp'.underscorify(),
- input: [ '../../../../../yaml/xyz/openbmc_project/Logging/Entry.interface.yaml', ],
- output: [ 'common.hpp', 'server.cpp', 'server.hpp', 'aserver.hpp', 'client.hpp', ],
+ input: [
+ '../../../../../yaml/xyz/openbmc_project/Logging/Entry.interface.yaml',
+ ],
+ output: [
+ 'common.hpp',
+ 'server.hpp',
+ 'server.cpp',
+ 'aserver.hpp',
+ 'client.hpp',
+ ],
depend_files: sdbusplusplus_depfiles,
command: [
sdbuspp_gen_meson_prog, '--command', 'cpp',
@@ -11,5 +22,14 @@
'--directory', meson.current_source_dir() / '../../../../../yaml',
'xyz/openbmc_project/Logging/Entry',
],
+ install: should_generate_cpp,
+ install_dir: [
+ get_option('includedir') / sdbusplus_current_path,
+ get_option('includedir') / sdbusplus_current_path,
+ false,
+ get_option('includedir') / sdbusplus_current_path,
+ get_option('includedir') / sdbusplus_current_path,
+ ],
+ build_by_default: should_generate_cpp,
)
diff --git a/gen/xyz/openbmc_project/Logging/ErrorBlocksTransition/meson.build b/gen/xyz/openbmc_project/Logging/ErrorBlocksTransition/meson.build
index a4384f7..6a91f5b 100644
--- a/gen/xyz/openbmc_project/Logging/ErrorBlocksTransition/meson.build
+++ b/gen/xyz/openbmc_project/Logging/ErrorBlocksTransition/meson.build
@@ -1,8 +1,19 @@
# Generated file; do not modify.
+
+sdbusplus_current_path = 'xyz/openbmc_project/Logging/ErrorBlocksTransition'
+
generated_sources += custom_target(
'xyz/openbmc_project/Logging/ErrorBlocksTransition__cpp'.underscorify(),
- input: [ '../../../../../yaml/xyz/openbmc_project/Logging/ErrorBlocksTransition.interface.yaml', ],
- output: [ 'common.hpp', 'server.cpp', 'server.hpp', 'aserver.hpp', 'client.hpp', ],
+ input: [
+ '../../../../../yaml/xyz/openbmc_project/Logging/ErrorBlocksTransition.interface.yaml',
+ ],
+ output: [
+ 'common.hpp',
+ 'server.hpp',
+ 'server.cpp',
+ 'aserver.hpp',
+ 'client.hpp',
+ ],
depend_files: sdbusplusplus_depfiles,
command: [
sdbuspp_gen_meson_prog, '--command', 'cpp',
@@ -11,5 +22,14 @@
'--directory', meson.current_source_dir() / '../../../../../yaml',
'xyz/openbmc_project/Logging/ErrorBlocksTransition',
],
+ install: should_generate_cpp,
+ install_dir: [
+ get_option('includedir') / sdbusplus_current_path,
+ get_option('includedir') / sdbusplus_current_path,
+ false,
+ get_option('includedir') / sdbusplus_current_path,
+ get_option('includedir') / sdbusplus_current_path,
+ ],
+ build_by_default: should_generate_cpp,
)
diff --git a/gen/xyz/openbmc_project/Logging/Event/meson.build b/gen/xyz/openbmc_project/Logging/Event/meson.build
index 684029d..3914a8e 100644
--- a/gen/xyz/openbmc_project/Logging/Event/meson.build
+++ b/gen/xyz/openbmc_project/Logging/Event/meson.build
@@ -1,8 +1,19 @@
# Generated file; do not modify.
+
+sdbusplus_current_path = 'xyz/openbmc_project/Logging/Event'
+
generated_sources += custom_target(
'xyz/openbmc_project/Logging/Event__cpp'.underscorify(),
- input: [ '../../../../../yaml/xyz/openbmc_project/Logging/Event.interface.yaml', ],
- output: [ 'common.hpp', 'server.cpp', 'server.hpp', 'aserver.hpp', 'client.hpp', ],
+ input: [
+ '../../../../../yaml/xyz/openbmc_project/Logging/Event.interface.yaml',
+ ],
+ output: [
+ 'common.hpp',
+ 'server.hpp',
+ 'server.cpp',
+ 'aserver.hpp',
+ 'client.hpp',
+ ],
depend_files: sdbusplusplus_depfiles,
command: [
sdbuspp_gen_meson_prog, '--command', 'cpp',
@@ -11,5 +22,14 @@
'--directory', meson.current_source_dir() / '../../../../../yaml',
'xyz/openbmc_project/Logging/Event',
],
+ install: should_generate_cpp,
+ install_dir: [
+ get_option('includedir') / sdbusplus_current_path,
+ get_option('includedir') / sdbusplus_current_path,
+ false,
+ get_option('includedir') / sdbusplus_current_path,
+ get_option('includedir') / sdbusplus_current_path,
+ ],
+ build_by_default: should_generate_cpp,
)
diff --git a/gen/xyz/openbmc_project/Logging/IPMI/meson.build b/gen/xyz/openbmc_project/Logging/IPMI/meson.build
index e3bfd63..117046c 100644
--- a/gen/xyz/openbmc_project/Logging/IPMI/meson.build
+++ b/gen/xyz/openbmc_project/Logging/IPMI/meson.build
@@ -1,8 +1,19 @@
# Generated file; do not modify.
+
+sdbusplus_current_path = 'xyz/openbmc_project/Logging/IPMI'
+
generated_sources += custom_target(
'xyz/openbmc_project/Logging/IPMI__cpp'.underscorify(),
- input: [ '../../../../../yaml/xyz/openbmc_project/Logging/IPMI.interface.yaml', ],
- output: [ 'common.hpp', 'server.cpp', 'server.hpp', 'aserver.hpp', 'client.hpp', ],
+ input: [
+ '../../../../../yaml/xyz/openbmc_project/Logging/IPMI.interface.yaml',
+ ],
+ output: [
+ 'common.hpp',
+ 'server.hpp',
+ 'server.cpp',
+ 'aserver.hpp',
+ 'client.hpp',
+ ],
depend_files: sdbusplusplus_depfiles,
command: [
sdbuspp_gen_meson_prog, '--command', 'cpp',
@@ -11,5 +22,14 @@
'--directory', meson.current_source_dir() / '../../../../../yaml',
'xyz/openbmc_project/Logging/IPMI',
],
+ install: should_generate_cpp,
+ install_dir: [
+ get_option('includedir') / sdbusplus_current_path,
+ get_option('includedir') / sdbusplus_current_path,
+ false,
+ get_option('includedir') / sdbusplus_current_path,
+ get_option('includedir') / sdbusplus_current_path,
+ ],
+ build_by_default: should_generate_cpp,
)
diff --git a/gen/xyz/openbmc_project/Logging/SEL/meson.build b/gen/xyz/openbmc_project/Logging/SEL/meson.build
index e9dc8c6..e8a0bb5 100644
--- a/gen/xyz/openbmc_project/Logging/SEL/meson.build
+++ b/gen/xyz/openbmc_project/Logging/SEL/meson.build
@@ -1,8 +1,16 @@
# Generated file; do not modify.
+
+sdbusplus_current_path = 'xyz/openbmc_project/Logging/SEL'
+
generated_sources += custom_target(
'xyz/openbmc_project/Logging/SEL__cpp'.underscorify(),
- input: [ '../../../../../yaml/xyz/openbmc_project/Logging/SEL.errors.yaml', ],
- output: [ 'error.cpp', 'error.hpp', ],
+ input: [
+ '../../../../../yaml/xyz/openbmc_project/Logging/SEL.errors.yaml',
+ ],
+ output: [
+ 'error.cpp',
+ 'error.hpp',
+ ],
depend_files: sdbusplusplus_depfiles,
command: [
sdbuspp_gen_meson_prog, '--command', 'cpp',
@@ -11,5 +19,11 @@
'--directory', meson.current_source_dir() / '../../../../../yaml',
'xyz/openbmc_project/Logging/SEL',
],
+ install: should_generate_cpp,
+ install_dir: [
+ false,
+ get_option('includedir') / sdbusplus_current_path,
+ ],
+ build_by_default: should_generate_cpp,
)
diff --git a/gen/xyz/openbmc_project/Logging/Settings/meson.build b/gen/xyz/openbmc_project/Logging/Settings/meson.build
index 1fba589..da4aefc 100644
--- a/gen/xyz/openbmc_project/Logging/Settings/meson.build
+++ b/gen/xyz/openbmc_project/Logging/Settings/meson.build
@@ -1,8 +1,19 @@
# Generated file; do not modify.
+
+sdbusplus_current_path = 'xyz/openbmc_project/Logging/Settings'
+
generated_sources += custom_target(
'xyz/openbmc_project/Logging/Settings__cpp'.underscorify(),
- input: [ '../../../../../yaml/xyz/openbmc_project/Logging/Settings.interface.yaml', ],
- output: [ 'common.hpp', 'server.cpp', 'server.hpp', 'aserver.hpp', 'client.hpp', ],
+ input: [
+ '../../../../../yaml/xyz/openbmc_project/Logging/Settings.interface.yaml',
+ ],
+ output: [
+ 'common.hpp',
+ 'server.hpp',
+ 'server.cpp',
+ 'aserver.hpp',
+ 'client.hpp',
+ ],
depend_files: sdbusplusplus_depfiles,
command: [
sdbuspp_gen_meson_prog, '--command', 'cpp',
@@ -11,5 +22,14 @@
'--directory', meson.current_source_dir() / '../../../../../yaml',
'xyz/openbmc_project/Logging/Settings',
],
+ install: should_generate_cpp,
+ install_dir: [
+ get_option('includedir') / sdbusplus_current_path,
+ get_option('includedir') / sdbusplus_current_path,
+ false,
+ get_option('includedir') / sdbusplus_current_path,
+ get_option('includedir') / sdbusplus_current_path,
+ ],
+ build_by_default: should_generate_cpp,
)
diff --git a/gen/xyz/openbmc_project/Logging/Syslog/Destination/Mail/Create/meson.build b/gen/xyz/openbmc_project/Logging/Syslog/Destination/Mail/Create/meson.build
index 7594e6c..863950c 100644
--- a/gen/xyz/openbmc_project/Logging/Syslog/Destination/Mail/Create/meson.build
+++ b/gen/xyz/openbmc_project/Logging/Syslog/Destination/Mail/Create/meson.build
@@ -1,8 +1,19 @@
# Generated file; do not modify.
+
+sdbusplus_current_path = 'xyz/openbmc_project/Logging/Syslog/Destination/Mail/Create'
+
generated_sources += custom_target(
'xyz/openbmc_project/Logging/Syslog/Destination/Mail/Create__cpp'.underscorify(),
- input: [ '../../../../../../../../yaml/xyz/openbmc_project/Logging/Syslog/Destination/Mail/Create.interface.yaml', ],
- output: [ 'common.hpp', 'server.cpp', 'server.hpp', 'aserver.hpp', 'client.hpp', ],
+ input: [
+ '../../../../../../../../yaml/xyz/openbmc_project/Logging/Syslog/Destination/Mail/Create.interface.yaml',
+ ],
+ output: [
+ 'common.hpp',
+ 'server.hpp',
+ 'server.cpp',
+ 'aserver.hpp',
+ 'client.hpp',
+ ],
depend_files: sdbusplusplus_depfiles,
command: [
sdbuspp_gen_meson_prog, '--command', 'cpp',
@@ -11,5 +22,14 @@
'--directory', meson.current_source_dir() / '../../../../../../../../yaml',
'xyz/openbmc_project/Logging/Syslog/Destination/Mail/Create',
],
+ install: should_generate_cpp,
+ install_dir: [
+ get_option('includedir') / sdbusplus_current_path,
+ get_option('includedir') / sdbusplus_current_path,
+ false,
+ get_option('includedir') / sdbusplus_current_path,
+ get_option('includedir') / sdbusplus_current_path,
+ ],
+ build_by_default: should_generate_cpp,
)
diff --git a/gen/xyz/openbmc_project/Logging/Syslog/Destination/Mail/Entry/meson.build b/gen/xyz/openbmc_project/Logging/Syslog/Destination/Mail/Entry/meson.build
index 3d468a2..fe87f87 100644
--- a/gen/xyz/openbmc_project/Logging/Syslog/Destination/Mail/Entry/meson.build
+++ b/gen/xyz/openbmc_project/Logging/Syslog/Destination/Mail/Entry/meson.build
@@ -1,8 +1,19 @@
# Generated file; do not modify.
+
+sdbusplus_current_path = 'xyz/openbmc_project/Logging/Syslog/Destination/Mail/Entry'
+
generated_sources += custom_target(
'xyz/openbmc_project/Logging/Syslog/Destination/Mail/Entry__cpp'.underscorify(),
- input: [ '../../../../../../../../yaml/xyz/openbmc_project/Logging/Syslog/Destination/Mail/Entry.interface.yaml', ],
- output: [ 'common.hpp', 'server.cpp', 'server.hpp', 'aserver.hpp', 'client.hpp', ],
+ input: [
+ '../../../../../../../../yaml/xyz/openbmc_project/Logging/Syslog/Destination/Mail/Entry.interface.yaml',
+ ],
+ output: [
+ 'common.hpp',
+ 'server.hpp',
+ 'server.cpp',
+ 'aserver.hpp',
+ 'client.hpp',
+ ],
depend_files: sdbusplusplus_depfiles,
command: [
sdbuspp_gen_meson_prog, '--command', 'cpp',
@@ -11,5 +22,14 @@
'--directory', meson.current_source_dir() / '../../../../../../../../yaml',
'xyz/openbmc_project/Logging/Syslog/Destination/Mail/Entry',
],
+ install: should_generate_cpp,
+ install_dir: [
+ get_option('includedir') / sdbusplus_current_path,
+ get_option('includedir') / sdbusplus_current_path,
+ false,
+ get_option('includedir') / sdbusplus_current_path,
+ get_option('includedir') / sdbusplus_current_path,
+ ],
+ build_by_default: should_generate_cpp,
)
diff --git a/gen/xyz/openbmc_project/Logging/Syslog/Destination/Mail/meson.build b/gen/xyz/openbmc_project/Logging/Syslog/Destination/Mail/meson.build
index c10a80b..77ed2f3 100644
--- a/gen/xyz/openbmc_project/Logging/Syslog/Destination/Mail/meson.build
+++ b/gen/xyz/openbmc_project/Logging/Syslog/Destination/Mail/meson.build
@@ -1,8 +1,21 @@
# Generated file; do not modify.
+subdir('Create')
+subdir('Entry')
+
+sdbusplus_current_path = 'xyz/openbmc_project/Logging/Syslog/Destination/Mail'
+
generated_sources += custom_target(
'xyz/openbmc_project/Logging/Syslog/Destination/Mail__cpp'.underscorify(),
- input: [ '../../../../../../../yaml/xyz/openbmc_project/Logging/Syslog/Destination/Mail.interface.yaml', ],
- output: [ 'common.hpp', 'server.cpp', 'server.hpp', 'aserver.hpp', 'client.hpp', ],
+ input: [
+ '../../../../../../../yaml/xyz/openbmc_project/Logging/Syslog/Destination/Mail.interface.yaml',
+ ],
+ output: [
+ 'common.hpp',
+ 'server.hpp',
+ 'server.cpp',
+ 'aserver.hpp',
+ 'client.hpp',
+ ],
depend_files: sdbusplusplus_depfiles,
command: [
sdbuspp_gen_meson_prog, '--command', 'cpp',
@@ -11,10 +24,18 @@
'--directory', meson.current_source_dir() / '../../../../../../../yaml',
'xyz/openbmc_project/Logging/Syslog/Destination/Mail',
],
+ install: should_generate_cpp,
+ install_dir: [
+ get_option('includedir') / sdbusplus_current_path,
+ get_option('includedir') / sdbusplus_current_path,
+ false,
+ get_option('includedir') / sdbusplus_current_path,
+ get_option('includedir') / sdbusplus_current_path,
+ ],
+ build_by_default: should_generate_cpp,
)
-subdir('Create')
-generated_others += custom_target(
+generated_markdown += custom_target(
'xyz/openbmc_project/Logging/Syslog/Destination/Mail/Create__markdown'.underscorify(),
input: [ '../../../../../../../yaml/xyz/openbmc_project/Logging/Syslog/Destination/Mail/Create.interface.yaml', ],
output: [ 'Create.md' ],
@@ -26,10 +47,12 @@
'--directory', meson.current_source_dir() / '../../../../../../../yaml',
'xyz/openbmc_project/Logging/Syslog/Destination/Mail/Create',
],
+ install: should_generate_markdown,
+ install_dir: [inst_markdown_dir / sdbusplus_current_path],
+ build_by_default: should_generate_markdown,
)
-subdir('Entry')
-generated_others += custom_target(
+generated_markdown += custom_target(
'xyz/openbmc_project/Logging/Syslog/Destination/Mail/Entry__markdown'.underscorify(),
input: [ '../../../../../../../yaml/xyz/openbmc_project/Logging/Syslog/Destination/Mail/Entry.interface.yaml', ],
output: [ 'Entry.md' ],
@@ -41,5 +64,8 @@
'--directory', meson.current_source_dir() / '../../../../../../../yaml',
'xyz/openbmc_project/Logging/Syslog/Destination/Mail/Entry',
],
+ install: should_generate_markdown,
+ install_dir: [inst_markdown_dir / sdbusplus_current_path],
+ build_by_default: should_generate_markdown,
)
diff --git a/gen/xyz/openbmc_project/Logging/Syslog/Destination/meson.build b/gen/xyz/openbmc_project/Logging/Syslog/Destination/meson.build
index a777078..3a1f32a 100644
--- a/gen/xyz/openbmc_project/Logging/Syslog/Destination/meson.build
+++ b/gen/xyz/openbmc_project/Logging/Syslog/Destination/meson.build
@@ -1,6 +1,9 @@
# Generated file; do not modify.
subdir('Mail')
-generated_others += custom_target(
+
+sdbusplus_current_path = 'xyz/openbmc_project/Logging/Syslog/Destination'
+
+generated_markdown += custom_target(
'xyz/openbmc_project/Logging/Syslog/Destination/Mail__markdown'.underscorify(),
input: [ '../../../../../../yaml/xyz/openbmc_project/Logging/Syslog/Destination/Mail.interface.yaml', ],
output: [ 'Mail.md' ],
@@ -12,5 +15,8 @@
'--directory', meson.current_source_dir() / '../../../../../../yaml',
'xyz/openbmc_project/Logging/Syslog/Destination/Mail',
],
+ install: should_generate_markdown,
+ install_dir: [inst_markdown_dir / sdbusplus_current_path],
+ build_by_default: should_generate_markdown,
)
diff --git a/gen/xyz/openbmc_project/Logging/meson.build b/gen/xyz/openbmc_project/Logging/meson.build
index 39baab1..69ff763 100644
--- a/gen/xyz/openbmc_project/Logging/meson.build
+++ b/gen/xyz/openbmc_project/Logging/meson.build
@@ -1,8 +1,24 @@
# Generated file; do not modify.
+subdir('Create')
+subdir('Entry')
+subdir('ErrorBlocksTransition')
+subdir('Event')
+subdir('IPMI')
+subdir('SEL')
+subdir('Settings')
+subdir('Syslog')
+
+sdbusplus_current_path = 'xyz/openbmc_project/Logging'
+
generated_sources += custom_target(
'xyz/openbmc_project/Logging__cpp'.underscorify(),
- input: [ '../../../../yaml/xyz/openbmc_project/Logging.events.yaml', ],
- output: [ 'event.cpp', 'event.hpp', ],
+ input: [
+ '../../../../yaml/xyz/openbmc_project/Logging.events.yaml',
+ ],
+ output: [
+ 'event.cpp',
+ 'event.hpp',
+ ],
depend_files: sdbusplusplus_depfiles,
command: [
sdbuspp_gen_meson_prog, '--command', 'cpp',
@@ -11,10 +27,15 @@
'--directory', meson.current_source_dir() / '../../../../yaml',
'xyz/openbmc_project/Logging',
],
+ install: should_generate_cpp,
+ install_dir: [
+ false,
+ get_option('includedir') / sdbusplus_current_path,
+ ],
+ build_by_default: should_generate_cpp,
)
-subdir('Create')
-generated_others += custom_target(
+generated_markdown += custom_target(
'xyz/openbmc_project/Logging/Create__markdown'.underscorify(),
input: [ '../../../../yaml/xyz/openbmc_project/Logging/Create.interface.yaml', ],
output: [ 'Create.md' ],
@@ -26,10 +47,12 @@
'--directory', meson.current_source_dir() / '../../../../yaml',
'xyz/openbmc_project/Logging/Create',
],
+ install: should_generate_markdown,
+ install_dir: [inst_markdown_dir / sdbusplus_current_path],
+ build_by_default: should_generate_markdown,
)
-subdir('Entry')
-generated_others += custom_target(
+generated_markdown += custom_target(
'xyz/openbmc_project/Logging/Entry__markdown'.underscorify(),
input: [ '../../../../yaml/xyz/openbmc_project/Logging/Entry.interface.yaml', ],
output: [ 'Entry.md' ],
@@ -41,10 +64,12 @@
'--directory', meson.current_source_dir() / '../../../../yaml',
'xyz/openbmc_project/Logging/Entry',
],
+ install: should_generate_markdown,
+ install_dir: [inst_markdown_dir / sdbusplus_current_path],
+ build_by_default: should_generate_markdown,
)
-subdir('ErrorBlocksTransition')
-generated_others += custom_target(
+generated_markdown += custom_target(
'xyz/openbmc_project/Logging/ErrorBlocksTransition__markdown'.underscorify(),
input: [ '../../../../yaml/xyz/openbmc_project/Logging/ErrorBlocksTransition.interface.yaml', ],
output: [ 'ErrorBlocksTransition.md' ],
@@ -56,10 +81,12 @@
'--directory', meson.current_source_dir() / '../../../../yaml',
'xyz/openbmc_project/Logging/ErrorBlocksTransition',
],
+ install: should_generate_markdown,
+ install_dir: [inst_markdown_dir / sdbusplus_current_path],
+ build_by_default: should_generate_markdown,
)
-subdir('Event')
-generated_others += custom_target(
+generated_markdown += custom_target(
'xyz/openbmc_project/Logging/Event__markdown'.underscorify(),
input: [ '../../../../yaml/xyz/openbmc_project/Logging/Event.interface.yaml', ],
output: [ 'Event.md' ],
@@ -71,10 +98,12 @@
'--directory', meson.current_source_dir() / '../../../../yaml',
'xyz/openbmc_project/Logging/Event',
],
+ install: should_generate_markdown,
+ install_dir: [inst_markdown_dir / sdbusplus_current_path],
+ build_by_default: should_generate_markdown,
)
-subdir('IPMI')
-generated_others += custom_target(
+generated_markdown += custom_target(
'xyz/openbmc_project/Logging/IPMI__markdown'.underscorify(),
input: [ '../../../../yaml/xyz/openbmc_project/Logging/IPMI.interface.yaml', ],
output: [ 'IPMI.md' ],
@@ -86,10 +115,12 @@
'--directory', meson.current_source_dir() / '../../../../yaml',
'xyz/openbmc_project/Logging/IPMI',
],
+ install: should_generate_markdown,
+ install_dir: [inst_markdown_dir / sdbusplus_current_path],
+ build_by_default: should_generate_markdown,
)
-subdir('SEL')
-generated_others += custom_target(
+generated_markdown += custom_target(
'xyz/openbmc_project/Logging/SEL__markdown'.underscorify(),
input: [ '../../../../yaml/xyz/openbmc_project/Logging/SEL.errors.yaml', ],
output: [ 'SEL.md' ],
@@ -101,10 +132,12 @@
'--directory', meson.current_source_dir() / '../../../../yaml',
'xyz/openbmc_project/Logging/SEL',
],
+ install: should_generate_markdown,
+ install_dir: [inst_markdown_dir / sdbusplus_current_path],
+ build_by_default: should_generate_markdown,
)
-subdir('Settings')
-generated_others += custom_target(
+generated_markdown += custom_target(
'xyz/openbmc_project/Logging/Settings__markdown'.underscorify(),
input: [ '../../../../yaml/xyz/openbmc_project/Logging/Settings.interface.yaml', ],
output: [ 'Settings.md' ],
@@ -116,6 +149,8 @@
'--directory', meson.current_source_dir() / '../../../../yaml',
'xyz/openbmc_project/Logging/Settings',
],
+ install: should_generate_markdown,
+ install_dir: [inst_markdown_dir / sdbusplus_current_path],
+ build_by_default: should_generate_markdown,
)
-subdir('Syslog')