[go: up one dir, main page]

File: meson.build

package info (click to toggle)
switcheroo-control 2.4-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 260 kB
  • sloc: ansic: 523; python: 292; xml: 200; makefile: 22; sh: 1
file content (54 lines) | stat: -rw-r--r-- 1,476 bytes parent folder | download | duplicates (4)
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
content_files = files()

version_conf = configuration_data()
version_conf.set('VERSION', meson.project_version())

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

content_files += gnome.gdbus_codegen(
  meson.project_name(),
  sources: meson.source_root() / 'src' / 'net.hadess.SwitcherooControl.xml',
  interface_prefix: 'net.hadess',
  namespace: 'SwitcherooControl',
  docbook: 'docs',
  build_by_default: true,
)

gnome.gtkdoc(
  meson.project_name(),
  main_xml: meson.project_name() + '-docs.xml',
  content_files: content_files,
  src_dir: [
    meson.source_root() /'src',
    meson.build_root() / 'src',
  ],
  ignore_headers: ['info-cleanup.h'],
  scan_args: ['--rebuild-sections'],
)

man1_dir = join_paths(get_option('prefix'), get_option('mandir'), 'man1')

xsltproc = find_program('xsltproc', required : true)
xsltproc_command = [
  xsltproc,
  '--nonet',
  '--stringparam', 'man.output.quietly', '1',
  '--stringparam', 'funcsynopsis.style', 'ansi',
  '--stringparam', 'man.th.extra1.suppress', '1',
  '--stringparam', 'man.authors.section.enabled', '0',
  '--stringparam', 'man.copyright.section.enabled', '0',
  '-o', '@OUTPUT@',
  'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl',
  '@INPUT@',
]

custom_target('switcherooctl-man',
  input: 'switcherooctl.xml',
  output: 'switcherooctl.1',
  command: xsltproc_command,
  install: true,
  install_dir: man1_dir)