forked from mesonbuild/wrapdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
37 lines (32 loc) · 670 Bytes
/
meson.build
File metadata and controls
37 lines (32 loc) · 670 Bytes
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
project(
'wrapdb',
meson_version: '>=0.58.0',
default_options: ['cpp_std=c++17'],
)
wraps = get_option('wraps')
foreach w : wraps
subproject(w)
endforeach
foreach name : get_option('depnames')
dep = dependency(name)
assert(dep.type_name() == 'internal')
endforeach
foreach name : get_option('prognames')
prog = find_program(name)
assert(
prog.full_path().startswith(meson.global_build_root()) or prog.full_path().startswith(
meson.global_source_root(),
),
)
endforeach
run_target(
'update',
command: [
'meson',
'subprojects',
'update',
'--sourcedir',
meson.current_source_dir(),
'--reset',
] + wraps,
)