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
|
version_conf = configuration_data()
version_conf.set('LIBGWEATHER_VERSION', meson.project_version())
configure_file(input: 'version.xml.in', output: 'version.xml', configuration: version_conf)
glib_prefix = dependency('glib-2.0').get_pkgconfig_variable('prefix')
glib_docpath = glib_prefix / 'share/gtk-doc/html'
gtk_prefix = dependency('gtk+-3.0').get_pkgconfig_variable('prefix')
gtk_docpath = gtk_prefix / 'share/gtk-doc/html'
docpath = datadir / 'gtk-doc/html'
gnome.gtkdoc('libgweather',
main_xml: 'libgweather-docs.xml',
src_dir: include_directories('../libgweather'),
dependencies: libgweather_dep,
gobject_typesfile: 'libgweather.types',
ignore_headers: [
'gweather-enum-types.h',
'gweather-parser.h',
'gweather-private.h',
],
mkdb_args: ['--xml-mode', '--output-format=xml'],
scan_args: [
'--deprecated-guards="GWEATHER_DISABLE_DEPRECATED"'
],
fixxref_args: [
'--html-dir=@0@'.format(docpath),
'--extra-dir=@0@'.format(glib_docpath / 'glib'),
'--extra-dir=@0@'.format(glib_docpath /'gobject'),
'--extra-dir=@0@'.format(glib_docpath / 'gio'),
'--extra-dir=@0@'.format(gtk_docpath / 'gtk'),
],
install: true,
)
|