meson: reformat with meson formatter
Apply the `meson format` results.
Change-Id: Ied5cfc5f74f030c3dc3554a40b2e7fed684937d8
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/meson.build b/meson.build
index b9f88ed..73bdd32 100644
--- a/meson.build
+++ b/meson.build
@@ -1,11 +1,7 @@
project(
'phosphor-srvcfg-manager',
'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',
@@ -17,45 +13,51 @@
# project uses the same compiler, we can safely ignmore these info notes.
add_project_arguments('-Wno-psabi', language: 'cpp')
-boost_args = ['-DBOOST_ALL_NO_LIB',
- '-DBOOST_ASIO_DISABLE_THREADS',
- '-DBOOST_COROUTINES_NO_DEPRECATION_WARNING',
- '-DBOOST_ERROR_CODE_HEADER_ONLY',
- '-DBOOST_NO_RTTI',
- '-DBOOST_NO_TYPEID',
- '-DBOOST_SYSTEM_NO_DEPRECATED']
-
-deps = [dependency('boost'),
- dependency('boost', modules : ['coroutine']),
- dependency('phosphor-dbus-interfaces'),
- dependency('phosphor-logging'),
- dependency('sdbusplus'),
- dependency('libsystemd'),
+boost_args = [
+ '-DBOOST_ALL_NO_LIB',
+ '-DBOOST_ASIO_DISABLE_THREADS',
+ '-DBOOST_COROUTINES_NO_DEPRECATION_WARNING',
+ '-DBOOST_ERROR_CODE_HEADER_ONLY',
+ '-DBOOST_NO_RTTI',
+ '-DBOOST_NO_TYPEID',
+ '-DBOOST_SYSTEM_NO_DEPRECATED',
]
-if(get_option('usb-code-update').allowed())
- add_project_arguments('-DUSB_CODE_UPDATE', language : 'cpp')
+deps = [
+ dependency('boost'),
+ dependency('boost', modules: ['coroutine']),
+ dependency('phosphor-dbus-interfaces'),
+ dependency('phosphor-logging'),
+ dependency('sdbusplus'),
+ dependency('libsystemd'),
+]
+
+if (get_option('usb-code-update').allowed())
+ add_project_arguments('-DUSB_CODE_UPDATE', language: 'cpp')
endif
-executable('phosphor-srvcfg-manager',
- 'src/main.cpp',
- 'src/srvcfg_manager.cpp',
- 'src/utils.cpp',
- implicit_include_directories: false,
- include_directories: ['inc'],
- dependencies: deps,
- cpp_args : boost_args,
- install: true,
- install_dir: get_option('bindir'))
+executable(
+ 'phosphor-srvcfg-manager',
+ 'src/main.cpp',
+ 'src/srvcfg_manager.cpp',
+ 'src/utils.cpp',
+ implicit_include_directories: false,
+ include_directories: ['inc'],
+ dependencies: deps,
+ cpp_args: boost_args,
+ install: true,
+ install_dir: get_option('bindir'),
+)
systemd = dependency('systemd')
systemd_system_unit_dir = systemd.get_variable(
'systemdsystemunitdir',
- pkgconfig_define: ['prefix', get_option('prefix')])
+ pkgconfig_define: ['prefix', get_option('prefix')],
+)
fs = import('fs')
fs.copyfile(
'srvcfg-manager.service',
install: true,
- install_dir: systemd_system_unit_dir
+ install_dir: systemd_system_unit_dir,
)
diff --git a/meson.options b/meson.options
index b89faa8..615dc79 100644
--- a/meson.options
+++ b/meson.options
@@ -1,4 +1,5 @@
option(
- 'usb-code-update', type: 'feature',
+ 'usb-code-update',
+ type: 'feature',
description: 'Enable USB code update enable/disable feature.',
)