meson: Add atkversion.h to introspection build
[platform/upstream/atk.git] / docs / meson.build
1 subdir('xml')
2
3 private_headers = [
4   'atkmarshal.h',
5   'atkintl.h',
6 ]
7
8 content_files = [
9 ]
10
11 html_images = [
12 ]
13
14 glib_prefix = dependency('glib-2.0').get_pkgconfig_variable('prefix')
15 glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')
16 docpath = join_paths(atk_datadir, 'gtk-doc', 'html')
17
18 gnome.gtkdoc('atk',
19              main_xml: 'atk-docs.xml',
20              src_dir: [
21                join_paths(meson.source_root(), 'atk'),
22                join_paths(meson.build_root(), 'atk'),
23              ],
24              dependencies: libatk_dep,
25              gobject_typesfile: 'atk.types',
26              scan_args: [
27                '--rebuild-types',
28                '--deprecated-guards=ATK_DISABLE_DEPRECATED',
29                '--ignore-decorators=_ATK_EXTERN',
30                '--ignore-headers=' + ' '.join(private_headers),
31              ],
32              mkdb_args: [
33                '--output-format=xml',
34              ],
35              fixxref_args: [
36                '--html-dir=@0@'.format(docpath),
37                '--extra-dir=@0@'.format(join_paths(glib_docpath, 'glib')),
38                '--extra-dir=@0@'.format(join_paths(glib_docpath, 'gobject')),
39              ],
40              html_assets: html_images,
41              install: true)