summaryrefslogtreecommitdiff
path: root/docs/reference/meson.build
blob: 38792607ace2066ed6d1b4bb3c6fd3bc3a70c99f (plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
ignore_headers = [
  'gconstructor.h',
  'soup.h',
  'soup-enum-types.h',
  'soup-message-private.h',
  'soup-session-private.h',
  'soup-auth-digest-private.h',
  'soup-brotli-decompressor.h',
  'soup-connection.h',
  'soup-connection-auth.h',
  'soup-message-queue-item.h',
  'soup-path-map.h',
  'soup-http-input-stream.h',
  'soup-converter-wrapper.h',
  'soup-body-input-stream.h',
  'soup-body-output-stream.h',
  'soup-client-input-stream.h',
  'soup-content-processor.h',
  'soup-content-sniffer-stream.h',
  'soup-io-stream.h',
  'soup-cache-input-stream.h',
  'soup-filter-input-stream.h',
  'soup-cookie-jar-sqlite.h',
  'soup-cache-private.h',
  'soup-cache-client-input-stream.h',
  'soup-logger-input-stream.h',
  'soup-logger-private.h',
  'soup-socket.h',
  'soup-socket-properties.h',
  'soup-websocket-extension-manager-private.h',
  'soup-misc.h',
  'soup-date-utils-private.h',
  'soup-resources.h',
  'soup-private-enum-types.h',
  'soup-server-message-private.h',
  'soup-message-io-data.h',
  'soup-message-io-source.h',
  'soup-uri-utils-private.h',
  'soup-session-feature-private.h',
  'soup-message-metrics-private.h',
  'soup-client-message-io.h',
  'soup-message-io-completion.h',
]

mkdb_args = [
  '--output-format=xml'
]

scan_args = [
  '--deprecated-guards=SOUP_DISABLE_DEPRECATED',
  '--rebuild-types',
  '--ignore-decorators="SOUP_DEPRECATED\w*\s*\([^)]*\)|SOUP_DEPRECATED\w*|SOUP_AVAILABLE\w*"'
]

glib_prefix = glib_dep.get_pkgconfig_variable('prefix')
glib_docpath = glib_prefix / 'share' / 'gtk-doc' / 'html'

gnome.gtkdoc('libsoup-3.0',
  main_xml : 'libsoup-3.0-docs.xml',
  src_dir : srcdir,
  ignore_headers : ignore_headers,
  namespace : 'soup',
  mkdb_args : mkdb_args,
  scan_args : scan_args,
  fixxref_args : [
    '--html-dir=@0@'.format(get_option('datadir') / 'gtk-doc', 'html'),
    '--extra-dir=@0@'.format(glib_docpath / 'glib'),
    '--extra-dir=@0@'.format(glib_docpath /'gobject'),
    '--extra-dir=@0@'.format(glib_docpath /'gio'),
  ],
  dependencies : libsoup_dep,
  install : true,
  content_files: [
    'build-howto.xml',
    'client-basic.xml',
    'client-advanced.xml',
    'client-tls.xml',
    'server-howto.xml',
    'migrating-from-libsoup-2.xml',
  ],
)