Debian Codegraph @

doc/meson.build

raw
1 docs_src = files(
2 'librsvg.toml',
3 'librsvg-r.svg',
4 'librsvg.svg',
5 'load-and-render.c',
6 'migrating.md',
7 'overview.md',
8 'recommendations.md',
9 'urlmap.js',
10 )
11
12 if build_gir.allowed()
13 girepository_folder = gi_dep.get_variable(pkgconfig: 'girdir')
14
15 build_stamp = custom_target(
16 'doc_build_stamp',
17 command: [
18 gidocgen,
19 'generate',
20 '-C',
21 '@INPUT0@',
22 '--content-dir',
23 meson.current_source_dir(),
24 '--add-include-path',
25 girepository_folder,
26 '--output-dir',
27 '@OUTDIR@',
28 '@INPUT1@'
29 ],
30 input: files('librsvg.toml') + rsvg_gir[0],
31 output: 'Rsvg-2.0',
32 install: true,
33 # custom_target will make an Rsvg-2.0 directory for us
34 install_dir: get_option('datadir') / 'doc'
35 )
36 endif
37
38 custom_target('man',
39 input: files(
40 '../rsvg-convert.rst'
41 ),
42 output: '@[email protected]',
43 command: [
44 rst2man,
45 '--syntax-highlight=none',
46 '@INPUT@',
47 '@OUTPUT@'
48 ],
49 install: true,
50 install_dir: get_option('mandir') / 'man1',
51 )