summaryrefslogtreecommitdiffstats
path: root/src/tests/include/meson.build
blob: 25dfaee42b4a6dd4db5c27c3871445cc291b5ff3 (plain)
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
include_tmpl_langs = ['c', 'cpp']

# Ensure all headers compile

test_include_sources = []
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

  foreach lang : include_tmpl_langs

    test_include_sources += configure_file(
        input: 'include_tmpl.' + lang,
        output: 'include_@0@.@1@'.format(h.underscorify(), lang),
        configuration: {
          'header': h
        },
    )

  endforeach

endforeach

static_library('test_include', test_include_sources,
    dependencies: [tdep_static, lavu, lavc, lavf],
    include_directories: [inc, vulkan_headers_inc],
    implicit_include_directories: false,
    c_args: ['-Wall', '-Wextra', '-Wpedantic'],
    cpp_args: ['-Wall', '-Wextra', '-Wpedantic'],
)