Debian Codegraph @

docs/reference/meson.build

raw
1 subdir('xml')
2
3 gtkdoc_module_name = '@0@-@1@'.format(meson.project_name(), TEPL_API_VERSION)
4
5 FS.copyfile(
6 '@[email protected]'.format(meson.project_name()),
7 '@[email protected]'.format(gtkdoc_module_name)
8 )
9
10 html_dir = get_option('prefix') / GNOME.gtkdoc_html_dir(gtkdoc_module_name)
11
12 glib_docpath = dependency('glib-2.0').get_variable(pkgconfig: 'prefix') / 'share/gtk-doc/html/glib'
13 gobject_docpath = dependency('gobject-2.0').get_variable(pkgconfig: 'prefix') / 'share/gtk-doc/html/gobject'
14 gio_docpath = dependency('gio-2.0').get_variable(pkgconfig: 'prefix') / 'share/gtk-doc/html/gio'
15 gtk_docpath = dependency('gtk+-3.0').get_variable(pkgconfig: 'prefix') / 'share/gtk-doc/html/gtk3'
16 gsv_docpath = dependency('libgedit-gtksourceview-300').get_variable(pkgconfig: 'prefix') / 'share/gtk-doc/html/libgedit-gtksourceview-300'
17 amtk_docpath = dependency('libgedit-amtk-5').get_variable(pkgconfig: 'prefix') / 'share/gtk-doc/html/libgedit-amtk-5'
18 gfls_docpath = dependency('libgedit-gfls-1').get_variable(pkgconfig: 'prefix') / 'share/gtk-doc/html/libgedit-gfls-1'
19
20 GNOME.gtkdoc(
21 gtkdoc_module_name,
22 main_xml: '@[email protected]'.format(meson.project_name()),
23 src_dir: include_directories('../../tepl/'),
24 dependencies: TEPL_LIB_DEP,
25 scan_args: ['--rebuild-types'],
26 gobject_typesfile: '@[email protected]'.format(gtkdoc_module_name),
27 fixxref_args: [
28 '--html-dir=@0@'.format(html_dir),
29 '--extra-dir=@0@'.format(glib_docpath),
30 '--extra-dir=@0@'.format(gobject_docpath),
31 '--extra-dir=@0@'.format(gio_docpath),
32 '--extra-dir=@0@'.format(gtk_docpath),
33 '--extra-dir=@0@'.format(gsv_docpath),
34 '--extra-dir=@0@'.format(amtk_docpath),
35 '--extra-dir=@0@'.format(gfls_docpath)
36 ],
37 content_files: [
38 'api-breaks.xml',
39 'intro.xml',
40 ],
41 ignore_headers: TEPL_PRIVATE_HEADERS,
42 install: true
43 )