-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
40 lines (35 loc) · 1.05 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
# meson commands cheat sheet:
#
# # Setup ###################
#
# release & debug setup
# CXX="ccache clang++" meson setup --buildtype release builddir/clang_release
# CXX="ccache clang++" meson setup builddir/clang_debug
# c++20 build
# CXX="ccache clang++" meson setup -Dcpp_std=c++20 builddir/clang_cpp20
# lcov coverage:
# CXX="ccache clang++" meson setup -Db_coverage=true builddir/coverage
# ninja clean && ninja test && ninja coverage
#
# # Testing ################
#
# Run with valgrind:
# meson test --wrap='valgrind --leak-check=full --error-exitcode=1'
#
project('unordered_dense', 'cpp',
version: '4.5.0',
license: 'MIT',
default_options : [
'cpp_std=c++17',
'warning_level=3',
'werror=true',
'b_ndebug=true', # otherwise absl is really slow!
])
incdir = include_directories('include')
unordered_dense_dep = declare_dependency(
include_directories: incdir
)
meson.override_dependency('unordered_dense', unordered_dense_dep)
if not meson.is_subproject()
subdir('test')
endif