Format meson files with meson.format
Meson 1.5.0 introduced a new feature to format all the meson
files. Formatting all the meson files is now as simple as running
`meson format -i -r` command in the repository root folder.
more details : https://mesonbuild.com/Commands.html#format
Change-Id: I44489d726c70531312127cd9908a0d87543adcdf
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
diff --git a/meson.build b/meson.build
index 5cd3c7a..ae05ccb 100644
--- a/meson.build
+++ b/meson.build
@@ -6,7 +6,7 @@
'warning_level=3',
'werror=true',
'cpp_std=c++23',
- 'buildtype=debugoptimized'
+ 'buildtype=debugoptimized',
],
license: 'Apache-2.0',
version: '1.0',
@@ -22,20 +22,23 @@
conf_data.set_quoted('BIOS_PERSIST_PATH', get_option('bios-persist-path'))
configure_file(output: 'config.h', configuration: conf_data)
-boost_args = ['-DBOOST_ALL_NO_LIB',
- '-DBOOST_ASIO_DISABLE_THREADS',
- '-DBOOST_ERROR_CODE_HEADER_ONLY',
- '-DBOOST_NO_RTTI',
- '-DBOOST_NO_TYPEID',
- '-DBOOST_SYSTEM_NO_DEPRECATED']
+boost_args = [
+ '-DBOOST_ALL_NO_LIB',
+ '-DBOOST_ASIO_DISABLE_THREADS',
+ '-DBOOST_ERROR_CODE_HEADER_ONLY',
+ '-DBOOST_NO_RTTI',
+ '-DBOOST_NO_TYPEID',
+ '-DBOOST_SYSTEM_NO_DEPRECATED',
+]
-deps = [dependency('boost'),
- dependency('phosphor-dbus-interfaces'),
- dependency('phosphor-logging'),
- dependency('sdbusplus'),
- dependency('libsystemd'),
- dependency('openssl'),
- dependency('nlohmann_json',include_type: 'system'),
+deps = [
+ dependency('boost'),
+ dependency('phosphor-dbus-interfaces'),
+ dependency('phosphor-logging'),
+ dependency('sdbusplus'),
+ dependency('libsystemd'),
+ dependency('openssl'),
+ dependency('nlohmann_json', include_type: 'system'),
]
cereal = dependency('cereal', required: false)
@@ -44,42 +47,48 @@
'cereal/cereal.hpp',
'cereal::specialize',
dependencies: cereal,
- required: false)
+ required: false,
+)
if not has_cereal
cereal_opts = import('cmake').subproject_options()
cereal_opts.add_cmake_defines({'BUILD_TESTS': 'OFF'})
cereal_proj = import('cmake').subproject(
'cereal',
options: cereal_opts,
- required: false)
+ required: false,
+ )
assert(cereal_proj.found(), 'cereal is required')
cereal = cereal_proj.dependency('cereal')
endif
deps += cereal
-src_files = ['src/main.cpp',
- 'src/manager.cpp',
- 'src/manager_serialize.cpp',
- 'src/password.cpp'
+src_files = [
+ 'src/main.cpp',
+ 'src/manager.cpp',
+ 'src/manager_serialize.cpp',
+ 'src/password.cpp',
]
-executable('biosconfig-manager',
- src_files,
- implicit_include_directories: true,
- include_directories: ['include'],
- dependencies: deps,
- cpp_args : boost_args,
- install: true,
- install_dir: get_option('bindir'))
+executable(
+ 'biosconfig-manager',
+ src_files,
+ implicit_include_directories: true,
+ include_directories: ['include'],
+ 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(
'service_files/xyz.openbmc_project.biosconfig_manager.service',
install: true,
- install_dir: systemd_system_unit_dir
+ install_dir: systemd_system_unit_dir,
)