meson: reformat with meson formatter
Apply the `meson format` results.
Change-Id: I3d64de176b93f505e36517d4747c48edad8898b7
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/meson.build b/meson.build
index 0bafc2b..55e7edb 100644
--- a/meson.build
+++ b/meson.build
@@ -1,11 +1,7 @@
project(
'phosphor-hwmon',
'cpp',
- default_options: [
- 'warning_level=3',
- 'werror=true',
- 'cpp_std=c++23'
- ],
+ default_options: ['warning_level=3', 'werror=true', 'cpp_std=c++23'],
license: 'Apache-2.0',
version: '1.0',
meson_version: '>=1.1.1',
@@ -19,9 +15,7 @@
sysfs_headers = include_directories('.')
-sysfs_deps = [
- dependency('stdplus'),
-]
+sysfs_deps = [dependency('stdplus')]
sysfs_lib = static_library(
'sysfs',
@@ -33,7 +27,8 @@
sysfs_dep = declare_dependency(
dependencies: sysfs_deps,
include_directories: sysfs_headers,
- link_with: sysfs_lib)
+ link_with: sysfs_lib,
+)
hwmon_headers = include_directories('.')
@@ -62,12 +57,14 @@
'sensor.cpp',
'sensorset.cpp',
dependencies: hwmon_deps,
- include_directories: hwmon_headers)
+ include_directories: hwmon_headers,
+)
hwmon_dep = declare_dependency(
dependencies: hwmon_deps,
include_directories: hwmon_headers,
- link_with: hwmon_lib)
+ link_with: hwmon_lib,
+)
# CLI11 might not have a pkg-config. It is header only so just make
# sure we can access the needed symbols from the header.
@@ -76,7 +73,8 @@
'CLI/CLI.hpp',
'CLI::App',
dependencies: cli11_dep,
- required: false)
+ required: false,
+)
if not has_cli11
cli11_proj = subproject('cli11', required: false)
assert(cli11_proj.found(), 'CLI11 is required')
@@ -86,32 +84,32 @@
executable(
'phosphor-hwmon-readd',
'readd.cpp',
- dependencies: [
- cli11_dep,
- hwmon_dep,
- ],
- install: true)
+ dependencies: [cli11_dep, hwmon_dep],
+ install: true,
+)
systemd_system_unit_dir = dependency('systemd').get_variable(
'systemdsystemunitdir',
- pkgconfig_define: ['prefix', get_option('prefix')])
+ pkgconfig_define: ['prefix', get_option('prefix')],
+)
udev_dir = dependency('udev').get_variable(
'udev_dir',
- pkgconfig_define: ['prefix', get_option('prefix')])
+ pkgconfig_define: ['prefix', get_option('prefix')],
+)
install_data(
'xyz.openbmc_project.Hwmon@.service',
- install_dir: systemd_system_unit_dir
+ install_dir: systemd_system_unit_dir,
)
install_data(
'phosphor-hwmon.conf',
- install_dir: get_option('sysconfdir') / 'dbus-1/system.d'
+ install_dir: get_option('sysconfdir') / 'dbus-1/system.d',
)
install_data(
['70-hwmon.rules', '70-iio.rules'],
- install_dir: udev_dir / 'rules.d'
+ install_dir: udev_dir / 'rules.d',
)
force_devpath = ''
@@ -120,12 +118,12 @@
endif
configure_file(
- input : 'start_hwmon.sh.in',
- output : 'start_hwmon.sh',
+ input: 'start_hwmon.sh.in',
+ output: 'start_hwmon.sh',
configuration: {
- 'OVERRIDE_WITH_DEVPATH': ' '.join(get_option('override-with-devpath')),
- 'FORCE_DEVPATH': force_devpath
- },
+ 'OVERRIDE_WITH_DEVPATH': ' '.join(get_option('override-with-devpath')),
+ 'FORCE_DEVPATH': force_devpath,
+ },
install_dir: get_option('bindir'),
install_mode: 'rwxr-xr-x',
install: true,
@@ -133,6 +131,6 @@
subdir('msl')
if get_option('tests').allowed()
- subdir('test')
+ subdir('test')
endif
subdir('tools')