meson: reformat with meson formatter
Apply the `meson format` results.
Change-Id: If040794a360b8bd0ad7e77e51e31d6799e93e685
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/meson.build b/meson.build
index 80eeed6..bea1b76 100644
--- a/meson.build
+++ b/meson.build
@@ -1,10 +1,7 @@
project(
'power-control',
'cpp',
- default_options: [
- 'warning_level=3',
- 'cpp_std=c++23'
- ],
+ default_options: ['warning_level=3', 'cpp_std=c++23'],
license: 'Apache-2.0',
version: '0.1',
meson_version: '>=1.1.1',
@@ -24,48 +21,51 @@
cpp_args = []
if get_option('chassis-system-reset').allowed()
- cpp_args += '-DCHASSIS_SYSTEM_RESET'
+ cpp_args += '-DCHASSIS_SYSTEM_RESET'
endif
if get_option('use-plt-rst').allowed()
- cpp_args += '-DUSE_PLT_RST'
+ cpp_args += '-DUSE_PLT_RST'
endif
if get_option('use-acboot').allowed()
- cpp_args += '-DUSE_ACBOOT'
+ cpp_args += '-DUSE_ACBOOT'
endif
if get_option('ignore-soft-resets-during-post').allowed()
- cpp_args += '-DIGNORE_SOFT_RESETS_DURING_POST'
+ cpp_args += '-DIGNORE_SOFT_RESETS_DURING_POST'
endif
if get_option('button-passthrough').allowed()
- cpp_args += '-DUSE_BUTTON_PASSTHROUGH'
+ cpp_args += '-DUSE_BUTTON_PASSTHROUGH'
endif
deps = [
- dependency('libgpiodcxx', default_options: ['bindings=cxx']),
- dependency('systemd'),
- dependency('sdbusplus'),
- dependency('phosphor-logging'),
- dependency('nlohmann_json', include_type: 'system'),
- dependency('boost'),
+ dependency('libgpiodcxx', default_options: ['bindings=cxx']),
+ dependency('systemd'),
+ dependency('sdbusplus'),
+ dependency('phosphor-logging'),
+ dependency('nlohmann_json', include_type: 'system'),
+ dependency('boost'),
]
executable(
- 'power-control',
- 'src/power_control.cpp',
- include_directories: include_directories('src'),
- cpp_args: cpp_args,
- dependencies: deps,
- install: true,
- install_dir: get_option('bindir'))
+ 'power-control',
+ 'src/power_control.cpp',
+ include_directories: include_directories('src'),
+ cpp_args: cpp_args,
+ dependencies: deps,
+ install: true,
+ install_dir: get_option('bindir'),
+)
systemd = dependency('systemd')
if systemd.found()
- install_data(
- 'service_files/chassis-system-reset.service',
- 'service_files/chassis-system-reset.target',
- 'service_files/xyz.openbmc_project.Chassis.Control.Power@.service',
- install_dir: systemd.get_variable('systemdsystemunitdir'))
+ install_data(
+ 'service_files/chassis-system-reset.service',
+ 'service_files/chassis-system-reset.target',
+ 'service_files/xyz.openbmc_project.Chassis.Control.Power@.service',
+ install_dir: systemd.get_variable('systemdsystemunitdir'),
+ )
endif
install_data(
- 'config/power-config-host0.json',
- install_dir: '/usr/share/x86-power-control/')
+ 'config/power-config-host0.json',
+ install_dir: '/usr/share/x86-power-control/',
+)