forked from haasn/libplacebo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
48 lines (41 loc) · 1.14 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
dav1d = dependency('dav1d', required: false)
if dav1d.found()
tdep += dav1d
tests += 'dav1d.c'
endif
lavu = dependency('libavutil', version: '>=55.74.100', required: false)
lavc = dependency('libavcodec', required: false)
lavf = dependency('libavformat', required: false)
libav_found = lavu.found() and lavc.found() and lavf.found()
if libav_found
tdep += [lavu, lavc, lavf]
tests += 'libav.c'
endif
foreach t : tests
e = executable('test.' + t, t,
objects: lib.extract_all_objects(recursive: false),
c_args: [ '-Wno-unused-function' ],
dependencies: tdep,
)
test(t, e)
endforeach
# Ensure all headers compile
foreach h : headers
if (h.contains('internal') or
h.contains('dav1d') and not dav1d.found() or
h.contains('libav') and not libav_found or
h.contains('d3d11') and not d3d11_header)
continue
endif
t = configure_file(
input: 'include_tmpl.c',
output: 'include_@[email protected]'.format(h.underscorify()),
configuration: {
'header': h
},
)
executable('test.include.' + h.underscorify(), t,
dependencies: tdep,
c_args: [ '-Wno-unused-function' ],
)
endforeach