-
Notifications
You must be signed in to change notification settings - Fork 288
Expand file tree
/
Copy pathmeson.build
More file actions
52 lines (46 loc) · 1.07 KB
/
meson.build
File metadata and controls
52 lines (46 loc) · 1.07 KB
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
project(
'wrapdb',
meson_version: '>=0.58.0',
)
if (
meson.version().version_compare('<1.9.2') and
meson.version().version_compare('>=1.8.4')
)
# ensure c_std= and cpp_std= are not ignored in subprojects on < 1.9.1
# https://github.com/mesonbuild/meson/issues/14939
# ensure subproject c_std= and cpp_std= comma-separated lists are not
# passed verbatim to the compiler on 1.9.1
# https://github.com/mesonbuild/meson/issues/15202
add_languages(
'c',
'cpp',
native: false,
)
endif
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,
)