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