diff options
author | David Robillard <d@drobilla.net> | 2024-10-06 13:21:36 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-10-06 13:21:36 -0400 |
commit | 412e9853b9efcac095215fff6d6e2e28ffd4d3b7 (patch) | |
tree | c7c0f31dd14f1d820aedc4ece696aa5ce9f73bbf | |
parent | 7d0a4a504f46bc892b660605c0a54bbba4179761 (diff) | |
download | suil-412e9853b9efcac095215fff6d6e2e28ffd4d3b7.tar.gz suil-412e9853b9efcac095215fff6d6e2e28ffd4d3b7.tar.bz2 suil-412e9853b9efcac095215fff6d6e2e28ffd4d3b7.zip |
Add lint option and fix warning_level abuse
-rw-r--r-- | meson.build | 11 | ||||
-rw-r--r-- | meson_options.txt | 3 |
2 files changed, 9 insertions, 5 deletions
diff --git a/meson.build b/meson.build index 29c8467..9154289 100644 --- a/meson.build +++ b/meson.build @@ -328,13 +328,14 @@ if qt6_dep.found() ) endif -######### -# Tests # -######### +######## +# Lint # +######## + +if get_option('lint') -if get_option('warning_level') == 'everything' - # Check release metadata if not meson.is_subproject() + # Check release metadata autoship = find_program('autoship', required: false) if autoship.found() test('autoship', autoship, args: ['test', suil_src_root], suite: 'data') diff --git a/meson_options.txt b/meson_options.txt index 5845601..82059bf 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -16,6 +16,9 @@ option('gtk3', type: 'feature', yield: true, option('html', type: 'feature', yield: true, description: 'Build paginated HTML documentation') +option('lint', type: 'boolean', value: false, yield: true, + description: 'Run code quality checks') + option('qt5', type: 'feature', yield: true, description : 'Build Qt5 wrappers') |