meson: reformat with meson formatter
Apply the `meson format` results.
Change-Id: Iab695ec61b6f2fea5566db69824c3ec80cedf373
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/meson.build b/meson.build
index d382a49..a94cb4b 100644
--- a/meson.build
+++ b/meson.build
@@ -1,61 +1,56 @@
project(
- 'phosphor-sel-logger',
- 'cpp',
- version: '0.1',
- meson_version: '>=1.1.1',
- default_options: [
- 'werror=true',
- 'warning_level=3',
- 'cpp_std=c++23',
- ])
+ 'phosphor-sel-logger',
+ 'cpp',
+ version: '0.1',
+ meson_version: '>=1.1.1',
+ default_options: ['werror=true', 'warning_level=3', 'cpp_std=c++23'],
+)
cpp_args = []
-deps = [
- dependency('sdbusplus'),
- dependency('libsystemd'),
- dependency('boost'),
-]
+deps = [dependency('sdbusplus'), dependency('libsystemd'), dependency('boost')]
if get_option('log-threshold')
- cpp_args += '-DSEL_LOGGER_MONITOR_THRESHOLD_EVENTS'
+ cpp_args += '-DSEL_LOGGER_MONITOR_THRESHOLD_EVENTS'
endif
if get_option('log-pulse')
- cpp_args += '-DREDFISH_LOG_MONITOR_PULSE_EVENTS'
+ cpp_args += '-DREDFISH_LOG_MONITOR_PULSE_EVENTS'
endif
if get_option('log-watchdog')
- cpp_args += '-DSEL_LOGGER_MONITOR_WATCHDOG_EVENTS'
+ cpp_args += '-DSEL_LOGGER_MONITOR_WATCHDOG_EVENTS'
endif
if get_option('log-alarm')
- cpp_args += '-DSEL_LOGGER_MONITOR_THRESHOLD_ALARM_EVENTS'
+ cpp_args += '-DSEL_LOGGER_MONITOR_THRESHOLD_ALARM_EVENTS'
endif
if get_option('log-host')
- cpp_args += '-DSEL_LOGGER_MONITOR_HOST_ERROR_EVENTS'
+ cpp_args += '-DSEL_LOGGER_MONITOR_HOST_ERROR_EVENTS'
endif
if get_option('send-to-logger')
- cpp_args += '-DSEL_LOGGER_SEND_TO_LOGGING_SERVICE'
+ cpp_args += '-DSEL_LOGGER_SEND_TO_LOGGING_SERVICE'
- deps += dependency('phosphor-logging')
+ deps += dependency('phosphor-logging')
endif
if get_option('sel-delete')
- cpp_args += '-DSEL_LOGGER_ENABLE_SEL_DELETE'
+ cpp_args += '-DSEL_LOGGER_ENABLE_SEL_DELETE'
- deps += dependency('phosphor-dbus-interfaces')
+ deps += dependency('phosphor-dbus-interfaces')
endif
executable(
- 'sel-logger',
- 'src/sel_logger.cpp',
- include_directories: include_directories('include'),
- implicit_include_directories: false,
- cpp_args: cpp_args,
- dependencies: deps,
- install: true,
- install_dir: get_option('bindir'))
+ 'sel-logger',
+ 'src/sel_logger.cpp',
+ include_directories: include_directories('include'),
+ implicit_include_directories: false,
+ cpp_args: cpp_args,
+ dependencies: deps,
+ install: true,
+ install_dir: get_option('bindir'),
+)
systemd = dependency('systemd')
if systemd.found()
- install_data(
- 'service_files/xyz.openbmc_project.Logging.IPMI.service',
- install_dir: systemd.get_variable('systemdsystemunitdir'))
+ install_data(
+ 'service_files/xyz.openbmc_project.Logging.IPMI.service',
+ install_dir: systemd.get_variable('systemdsystemunitdir'),
+ )
endif
diff --git a/meson.options b/meson.options
index 0ca3214..82bd69d 100644
--- a/meson.options
+++ b/meson.options
@@ -1,14 +1,35 @@
-option('log-threshold', type: 'boolean',
- description: 'Automatically log SEL records for threshold sensor events')
-option('log-pulse', type: 'boolean',
- description: 'Automatically log events to Redfish for pulse type assert-deassert sensor events')
-option('log-watchdog', type: 'boolean',
- description: 'Automatically log SEL records for watchdog events')
-option('log-alarm', type: 'boolean',
- description: 'Monitor threshold alarm signals and log SEL records for threshold sensor events')
-option('log-host', type: 'boolean',
- description: 'Automatically log SEL records for host error events')
-option('send-to-logger', type: 'boolean',
- description: 'Automatically log events to Redfish for pulse type assert-deassert sensor events')
-option('sel-delete', type: 'boolean',
- description: 'Enables ability to delete SEL entries given a record ID')
+option(
+ 'log-threshold',
+ type: 'boolean',
+ description: 'Automatically log SEL records for threshold sensor events',
+)
+option(
+ 'log-pulse',
+ type: 'boolean',
+ description: 'Automatically log events to Redfish for pulse type assert-deassert sensor events',
+)
+option(
+ 'log-watchdog',
+ type: 'boolean',
+ description: 'Automatically log SEL records for watchdog events',
+)
+option(
+ 'log-alarm',
+ type: 'boolean',
+ description: 'Monitor threshold alarm signals and log SEL records for threshold sensor events',
+)
+option(
+ 'log-host',
+ type: 'boolean',
+ description: 'Automatically log SEL records for host error events',
+)
+option(
+ 'send-to-logger',
+ type: 'boolean',
+ description: 'Automatically log events to Redfish for pulse type assert-deassert sensor events',
+)
+option(
+ 'sel-delete',
+ type: 'boolean',
+ description: 'Enables ability to delete SEL entries given a record ID',
+)
diff --git a/subprojects/packagefiles/boost/meson.build b/subprojects/packagefiles/boost/meson.build
index 2caabf5..6935475 100644
--- a/subprojects/packagefiles/boost/meson.build
+++ b/subprojects/packagefiles/boost/meson.build
@@ -1,11 +1,5 @@
-project('boost',
- 'cpp',
- version : '1.84.0',
- license : 'Boost'
-)
+project('boost', 'cpp', version: '1.84.0', license: 'Boost')
-boost_dep = declare_dependency(
- include_directories : include_directories('.'),
-)
+boost_dep = declare_dependency(include_directories: include_directories('.'))
meson.override_dependency('boost', boost_dep)