summaryrefslogtreecommitdiff
path: root/docs/reference/meson.build
blob: 82a1aedd2a368e3ba66e7073313f984e3066c61e (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
subdir('xml')

doc_module = 'gdata'

ignore_headers = [
  'common.h',
  'gdata-batch-feed.h',
  'gdata-batch-private.h',
  'gdata-buffer.h',
  'gdata-documents-enums.h',
  'gdata-documents-utils.h',
  'gdata-dummy-authorizer.h',
  'gdata-enums.h',
  'gdata-exif-tags.h',
  'gdata-gd-feed-link.h',
  'gdata-georss-where.h',
  'gdata-marshal.h',
  'gdata-media-enums.h',
  'gdata-media-group.h',
  'gdata-parser.h',
  'gdata-picasaweb-enums.h',
  'gdata-private.h',
  'gdata-youtube-enums.h',
  'mock-resolver.h',
  'mock-server.h',
  # FIXME: theses files are created by enums workaround
  'gdata-documents-enums-in.h',
  'gdata-enums-in.h',
  'gdata-freebase-enums-in.h',
  'gdata-media-enums-in.h',
  'gdata-picasaweb-enums-in.h',
  'gdata-youtube-enums-in.h',
]

ignore_files = []

if not enable_goa
  ignore_headers += ['gdata-goa-authorizer.h']
  ignore_files += ['gdata-goa-authorizer.c']
endif

scan_args = [
  '--rebuild-types',
  '--deprecated-guards=LIBGDATA_DISABLE_DEPRECATED',
]

content_files = [
  'gdata-overview.xml',
  'gdata-running.xml',
]

# Images to copy into HTML directory.
html_assets = [
  'structure.png',
  'data-flow.png',
  'cancellation.png',
]

content_files += configure_file(
  input: 'gdata-sections.txt.in',
  output: '@BASENAME@',
  configuration: {'COMMENT': (enable_goa) ? '': '#'},
)

gnome.gtkdoc(
  doc_module,
  main_xml: doc_module + '-docs.xml',
  src_dir: gdata_inc_dir,
  ignore_headers: ignore_headers,
  dependencies: libgdata_dep,
  namespace: doc_module,
  scan_args: scan_args,
  mkdb_args: '--ignore-files=' + ' '.join(ignore_files),
  fixxref_args: '--html-dir=' + (gdata_prefix / gnome.gtkdoc_html_dir(gdata_name)),
  content_files: content_files,
  html_assets: html_assets,
  install: true,
)