-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
62 lines (54 loc) · 1.13 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
project('librw', 'cpp',
version: '2.0.0',
default_options: [
'cpp_std=c++17',
'b_lto=true',
'b_ndebug=if-release'
]
)
version_file = configure_file(
input: 'version.cpp.in',
output: 'version.cpp',
configuration: {
'version': meson.project_version()
}
)
inc = include_directories('include')
librw = static_library(
'rw', [
'argparse.cpp',
'fmt/format.cc',
'logging.cpp',
'profiling.cpp',
'utf8.cpp',
version_file
],
include_directories : inc,
install : true
)
librw_dep = declare_dependency(
include_directories : inc,
link_with : librw
)
executable(
'librw-bench', [
'bench/main.cpp',
'bench/map.cpp',
'bench/utf8.cpp',
'test/utf8-data.cpp',
],
dependencies: [librw_dep],
include_directories : inc
)
testexe = executable(
'librw-test', [
'test/argparse.cpp',
'test/main.cpp',
'test/map.cpp',
'test/utf8.cpp',
'test/utf8-data.cpp',
],
dependencies: [librw_dep],
include_directories : inc
)
test('librw test', testexe)