meson: reformat with meson formatter
Apply the `meson format` results.
Change-Id: Icda374c1b459592144f24ba1ebb90791fb0748c5
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/meson.build b/meson.build
index 7650113..ff9cb9c 100644
--- a/meson.build
+++ b/meson.build
@@ -1,15 +1,15 @@
project(
- 'jsnbd',
- 'c',
- version : '1.0',
- meson_version: '>=0.63.0',
- default_options: [
- 'b_ndebug=if-release',
- 'cpp_rtti=false',
- 'cpp_std=c++20',
- 'warning_level=3',
- 'werror=true',
- ]
+ 'jsnbd',
+ 'c',
+ version: '1.0',
+ meson_version: '>=0.63.0',
+ default_options: [
+ 'b_ndebug=if-release',
+ 'cpp_rtti=false',
+ 'cpp_std=c++20',
+ 'warning_level=3',
+ 'werror=true',
+ ],
)
bindir = get_option('prefix') + '/' + get_option('bindir')
@@ -24,31 +24,22 @@
conf_data = configuration_data()
if c.has_header_symbol('fcntl.h', 'splice', args: '-D_GNU_SOURCE')
- conf_data.set('HAVE_SPLICE', 1)
+ conf_data.set('HAVE_SPLICE', 1)
endif
conf_data.set('RUNSTATEDIR', '"' + localstatedir + '/run"')
conf_data.set('SYSCONFDIR', '"' + sysconfdir + '"')
conf_h_dep = declare_dependency(
- sources: configure_file(
- output: 'config.h',
- configuration: conf_data
- )
+ sources: configure_file(output: 'config.h', configuration: conf_data),
)
-add_project_arguments([
- '-Wno-pedantic',
-], language : 'c')
+add_project_arguments(['-Wno-pedantic'], language: 'c')
executable(
- 'nbd-proxy',
- 'nbd-proxy.c',
- dependencies: [
- json_c,
- conf_h_dep,
- udev,
- ],
- install: true,
- install_dir: bindir
+ 'nbd-proxy',
+ 'nbd-proxy.c',
+ dependencies: [json_c, conf_h_dep, udev],
+ install: true,
+ install_dir: bindir,
)
diff --git a/meson_options.txt b/meson.options
similarity index 100%
rename from meson_options.txt
rename to meson.options