aboutsummaryrefslogtreecommitdiff
path: root/subprojects/lix-clang-tidy/meson.build
blob: d279b437b64d0f90402e14804f697e8c04a345c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
project('lix-clang-tidy', ['cpp', 'c'],
  version : '0.1',
  default_options : ['warning_level=3', 'cpp_std=c++20']
)

llvm = dependency('Clang', version: '>= 16', modules: ['libclang'])
sources = files(
  'CharPtrCast.cc',
  'FixIncludes.cc',
  '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')
)