-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmeson.build
56 lines (50 loc) · 1.41 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
project('cxxshim', default_options: ['cpp_std=c++20'])
incl = include_directories('stage2/include')
cxxshim_dep = declare_dependency(include_directories: incl)
clang_coroutine_dep = declare_dependency(
include_directories: include_directories('clang-coroutine/include')
)
std_coroutine_dep = declare_dependency(
include_directories: include_directories('std-coroutine/include')
)
if get_option('install_headers')
install_headers(
'stage2/include/algorithm',
'stage2/include/array',
'stage2/include/atomic',
'stage2/include/cstddef',
'stage2/include/cstdint',
'stage2/include/initializer_list',
'stage2/include/iterator',
'stage2/include/memory',
'stage2/include/new',
'stage2/include/tuple',
'stage2/include/type_traits',
'stage2/include/utility',
subdir: 'stage2',
)
install_headers(
'clang-coroutine/include/experimental/coroutine',
subdir: 'clang-coroutine/experimental',
)
install_headers(
'std-coroutine/include/coroutine',
subdir: 'std-coroutine',
)
pkg = import('pkgconfig')
pkg.generate(
name: 'cxxshim',
description: 'Shim for freestanding C++',
subdirs: ['stage2'],
)
pkg.generate(
name: 'cxxshim-coroutine-clang',
description: 'Shim for freestanding C++ (clang coroutine headers)',
subdirs: ['clang-coroutine'],
)
pkg.generate(
name: 'cxxshim-coroutine-std',
description: 'Shim for freestanding C++ (std coroutine headers)',
subdirs: ['std-coroutine'],
)
endif