meson: reformat with meson formatter
Apply the `meson format` results.
Change-Id: Iab5fdd6b41eab1cc138df39f1dce5345bf260306
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/meson.build b/meson.build
index b704687..f789a0d 100644
--- a/meson.build
+++ b/meson.build
@@ -1,11 +1,7 @@
project(
'entity-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: '0.1',
meson_version: '>=1.1.1',
@@ -19,24 +15,25 @@
'-DBOOST_NO_RTTI',
'-DBOOST_NO_TYPEID',
'-DBOOST_ALL_NO_LIB',
- '-DBOOST_ALLOW_DEPRECATED_HEADERS'
+ '-DBOOST_ALLOW_DEPRECATED_HEADERS',
]
build_tests = get_option('tests')
cpp = meson.get_compiler('cpp')
boost = dependency('boost', required: false)
if not boost.found()
- subproject('boost', required: false)
- boost = declare_dependency(
- include_directories: 'subprojects/boost_1_71_0',
- )
- boost = boost.as_system('system')
+ subproject('boost', required: false)
+ boost = declare_dependency(include_directories: 'subprojects/boost_1_71_0')
+ boost = boost.as_system('system')
endif
if get_option('fru-device')
i2c = cpp.find_library('i2c')
endif
if get_option('devicetree-vpd')
- phosphor_dbus_interfaces_dep = dependency('phosphor-dbus-interfaces', include_type: 'system')
+ phosphor_dbus_interfaces_dep = dependency(
+ 'phosphor-dbus-interfaces',
+ include_type: 'system',
+ )
endif
nlohmann_json_dep = dependency('nlohmann_json', include_type: 'system')
@@ -46,7 +43,8 @@
systemd = dependency('systemd')
systemd_system_unit_dir = systemd.get_variable(
'systemdsystemunitdir',
- pkgconfig_define: ['prefix', get_option('prefix')])
+ pkgconfig_define: ['prefix', get_option('prefix')],
+)
packagedir = join_paths(
get_option('prefix'),
get_option('datadir'),
@@ -63,7 +61,7 @@
else
subproject('valijson', required: false)
valijson = declare_dependency(
- include_directories: 'subprojects/valijson/include'
+ include_directories: 'subprojects/valijson/include',
)
valijson = valijson.as_system('system')
endif
@@ -76,29 +74,19 @@
filepaths = []
foreach c : configs
file = join_paths('configurations', c)
- install_data(
- file,
- install_dir: join_paths(
- packagedir,
- 'configurations',
- )
- )
+ install_data(file, install_dir: join_paths(packagedir, 'configurations'))
filepaths += [file]
endforeach
if get_option('validate-json')
validate_script = files('scripts/validate_configs.py')
autojson = custom_target(
- 'check_syntax',
- command: [
- validate_script,
- '-v',
- '-k',
- ],
- depend_files: files(filepaths),
- build_by_default: true,
- capture: true,
- output: 'validate_configs.log',
+ 'check_syntax',
+ command: [validate_script, '-v', '-k'],
+ depend_files: files(filepaths),
+ build_by_default: true,
+ capture: true,
+ output: 'validate_configs.log',
)
endif
@@ -121,11 +109,7 @@
foreach s : schemas
install_data(
join_paths('schemas', s),
- install_dir: join_paths(
- packagedir,
- 'configurations',
- 'schemas',
- )
+ install_dir: join_paths(packagedir, 'configurations', 'schemas'),
)
endforeach
@@ -141,7 +125,9 @@
gtest_subproject = cmake.subproject('gtest')
cm_gtest = gtest_subproject.dependency('gtest')
cm_gtest_main = gtest_subproject.dependency('gtest_main')
- gtest = declare_dependency(dependencies: [cm_gtest, cm_gtest_main, threads])
+ gtest = declare_dependency(
+ dependencies: [cm_gtest, cm_gtest_main, threads],
+ )
gmock = gtest_subproject.dependency('gmock')
endif
@@ -163,7 +149,7 @@
valijson,
],
include_directories: 'src',
- )
+ ),
)
test(
@@ -174,14 +160,9 @@
'src/fru_utils.cpp',
'src/fru_reader.cpp',
cpp_args: test_boost_args,
- dependencies: [
- boost,
- gtest,
- phosphor_logging_dep,
- sdbusplus,
- ],
+ dependencies: [boost, gtest, phosphor_logging_dep, sdbusplus],
include_directories: 'src',
- )
+ ),
)
test(
@@ -198,6 +179,6 @@
phosphor_logging_dep,
],
include_directories: 'src',
- )
+ ),
)
endif