summaryrefslogtreecommitdiffstats
path: root/docs/reference/shell/meson.build
blob: 5936ea3f693be23fd291597076cadaebb9422817 (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
private_headers = [
  'gactionmuxer.h',
  'gactionobservable.h',
  'gactionobserver.h',
  'shell-network-agent.h',
]

exclude_directories = [
  'calendar-server',
  'hotplug-sniffer',
  'st',
  'tray'
]

ifaces = [
  ['org.gnome.Shell.Screenshot', 'org.gnome.Shell.Screenshot.xml'],
  ['org.gnome.ShellSearchProvider', 'org.gnome.Shell.SearchProvider.xml'],
  ['org.gnome.ShellSearchProvider2', 'org.gnome.Shell.SearchProvider2.xml']
]
foreach iface : ifaces
  custom_target(iface[0] + ' docs',
    input: '../../../data/dbus-interfaces/@0@.xml'.format(iface[0]),
    output: 'doc-gen-' + iface[1],
    command: [
      'gdbus-codegen',
      '--interface-prefix=@0@.'.format(iface[0]),
      '--generate-docbook', 'doc-gen',
      '--output-directory', '@OUTDIR@',
      '@INPUT@'
    ],
    build_by_default: true
  )
endforeach

configure_file(
  input: 'version.xml.in',
  output: 'version.xml',
  configuration: version_conf
)

gnome.gtkdoc('shell',
  main_sgml: 'shell-docs.sgml',
  src_dir: [
    join_paths(meson.source_root(), 'src'),
    join_paths(meson.build_root(), 'src')
  ],
  scan_args: [
    '--ignore-headers=' + ' '.join(private_headers + exclude_directories)
  ],
  install: true
)