regenerate-meson: enable meson formatting
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I319d9128cf1aad69e1d0896c40326448bd856dbc
diff --git a/gen/meson.build b/gen/meson.build
index ef27aee..f2ecd59 100644
--- a/gen/meson.build
+++ b/gen/meson.build
@@ -3,13 +3,15 @@
sdbuspp_gen_meson_prog,
'--version',
check: true,
-).stdout().strip().split('\n')[0]
+).stdout().strip().split(
+ '\n',
+)[0]
if sdbuspp_gen_meson_ver != 'sdbus++-gen-meson version 10'
warning('Generated meson files from wrong version of sdbus++-gen-meson.')
warning(
'Expected "sdbus++-gen-meson version 10", got:',
- sdbuspp_gen_meson_ver
+ sdbuspp_gen_meson_ver,
)
endif
diff --git a/gen/regenerate-meson b/gen/regenerate-meson
index e2a02c4..556f6e3 100755
--- a/gen/regenerate-meson
+++ b/gen/regenerate-meson
@@ -1,4 +1,5 @@
#!/bin/bash
cd "$(dirname "$0")" || exit
export PATH="$PWD/../subprojects/sdbusplus/tools:$PATH"
-exec sdbus++-gen-meson --command meson --directory ../yaml --output .
+sdbus++-gen-meson --command meson --directory ../yaml --output .
+find . -name "meson.build" -exec meson format -i {} +
diff --git a/gen/xyz/openbmc_project/Network/IP/Create/meson.build b/gen/xyz/openbmc_project/Network/IP/Create/meson.build
index a1d4857..10f75da 100644
--- a/gen/xyz/openbmc_project/Network/IP/Create/meson.build
+++ b/gen/xyz/openbmc_project/Network/IP/Create/meson.build
@@ -16,10 +16,15 @@
],
depend_files: sdbusplusplus_depfiles,
command: [
- sdbuspp_gen_meson_prog, '--command', 'cpp',
- '--output', meson.current_build_dir(),
- '--tool', sdbusplusplus_prog,
- '--directory', meson.current_source_dir() / '../../../../../../yaml',
+ sdbuspp_gen_meson_prog,
+ '--command',
+ 'cpp',
+ '--output',
+ meson.current_build_dir(),
+ '--tool',
+ sdbusplusplus_prog,
+ '--directory',
+ meson.current_source_dir() / '../../../../../../yaml',
'xyz/openbmc_project/Network/IP/Create',
],
install: should_generate_cpp,
diff --git a/gen/xyz/openbmc_project/Network/IP/meson.build b/gen/xyz/openbmc_project/Network/IP/meson.build
index 7eaabe6..c756443 100644
--- a/gen/xyz/openbmc_project/Network/IP/meson.build
+++ b/gen/xyz/openbmc_project/Network/IP/meson.build
@@ -5,14 +5,21 @@
generated_markdown += custom_target(
'xyz/openbmc_project/Network/IP/Create__markdown'.underscorify(),
- input: [ '../../../../../yaml/xyz/openbmc_project/Network/IP/Create.interface.yaml', ],
- output: [ 'Create.md' ],
+ input: [
+ '../../../../../yaml/xyz/openbmc_project/Network/IP/Create.interface.yaml',
+ ],
+ output: ['Create.md'],
depend_files: sdbusplusplus_depfiles,
command: [
- sdbuspp_gen_meson_prog, '--command', 'markdown',
- '--output', meson.current_build_dir(),
- '--tool', sdbusplusplus_prog,
- '--directory', meson.current_source_dir() / '../../../../../yaml',
+ sdbuspp_gen_meson_prog,
+ '--command',
+ 'markdown',
+ '--output',
+ meson.current_build_dir(),
+ '--tool',
+ sdbusplusplus_prog,
+ '--directory',
+ meson.current_source_dir() / '../../../../../yaml',
'xyz/openbmc_project/Network/IP/Create',
],
install: should_generate_markdown,
diff --git a/gen/xyz/openbmc_project/Network/Neighbor/CreateStatic/meson.build b/gen/xyz/openbmc_project/Network/Neighbor/CreateStatic/meson.build
index 2d86666..fbb07c8 100644
--- a/gen/xyz/openbmc_project/Network/Neighbor/CreateStatic/meson.build
+++ b/gen/xyz/openbmc_project/Network/Neighbor/CreateStatic/meson.build
@@ -16,10 +16,15 @@
],
depend_files: sdbusplusplus_depfiles,
command: [
- sdbuspp_gen_meson_prog, '--command', 'cpp',
- '--output', meson.current_build_dir(),
- '--tool', sdbusplusplus_prog,
- '--directory', meson.current_source_dir() / '../../../../../../yaml',
+ sdbuspp_gen_meson_prog,
+ '--command',
+ 'cpp',
+ '--output',
+ meson.current_build_dir(),
+ '--tool',
+ sdbusplusplus_prog,
+ '--directory',
+ meson.current_source_dir() / '../../../../../../yaml',
'xyz/openbmc_project/Network/Neighbor/CreateStatic',
],
install: should_generate_cpp,
diff --git a/gen/xyz/openbmc_project/Network/Neighbor/meson.build b/gen/xyz/openbmc_project/Network/Neighbor/meson.build
index be1d632..49fd881 100644
--- a/gen/xyz/openbmc_project/Network/Neighbor/meson.build
+++ b/gen/xyz/openbmc_project/Network/Neighbor/meson.build
@@ -5,14 +5,21 @@
generated_markdown += custom_target(
'xyz/openbmc_project/Network/Neighbor/CreateStatic__markdown'.underscorify(),
- input: [ '../../../../../yaml/xyz/openbmc_project/Network/Neighbor/CreateStatic.interface.yaml', ],
- output: [ 'CreateStatic.md' ],
+ input: [
+ '../../../../../yaml/xyz/openbmc_project/Network/Neighbor/CreateStatic.interface.yaml',
+ ],
+ output: ['CreateStatic.md'],
depend_files: sdbusplusplus_depfiles,
command: [
- sdbuspp_gen_meson_prog, '--command', 'markdown',
- '--output', meson.current_build_dir(),
- '--tool', sdbusplusplus_prog,
- '--directory', meson.current_source_dir() / '../../../../../yaml',
+ sdbuspp_gen_meson_prog,
+ '--command',
+ 'markdown',
+ '--output',
+ meson.current_build_dir(),
+ '--tool',
+ sdbusplusplus_prog,
+ '--directory',
+ meson.current_source_dir() / '../../../../../yaml',
'xyz/openbmc_project/Network/Neighbor/CreateStatic',
],
install: should_generate_markdown,
diff --git a/gen/xyz/openbmc_project/Network/VLAN/Create/meson.build b/gen/xyz/openbmc_project/Network/VLAN/Create/meson.build
index c5ccdc2..9d8baf7 100644
--- a/gen/xyz/openbmc_project/Network/VLAN/Create/meson.build
+++ b/gen/xyz/openbmc_project/Network/VLAN/Create/meson.build
@@ -16,10 +16,15 @@
],
depend_files: sdbusplusplus_depfiles,
command: [
- sdbuspp_gen_meson_prog, '--command', 'cpp',
- '--output', meson.current_build_dir(),
- '--tool', sdbusplusplus_prog,
- '--directory', meson.current_source_dir() / '../../../../../../yaml',
+ sdbuspp_gen_meson_prog,
+ '--command',
+ 'cpp',
+ '--output',
+ meson.current_build_dir(),
+ '--tool',
+ sdbusplusplus_prog,
+ '--directory',
+ meson.current_source_dir() / '../../../../../../yaml',
'xyz/openbmc_project/Network/VLAN/Create',
],
install: should_generate_cpp,
diff --git a/gen/xyz/openbmc_project/Network/VLAN/meson.build b/gen/xyz/openbmc_project/Network/VLAN/meson.build
index 649870a..4483f48 100644
--- a/gen/xyz/openbmc_project/Network/VLAN/meson.build
+++ b/gen/xyz/openbmc_project/Network/VLAN/meson.build
@@ -5,14 +5,21 @@
generated_markdown += custom_target(
'xyz/openbmc_project/Network/VLAN/Create__markdown'.underscorify(),
- input: [ '../../../../../yaml/xyz/openbmc_project/Network/VLAN/Create.interface.yaml', ],
- output: [ 'Create.md' ],
+ input: [
+ '../../../../../yaml/xyz/openbmc_project/Network/VLAN/Create.interface.yaml',
+ ],
+ output: ['Create.md'],
depend_files: sdbusplusplus_depfiles,
command: [
- sdbuspp_gen_meson_prog, '--command', 'markdown',
- '--output', meson.current_build_dir(),
- '--tool', sdbusplusplus_prog,
- '--directory', meson.current_source_dir() / '../../../../../yaml',
+ sdbuspp_gen_meson_prog,
+ '--command',
+ 'markdown',
+ '--output',
+ meson.current_build_dir(),
+ '--tool',
+ sdbusplusplus_prog,
+ '--directory',
+ meson.current_source_dir() / '../../../../../yaml',
'xyz/openbmc_project/Network/VLAN/Create',
],
install: should_generate_markdown,