mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-24 17:05:05 +00:00
28 lines
669 B
Meson
28 lines
669 B
Meson
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_dir: completions_dir,
|
|
)
|
|
|
|
if build_daemon
|
|
binaries = ['fwupdmgr']
|
|
if get_option('compat_cli')
|
|
binaries += ['fwupdagent']
|
|
endif
|
|
install_data(binaries,
|
|
install_dir: completions_dir,
|
|
)
|
|
endif # build_daemon
|
|
|
|
endif # bashcomp.found()
|