File: meson.build

package info (click to toggle)
devhelp 3.38.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,944 kB
  • sloc: ansic: 9,913; xml: 453; python: 314; perl: 216; javascript: 152; lisp: 30; sh: 24; makefile: 14
file content (45 lines) | stat: -rw-r--r-- 1,598 bytes parent folder | download
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
36
37
38
39
40
41
42
43
44
45
subdir('xml')

configure_file(
  input: 'devhelp-sections.txt',
  output: 'devhelp-@0@-sections.txt'.format(LIBDEVHELP_API_VERSION),
  copy: true
)

gtkdoc_module_name = 'devhelp-@0@'.format(LIBDEVHELP_API_VERSION)
html_dir = get_option('prefix') / GNOME.gtkdoc_html_dir(gtkdoc_module_name)

glib_docpath = dependency('glib-2.0').get_pkgconfig_variable('prefix') / 'share/gtk-doc/html/glib'
gobject_docpath = dependency('gobject-2.0').get_pkgconfig_variable('prefix') / 'share/gtk-doc/html/gobject'
gio_docpath = dependency('gio-2.0').get_pkgconfig_variable('prefix') / 'share/gtk-doc/html/gio'
gtk_docpath = dependency('gtk+-3.0').get_pkgconfig_variable('prefix') / 'share/gtk-doc/html/gtk3'
webkitgtk_docpath = dependency('webkit2gtk-4.0').get_pkgconfig_variable('prefix') / 'share/gtk-doc/html/webkit2gtk-4.0'

GNOME.gtkdoc(
  gtkdoc_module_name,
  main_xml: 'devhelp-docs.xml',
  src_dir: include_directories('../../devhelp/'),
  dependencies: LIBDEVHELP_SHARED_LIB_DEP,
  scan_args: ['--rebuild-types'],
  gobject_typesfile: 'devhelp-@0@.types'.format(LIBDEVHELP_API_VERSION),
  fixxref_args: [
    '--html-dir=@0@'.format(html_dir),
    '--extra-dir=@0@'.format(glib_docpath),
    '--extra-dir=@0@'.format(gobject_docpath),
    '--extra-dir=@0@'.format(gio_docpath),
    '--extra-dir=@0@'.format(gtk_docpath),
    '--extra-dir=@0@'.format(webkitgtk_docpath)
  ],
  content_files: [
    'api-breaks.xml'
  ],
  ignore_headers: [
    'dh-book-list-simple.h',
    'dh-dconf-migration.h',
    'dh-error.h',
    'dh-parser.h',
    'dh-search-context.h',
    'dh-util-lib.h'
  ],
  install: true
)