-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
70 lines (59 loc) · 2.29 KB
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
project(
'cpp_utils',
'cpp',
meson_version: '>= 1.2.0',
version : '0.1.0',
default_options : ['cpp_std=c++20', 'buildtype=release']
)
hedley_dep = dependency('hedley', main : true, fallback : ['hedley', 'hedley_dep'])
cpp_utils_inc = include_directories(['include', '.', 'include/cpp_utils'])
subdir('include/cpp_utils')
headers = files(
[
'include/cpp_utils/containers/algorithms.hpp',
'include/cpp_utils/containers/traits.hpp',
'include/cpp_utils/containers/no_init_vector.hpp',
'include/cpp_utils/containers/nomap.hpp',
'include/cpp_utils/cpp_utils.hpp',
'include/cpp_utils/cpp_utils_qt/cpp_utils_qt.hpp',
'include/cpp_utils/cpp_utils_qt/types/converters.hpp',
'include/cpp_utils/cpp_utils_qt/types/pointers.hpp',
'include/cpp_utils/cpp_utils_qt/trees/traits.hpp',
'include/cpp_utils/endianness/endianness.hpp',
'include/cpp_utils/io/memory_mapped_file.hpp',
'include/cpp_utils/lifetime/scope_leaving_guards.hpp',
'include/cpp_utils/reflexion/reflection.hpp',
'include/cpp_utils/serde/deserialization.hpp',
'include/cpp_utils/serde/special_fields.hpp',
'include/cpp_utils/serde/serde.hpp',
'include/cpp_utils/strings/algorithms.hpp',
'include/cpp_utils/trees/algorithms.hpp',
'include/cpp_utils/trees/node.hpp',
'include/cpp_utils/trees/traits.hpp',
'include/cpp_utils/types/concepts.hpp',
'include/cpp_utils/types/detectors.hpp',
'include/cpp_utils/types/integers.hpp',
'include/cpp_utils/types/pointers.hpp',
'include/cpp_utils/types/qt_types.hpp',
'include/cpp_utils/types/strings.hpp'
]
)
cpp_utils_project_extra_files = files(
'.github/workflows/CI.yml',
'.github/workflows/tests-with-coverage.yml'
)
cpp_utils_dep = declare_dependency(
include_directories : cpp_utils_inc,
dependencies: [hedley_dep],
extra_files: [headers, cpp_utils_project_extra_files]
)
cppcheck = find_program('cppcheck', required : false)
if cppcheck.found()
run_target('cppcheck',
command : [cppcheck, '--enable=all',
'--project=' + join_paths(meson.build_root(), 'compile_commands.json')]
)
endif
if get_option('with_tests')
subdir('tests')
endif