Debian Codegraph @

doc/meson.build

raw
1 if meson.version().version_compare('>= 0.56')
2 headerdir = join_paths(meson.project_source_root(), 'va')
3 else
4 headerdir = join_paths(meson.source_root(), 'va')
5 endif
6 footer = join_paths(meson.current_source_dir(), 'va_footer.html')
7
8 libva_headers_doc = [
9 'va.h',
10 'va_enc_h264.h',
11 'va_enc_mpeg2.h',
12 'va_enc_jpeg.h',
13 'va_enc_hevc.h',
14 'va_enc_vp8.h',
15 'va_enc_vp9.h',
16 'va_enc_av1.h',
17 'va_fei.h',
18 'va_fei_h264.h',
19 'va_fei_hevc.h',
20 'va_dec_hevc.h',
21 'va_dec_jpeg.h',
22 'va_dec_vp8.h',
23 'va_dec_vp9.h',
24 'va_dec_av1.h',
25 'va_prot.h',
26 'va_vpp.h'
27 ]
28
29 libva_doc_files = []
30 headers = ''
31 foreach h : libva_headers_doc
32 libva_doc_files += join_paths (headerdir, h)
33 headers += ' ' + join_paths (headerdir, h)
34 endforeach
35
36 config = configuration_data()
37 config.set('PACKAGE_VERSION', libva_version)
38 config.set('VA_HEADER_DIR', headerdir)
39 config.set('VA_HEADER_FILES', headers)
40 config.set('VA_HTML_FOOTER', footer)
41 config.set('OUTDIR', meson.current_build_dir())
42
43 doxyfile = configure_file(
44 input: 'Doxyfile.in',
45 output: 'Doxyfile',
46 configuration: config)
47
48 doc_install_dir = join_paths(get_option('datadir'), 'doc', meson.project_name())
49 custom_target(
50 'doc',
51 command: [ doxygen, doxyfile ],
52 depend_files: libva_doc_files,
53 input: doxyfile,
54 output: 'html-out',
55 install: true,
56 install_dir: doc_install_dir)