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/',
+)
diff --git a/meson.options b/meson.options
index 07adb15..000458c 100644
--- a/meson.options
+++ b/meson.options
@@ -1,10 +1,30 @@
-option('chassis-system-reset', type: 'feature', value : 'disabled',
- description: 'Enable chassis system power reset to allow removing power and restoring back')
-option('use-plt-rst', type: 'feature', value : 'disabled',
- description: 'Use the PLT_RST eSPI signal to detect warm reset instead of POST Complete')
-option('use-acboot', type: 'feature', value : 'disabled',
- description: 'Use hardware Reset Reason to control Power Restore. Note: this only works with Intel-BMC')
-option('ignore-soft-resets-during-post', type: 'feature', value : 'disabled',
- description: 'Ignore soft resets from host during POST')
-option('button-passthrough', type: 'feature', value : 'disabled',
- description: 'Directly couple through power and reset buttons')
+option(
+ 'chassis-system-reset',
+ type: 'feature',
+ value: 'disabled',
+ description: 'Enable chassis system power reset to allow removing power and restoring back',
+)
+option(
+ 'use-plt-rst',
+ type: 'feature',
+ value: 'disabled',
+ description: 'Use the PLT_RST eSPI signal to detect warm reset instead of POST Complete',
+)
+option(
+ 'use-acboot',
+ type: 'feature',
+ value: 'disabled',
+ description: 'Use hardware Reset Reason to control Power Restore. Note: this only works with Intel-BMC',
+)
+option(
+ 'ignore-soft-resets-during-post',
+ type: 'feature',
+ value: 'disabled',
+ description: 'Ignore soft resets from host during POST',
+)
+option(
+ 'button-passthrough',
+ type: 'feature',
+ value: 'disabled',
+ description: 'Directly couple through power and reset buttons',
+)
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)