1 if get_option('gtk_doc')
14 'G_GNUC_WARN_UNUSED_RESULT',
15 'GLIB_AVAILABLE_IN_ALL',
16 'GLIB_AVAILABLE_IN_2_26',
17 'GLIB_AVAILABLE_IN_2_28',
18 'GLIB_AVAILABLE_IN_2_30',
19 'GLIB_AVAILABLE_IN_2_32',
20 'GLIB_AVAILABLE_IN_2_34',
21 'GLIB_AVAILABLE_IN_2_36',
22 'GLIB_AVAILABLE_IN_2_38',
23 'GLIB_AVAILABLE_IN_2_40',
24 'GLIB_AVAILABLE_IN_2_42',
25 'GLIB_AVAILABLE_IN_2_44',
26 'GLIB_AVAILABLE_IN_2_46',
27 'GLIB_AVAILABLE_IN_2_48',
28 'GLIB_AVAILABLE_IN_2_50',
29 'GLIB_AVAILABLE_IN_2_52',
30 'GLIB_AVAILABLE_IN_2_54',
31 'GLIB_AVAILABLE_IN_2_56',
32 'GLIB_DEPRECATED_IN_2_26',
33 'GLIB_DEPRECATED_IN_2_26_FOR',
34 'GLIB_DEPRECATED_IN_2_28',
35 'GLIB_DEPRECATED_IN_2_28_FOR',
36 'GLIB_DEPRECATED_IN_2_30',
37 'GLIB_DEPRECATED_IN_2_30_FOR',
38 'GLIB_DEPRECATED_IN_2_32',
39 'GLIB_DEPRECATED_IN_2_32_FOR',
40 'GLIB_DEPRECATED_IN_2_34',
41 'GLIB_DEPRECATED_IN_2_34_FOR',
42 'GLIB_DEPRECATED_IN_2_36',
43 'GLIB_DEPRECATED_IN_2_36_FOR',
44 'GLIB_DEPRECATED_IN_2_38',
45 'GLIB_DEPRECATED_IN_2_38_FOR',
46 'GLIB_DEPRECATED_IN_2_40',
47 'GLIB_DEPRECATED_IN_2_40_FOR',
48 'GLIB_DEPRECATED_IN_2_42',
49 'GLIB_DEPRECATED_IN_2_42_FOR',
50 'GLIB_DEPRECATED_IN_2_44',
51 'GLIB_DEPRECATED_IN_2_44_FOR',
52 'GLIB_DEPRECATED_IN_2_46',
53 'GLIB_DEPRECATED_IN_2_46_FOR',
54 'GLIB_DEPRECATED_IN_2_48',
55 'GLIB_DEPRECATED_IN_2_48_FOR',
56 'GLIB_DEPRECATED_IN_2_50',
57 'GLIB_DEPRECATED_IN_2_50_FOR',
58 'GLIB_DEPRECATED_IN_2_52',
59 'GLIB_DEPRECATED_IN_2_52_FOR',
60 'GLIB_DEPRECATED_IN_2_54',
61 'GLIB_DEPRECATED_IN_2_54_FOR',
62 'GLIB_DEPRECATED_IN_2_56',
63 'GLIB_DEPRECATED_IN_2_56_FOR',
66 docpath = join_paths(glib_datadir, 'gtk-doc', 'html')
67 version_conf = configuration_data()
68 version_conf.set('GLIB_VERSION', meson.project_version())
70 input: 'version.xml.in',
71 output: 'version.xml',
72 configuration: version_conf
75 gtkdocincl = include_directories('.')
77 gnome.gtkdoc('gobject',
78 main_xml : 'gobject-docs.xml',
80 gobject_typesfile : join_paths(meson.current_source_dir(), 'gobject.types'),
82 dependencies : [libgobject_dep, libglib_dep],
83 include_directories : [gtkdocincl],
86 '--deprecated-guards=G_DISABLE_DEPRECATED',
87 '--ignore-decorators=' + '|'.join(ignore_decorators),
88 '--ignore-headers=' + ' '.join(ignore_headers),
92 'glib-genmarshal.xml',
105 '--html-dir=' + docpath,
106 '--extra-dir=' + join_paths(meson.current_build_dir(), '../glib/html'),
113 manpages = ['glib-mkenums', 'glib-genmarshal', 'gobject-query']
114 foreach page : manpages
115 custom_target(page + '-man',
116 input: page + '.xml',
118 command: xsltproc_command,
120 install_dir: man1_dir)