meson: reformat with meson formatter
Apply the `meson format` results.
Change-Id: I10e74170cec30d5aca487f1082c635441ad238a7
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/meson.build b/meson.build
index 6237a6e..c7e9e16 100644
--- a/meson.build
+++ b/meson.build
@@ -1,11 +1,7 @@
project(
'post-code-manager',
'cpp',
- default_options: [
- 'cpp_std=c++23',
- 'warning_level=3',
- 'werror=true',
- ],
+ default_options: ['cpp_std=c++23', 'warning_level=3', 'werror=true'],
license: 'Apache-2.0',
meson_version: '>=1.1.1',
version: '1.0',
@@ -13,19 +9,26 @@
conf_data = configuration_data()
-conf_data.set_quoted('DBUS_OBJECT_NAME', '/xyz/openbmc_project/State/Boot/PostCode')
-conf_data.set_quoted('DBUS_INTF_NAME','xyz.openbmc_project.State.Boot.PostCode')
-conf_data.set_quoted('POSTCODE_DISPLAY_PATH', get_option('postcode-display-path'))
-conf_data.set('MAX_BOOT_CYCLE_COUNT',get_option('max-boot-cycle-count'))
-conf_data.set('MAX_POST_CODE_SIZE_PER_CYCLE',get_option('max-post-code-size-per-cycle'))
+conf_data.set_quoted(
+ 'DBUS_OBJECT_NAME',
+ '/xyz/openbmc_project/State/Boot/PostCode',
+)
+conf_data.set_quoted('DBUS_INTF_NAME', 'xyz.openbmc_project.State.Boot.PostCode')
+conf_data.set_quoted(
+ 'POSTCODE_DISPLAY_PATH',
+ get_option('postcode-display-path'),
+)
+conf_data.set('MAX_BOOT_CYCLE_COUNT', get_option('max-boot-cycle-count'))
+conf_data.set(
+ 'MAX_POST_CODE_SIZE_PER_CYCLE',
+ get_option('max-post-code-size-per-cycle'),
+)
if get_option('bios-post-code-log').allowed()
- add_project_arguments('-DENABLE_BIOS_POST_CODE_LOG',language: 'cpp')
+ add_project_arguments('-DENABLE_BIOS_POST_CODE_LOG', language: 'cpp')
endif
-configure_file(output: 'config.h',
- configuration: conf_data
-)
+configure_file(output: 'config.h', configuration: conf_data)
sdbusplus = dependency('sdbusplus')
phosphor_logging = dependency('phosphor-logging')
@@ -37,24 +40,31 @@
'cereal/cereal.hpp',
'cereal::specialize',
dependencies: cereal_dep,
- required: false)
+ required: false,
+)
if not has_cereal
cereal_opts = import('cmake').subproject_options()
- cereal_opts.add_cmake_defines({'BUILD_TESTS': 'OFF', 'SKIP_PERFORMANCE_COMPARISON': 'ON'})
+ cereal_opts.add_cmake_defines(
+ {'BUILD_TESTS': 'OFF', 'SKIP_PERFORMANCE_COMPARISON': 'ON'},
+ )
cereal_proj = import('cmake').subproject(
'cereal',
options: cereal_opts,
- required: false)
+ required: false,
+ )
assert(cereal_proj.found(), 'cereal is required')
cereal_dep = cereal_proj.dependency('cereal')
endif
systemd_system_unit_dir = dependency('systemd').get_variable(
- 'systemdsystemunitdir')
+ 'systemdsystemunitdir',
+)
-install_subdir('service_files',
- install_dir : systemd_system_unit_dir,
- strip_directory : true)
+install_subdir(
+ 'service_files',
+ install_dir: systemd_system_unit_dir,
+ strip_directory: true,
+)
executable(
'post-code-manager',
@@ -62,8 +72,10 @@
'src/post_code.cpp',
install: true,
dependencies: [
- sdbusplus,
- phosphor_dbus_interfaces,
- phosphor_logging,
- cereal_dep],
- include_directories: 'inc')
+ sdbusplus,
+ phosphor_dbus_interfaces,
+ phosphor_logging,
+ cereal_dep,
+ ],
+ include_directories: 'inc',
+)
diff --git a/meson.options b/meson.options
index 763b30f..2387b5d 100644
--- a/meson.options
+++ b/meson.options
@@ -1,4 +1,27 @@
-option('max-boot-cycle-count', type:'integer', min:1, max: 100, description: 'Maximum boot cycles for which the post codes should be persisted', value:100)
-option('bios-post-code-log', type:'feature',description:'bios post code log',value:'disabled')
-option('max-post-code-size-per-cycle', type:'integer', min:64, max: 1024, description: 'Maximum post code file size per cycle', value:512)
-option('postcode-display-path', type:'string', description:'The sys path for postcode display on debug card')
+option(
+ 'max-boot-cycle-count',
+ type: 'integer',
+ min: 1,
+ max: 100,
+ description: 'Maximum boot cycles for which the post codes should be persisted',
+ value: 100,
+)
+option(
+ 'bios-post-code-log',
+ type: 'feature',
+ description: 'bios post code log',
+ value: 'disabled',
+)
+option(
+ 'max-post-code-size-per-cycle',
+ type: 'integer',
+ min: 64,
+ max: 1024,
+ description: 'Maximum post code file size per cycle',
+ value: 512,
+)
+option(
+ 'postcode-display-path',
+ type: 'string',
+ description: 'The sys path for postcode display on debug card',
+)