summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meson.build29
-rw-r--r--meson/suppressions/meson.build2
-rw-r--r--test/meson.build9
3 files changed, 23 insertions, 17 deletions
diff --git a/meson.build b/meson.build
index 78ec6d2..319637b 100644
--- a/meson.build
+++ b/meson.build
@@ -1,15 +1,18 @@
# Copyright 2021-2022 David Robillard <d@drobilla.net>
# SPDX-License-Identifier: 0BSD OR ISC
-project('sratom', ['c'],
- version: '0.6.15',
- license: 'ISC',
- meson_version: '>= 0.56.0',
- default_options: [
- 'b_ndebug=if-release',
- 'buildtype=release',
- 'c_std=c99',
- ])
+project(
+ 'sratom',
+ ['c'],
+ default_options: [
+ 'b_ndebug=if-release',
+ 'buildtype=release',
+ 'c_std=c99',
+ ],
+ license: 'ISC',
+ meson_version: '>= 0.56.0',
+ version: '0.6.15',
+)
sratom_src_root = meson.current_source_dir()
major_version = meson.project_version().split('.')[0]
@@ -97,7 +100,7 @@ sratom_dep = declare_dependency(
compile_args: extra_c_args,
dependencies: [m_dep, lv2_dep, serd_dep, sord_dep],
include_directories: include_dirs,
- link_with: libsratom
+ link_with: libsratom,
)
# Generage pkg-config file for external dependants
@@ -130,9 +133,9 @@ if not meson.is_subproject()
summary(
{
- 'Install prefix': get_option('prefix'),
- 'Headers': get_option('prefix') / get_option('includedir'),
- 'Libraries': get_option('prefix') / get_option('libdir'),
+ 'Install prefix': get_option('prefix'),
+ 'Headers': get_option('prefix') / get_option('includedir'),
+ 'Libraries': get_option('prefix') / get_option('libdir'),
},
section: 'Directories',
)
diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build
index 16d42bb..542b00e 100644
--- a/meson/suppressions/meson.build
+++ b/meson/suppressions/meson.build
@@ -63,7 +63,7 @@ elif cc.get_id() == 'gcc'
'-Wno-unused-const-variable',
]
- if host_machine.system() =='windows'
+ if host_machine.system() == 'windows'
c_suppressions += [
'-Wno-suggest-attribute=format',
]
diff --git a/test/meson.build b/test/meson.build
index cbddee6..e31f1e5 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -17,9 +17,12 @@ if get_option('warning_level') == 'everything'
# Check licensing metadata
reuse = find_program('reuse', required: false)
if reuse.found()
- test('REUSE', reuse,
- args: ['--root', sratom_src_root, 'lint'],
- suite: 'data')
+ test(
+ 'REUSE',
+ reuse,
+ args: ['--root', sratom_src_root, 'lint'],
+ suite: 'data',
+ )
endif
endif