File: meson.build

package info (click to toggle)
fwupd 2.0.20-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 32,504 kB
  • sloc: ansic: 277,388; python: 11,485; xml: 9,493; sh: 1,625; makefile: 167; cpp: 19; asm: 11; javascript: 9
file content (33 lines) | stat: -rw-r--r-- 740 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
if bashcomp.found()
  completions_dir = bashcomp.get_variable(
    pkgconfig: 'completionsdir',
    pkgconfig_define: bashcomp.version().version_compare('>= 2.10') ? ['datadir', datadir] : [
      'prefix',
      prefix,
    ],
  )

  con = configuration_data()
  con.set('localstatedir', localstatedir)

  configure_file(
    input: 'fwupdtool',
    output: 'fwupdtool',
    configuration: con,
    install: true,
    install_tag: 'runtime',
    install_dir: completions_dir,
  )

  if build_daemon
    configure_file(
      input: 'fwupdmgr',
      output: 'fwupdmgr',
      configuration: con,
      install: true,
      install_tag: 'runtime',
      install_dir: completions_dir,
    )
  endif  # build_daemon

endif # bashcomp.found()