meson: reformat with meson formatter
Apply the `meson format` results.
Change-Id: Id7af795e402928290b31fb085bd12a715122545b
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/meson.build b/meson.build
index 77e31df..1f04728 100644
--- a/meson.build
+++ b/meson.build
@@ -16,9 +16,7 @@
exprtk = declare_dependency()
else
subproject('exprtk', required: false)
- exprtk = declare_dependency(
- include_directories: 'subprojects/exprtk'
- )
+ exprtk = declare_dependency(include_directories: 'subprojects/exprtk')
endif
executable(
@@ -38,7 +36,7 @@
exprtk,
],
install: true,
- install_dir: get_option('bindir')
+ install_dir: get_option('bindir'),
)
packagedir = join_paths(
@@ -47,19 +45,20 @@
meson.project_name(),
)
-install_data(sources : 'virtual_sensor_config.json', install_dir : packagedir)
+install_data(sources: 'virtual_sensor_config.json', install_dir: packagedir)
systemd = dependency('systemd')
conf_data = configuration_data()
conf_data.set('bindir', get_option('prefix') / get_option('bindir'))
configure_file(
- input: 'phosphor-virtual-sensor.service.in',
- output: 'phosphor-virtual-sensor.service',
- configuration: conf_data,
- install: true,
- install_dir: systemd.get_variable('systemdsystemunitdir'))
+ input: 'phosphor-virtual-sensor.service.in',
+ output: 'phosphor-virtual-sensor.service',
+ configuration: conf_data,
+ install: true,
+ install_dir: systemd.get_variable('systemdsystemunitdir'),
+)
build_tests = get_option('tests')
if build_tests.allowed()
- subdir('test')
+ subdir('test')
endif
diff --git a/test/meson.build b/test/meson.build
index 5454812..e14fd5c 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -3,16 +3,13 @@
test_inc = include_directories('.')
src_inc = include_directories('..')
-common_dep = [
- gtest,
- gmock,
-]
+common_dep = [gtest, gmock]
test_exprtk_tools = executable(
- 'test_exprtk_tools',
- 'test_exprtk_tools.cpp',
- include_directories: [test_inc, src_inc],
- dependencies: [common_dep, exprtk]
+ 'test_exprtk_tools',
+ 'test_exprtk_tools.cpp',
+ include_directories: [test_inc, src_inc],
+ dependencies: [common_dep, exprtk],
)
test('test_exprtk_tools', test_exprtk_tools)