forked from luigifcruz/blade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
62 lines (54 loc) · 1.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
project(
'blade',
['cpp', 'c', 'cuda'],
version: '0.4.0',
default_options: [
'buildtype=release',
'cpp_std=c++20',
'b_ndebug=if-release',
]
)
cfg_lst = configuration_data()
cfg_lst.set('version', meson.project_version())
cfg_lst.set('build_type', get_option('buildtype'))
src_lst = []
dep_lst = [
subproject('radiointerferometryc99').get_variable('lib_radiointerferometry_dep'),
dependency('cuda', version : '>=11', modules : ['nvrtc', 'cudart', 'cuda', 'cufft']),
dependency('fmt'),
]
inc_lst = [
include_directories('include'),
include_directories('.'),
]
jit_lst = []
subdir('src')
subdir('include')
subdir('tools')
lib_blade = library(
'blade',
src_lst,
include_directories: inc_lst,
dependencies: dep_lst,
gnu_symbol_visibility: 'hidden',
install: true,
)
lib_blade_dep = declare_dependency(
include_directories: inc_lst,
dependencies: dep_lst,
link_with: lib_blade,
)
subdir('python')
subdir('tests')
subdir('docs')
summary({'cpp_std': get_option('cpp_std'),
'prefix': get_option('prefix'),
'buildtype': get_option('buildtype'),
'crossbuild': meson.is_cross_build(),
'python bindings': has_python,
}, section: 'General', bool_yn: true)
pkg = import('pkgconfig')
pkg.generate(
lib_blade,
libraries: dep_lst,
)