File: meson.build

package info (click to toggle)
gnome-session 49.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,716 kB
  • sloc: ansic: 7,392; xml: 591; python: 125; makefile: 48; sh: 42
file content (41 lines) | stat: -rw-r--r-- 798 bytes parent folder | download
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
xml_man_pages = []
if get_option('man')
  subdir('man')
endif

if not get_option('docbook')
  subdir_done()
endif

xmlto_searchpath = [
  meson.current_build_dir(),
  meson.current_build_dir() / '..' / 'gnome-session',
]

xmlto_command = [
  find_program('xmlto'),
  '-o', '@OUTPUT@',
  '--searchpath', ':'.join(xmlto_searchpath),
  '-m', files('config.xsl'),
  'html',
  '@INPUT@'
]

xml_version = configure_file(
  input: 'version.xml.in',
  output: 'version.xml',
  configuration: {
    'VERSION': meson.project_version(),
  },
)

custom_target(
  'gnome-session-docs',
  input: 'gnome-session.xml',
  output: 'html',
  command: xmlto_command,
  depend_files: xml_man_pages + xml_version,
  depends: xml_dbus_docs,
  install: true,
  install_dir: session_datadir / 'doc' / meson.project_name()
)