summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-10-06 13:20:40 -0400
committerDavid Robillard <d@drobilla.net>2024-10-06 13:20:40 -0400
commite71b831791c2a8820fe0580adfc555d5dc4b3a1a (patch)
treeaa615e1ecca14b543201c423c5f218b81a45b67a
parent97bd31ed7b844dd426d0e9f9dfc729ce7b4246eb (diff)
downloadsord-e71b831791c2a8820fe0580adfc555d5dc4b3a1a.tar.gz
sord-e71b831791c2a8820fe0580adfc555d5dc4b3a1a.tar.bz2
sord-e71b831791c2a8820fe0580adfc555d5dc4b3a1a.zip
Add lint option and fix warning_level abusemaster
-rw-r--r--meson_options.txt3
-rw-r--r--test/meson.build4
2 files changed, 5 insertions, 2 deletions
diff --git a/meson_options.txt b/meson_options.txt
index 41a2374..e3e283e 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -4,6 +4,9 @@
option('docs', type: 'feature', yield: true,
description: 'Build documentation')
+option('lint', type: 'boolean', value: false, yield: true,
+ description: 'Run code quality checks')
+
option('man', type: 'feature', value: 'enabled', yield: true,
description: 'Install man pages')
diff --git a/test/meson.build b/test/meson.build
index cbadd8f..cf8bcc4 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -5,9 +5,9 @@
# Project Metadata #
####################
-if get_option('warning_level') == 'everything'
- # Check release metadata
+if get_option('lint')
if not meson.is_subproject()
+ # Check release metadata
autoship = find_program('autoship', required: false)
if autoship.found()
test('autoship', autoship, args: ['test', sord_src_root], suite: 'data')