summaryrefslogtreecommitdiff
path: root/docs/reference/meson.build
blob: f04e2e47577339abaa8e6feea240c934e59435d4 (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
doc_module = meson.project_name()

private_headers = [
  'bacon-time-label.h',
  'bacon-video-widget-gst-missing-plugins.h',
  'bacon-video-widget-properties.h',
  'icon-helpers.h',
  'screenshot-filename-builder.h',
  'totem-gallery-progress.h',
  'totem-gallery.h',
  'totem-grilo.h',
  'totem-gst-helpers.h',
  'totem-gst-pixbuf-helpers.h',
  'totem-main-toolbar.h',
  'totem-menu.h',
  'totem-open-location.h',
  'totem-options.h',
  'totem-playlist.h',
  'totem-plugins-engine.h',
  'totem-preferences.h',
  'totem-private.h',
  'totem-profile.h',
  'totem-resources.h',
  'totem-screenshot-plugin.h',
  'totem-search-entry.h',
  'totem-selection-toolbar.h',
  'totem-session.h',
  'totem-skipto.h',
  'totem-subtitle-encoding.h',
  'totem-time-entry.h',
  'totem-time-helpers.h',
  'totem-uri.h',
]

version_conf = configuration_data()
version_conf.set('VERSION', totem_version)
version_xml = 'version.xml'

configure_file(
  input: version_xml + '.in',
  output: version_xml,
  configuration: version_conf
)

doc_path = join_paths(totem_prefix, gnome.gtkdoc_html_dir(doc_module))

gnome.gtkdoc(
  doc_module,
  main_xml: doc_module + '-docs.xml',
  src_dir: join_paths(meson.source_root(), 'src'),
  gobject_typesfile: join_paths(meson.current_source_dir(), 'totem.types'),
  dependencies: libtotem_dep,
  scan_args: '--ignore-headers=' + ' '.join(private_headers),
  mkdb_args: '--name-space=' + doc_module,
  fixxref_args: '--html-dir=' + doc_path,
  install: true,
  install_dir: doc_path
)