2024-08-01 03:37:27 +00:00
|
|
|
project('lix-clang-tidy', ['cpp', 'c'],
|
|
|
|
version : '0.1',
|
|
|
|
default_options : ['warning_level=3', 'cpp_std=c++20']
|
|
|
|
)
|
|
|
|
|
2024-08-23 19:17:01 +00:00
|
|
|
llvm = dependency('Clang', version: '>= 16', modules: ['libclang'])
|
2024-08-01 03:37:27 +00:00
|
|
|
sources = files(
|
2024-08-05 05:02:53 +00:00
|
|
|
'CharPtrCast.cc',
|
|
|
|
'FixIncludes.cc',
|
2024-08-01 03:37:27 +00:00
|
|
|
'HasPrefixSuffix.cc',
|
|
|
|
'LixClangTidyChecks.cc',
|
|
|
|
)
|
|
|
|
|
|
|
|
lix_clang_tidy = shared_module('lix-clang-tidy', sources,
|
|
|
|
dependencies: llvm,
|
|
|
|
# overrides build_by_default, see https://github.com/mesonbuild/meson/issues/13498
|
|
|
|
install : get_option('build-by-default'),
|
|
|
|
build_by_default : get_option('build-by-default')
|
|
|
|
)
|