summaryrefslogtreecommitdiff
path: root/docs/reference/meson.build
blob: 16f64bb85934fc154caa7a75f1b7fa83697b615a (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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
private_headers = [
  'bacon-resize.h',
  'bacon-time-label.h',
  'bacon-video-controls-actor.h',
  'bacon-video-spinner-actor.h',
  'bacon-video-widget-common.h',
  'bacon-video-widget-gst-missing-plugins.h',
  'bacon-video-widget-properties.h',
  'clock.h',
  'debug.h',
  'gd-fullscreen-filter.h',
  'gd-tagged-entry.h',
  'gnome-screenshot-widget.h',
  'gsd-media-keys-window.h',
  'gstscreenshot.h',
  'icon-helpers.h',
  'screenshot-filename-builder.h',
  'totem-aspect-frame.h',
  'totem-chapters-utils.h',
  'totem-cmml-parser.h',
  'totem-dnd-menu.h',
  'totem-dvb-setup.h',
  'totem-edit-chapter.h',
  'totem-fullscreen.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-module.h',
  'totem-open-location.h',
  'totem-options.h',
  'totem-playlist.h',
  'totem-plugins-engine.h',
  'totem-plugin-manager.h',
  'totem-preferences.h',
  'totem-private.h',
  'totem-profile.h',
  'totem-properties-view.h',
  'totem-python-plugin.h',
  'totem-resources.h',
  'totem-sample-vala-plugin.h',
  'totem-screenshot-plugin.h',
  'totem-screenshot.h',
  'totem-search-entry.h',
  'totem-selection-toolbar.h',
  'totem-session.h',
  'totem-skipto-plugin.h',
  'totem-skipto.h',
  'totem-statusbar.h',
  'totem-subtitle-encoding.h',
  'totem-time-entry.h',
  'totem-time-helpers.h',
  'totem-time-label.h',
  'totem-tracker-widget.h',
  'totem-uri.h',
  'video-utils.h'
]

version_conf = configuration_data()
version_conf.set('TOTEM_VERSION_MAJOR', totem_major_version)
version_conf.set('TOTEM_VERSION_MINOR', totem_minor_version)
version_conf.set('TOTEM_VERSION_MICRO', totem_micro_version)

version_xml = 'version.xml'

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

doc_path = join_paths(totem_datadir, 'gtk-doc', 'html', meson.project_name())

gnome.gtkdoc(
  meson.project_name(),
  main_xml: meson.project_name() + '-docs.xml',
  src_dir: [
    top_inc,
    src_inc,
    plugins_inc,
    backend_inc
  ],
  dependencies: libtotem_dep,
  scan_args: [
    '--rebuild-types',
    '--ignore-headers=' + ' '.join(private_headers),
  ],
  mkdb_args: [
    '--sgml-mode',
    '--output-format=xml',
    '--name-space=' + meson.project_name()
  ],
  install: true,
  install_dir: doc_path
)