summaryrefslogtreecommitdiff
path: root/docs/meson.build
blob: fb26d40bfbd665ded39ae02f338575a184bc13e0 (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
36
37
38
39
40
41
subdir('xml')

private_headers = [
  'atkmarshal.h',
  'atkintl.h',
]

content_files = [
]

html_images = [
]

glib_prefix = dependency('glib-2.0').get_pkgconfig_variable('prefix')
glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')
docpath = join_paths(atk_datadir, 'gtk-doc', 'html')

gnome.gtkdoc('atk',
             main_xml: 'atk-docs.xml',
             src_dir: [
               join_paths(meson.source_root(), 'atk'),
               join_paths(meson.build_root(), 'atk'),
             ],
             dependencies: libatk_dep,
             gobject_typesfile: 'atk.types',
             scan_args: [
               '--rebuild-types',
               '--deprecated-guards=ATK_DISABLE_DEPRECATED',
               '--ignore-decorators=_ATK_EXTERN',
               '--ignore-headers=' + ' '.join(private_headers),
             ],
             mkdb_args: [
               '--output-format=xml',
             ],
             fixxref_args: [
               '--html-dir=@0@'.format(docpath),
               '--extra-dir=@0@'.format(join_paths(glib_docpath, 'glib')),
               '--extra-dir=@0@'.format(join_paths(glib_docpath, 'gobject')),
             ],
             html_assets: html_images,
             install: true)