-
Notifications
You must be signed in to change notification settings - Fork 4
/
meson.build
58 lines (43 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
project('lapack', 'd', version : '0.4.1', license: 'BSL-1.0')
description = 'LAPACK header'
subprojects = ['mir-core']
sources_list = [
'lapack/lapack',
'lapack/package',
]
sources = []
foreach s : sources_list
sources += 'source/' + s + '.d'
endforeach
required_deps = []
foreach p : subprojects
required_deps += dependency(p, fallback : [p, 'this_dep'])
endforeach
directories = ['source']
directories = include_directories(directories)
this_lib = library(meson.project_name(),
sources,
include_directories: directories,
install: true,
version: meson.project_version(),
dependencies: required_deps,
)
this_dep = declare_dependency(
link_with: [this_lib],
include_directories: directories,
dependencies: required_deps,
)
install_subdir('source/',
strip_directory : true,
install_dir: 'include/d/' + meson.project_name(),
)
test_versions = []
install_subdir('source/',
strip_directory : true,
install_dir: 'include/d/' + meson.project_name(),
)
import('pkgconfig').generate(this_lib,
description: description,
subdirs: 'd/' + meson.project_name(),
)
lapack_dep = this_dep