mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
meson: Use @BASENAME@ more
This patch takes care of just the obvious cases: there are many more situations where the data we pass to configure_file() could likely be obtained in a more effective way, but we can address the low-hanging fruits as a first approximation. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
31fb929eca
commit
88c3490aa1
@ -25,7 +25,7 @@ include_conf.merge_from(conf)
|
|||||||
|
|
||||||
libvirt_common_h = configure_file(
|
libvirt_common_h = configure_file(
|
||||||
input: libvirt_common_h_in,
|
input: libvirt_common_h_in,
|
||||||
output: 'libvirt-common.h',
|
output: '@BASENAME@',
|
||||||
configuration: include_conf,
|
configuration: include_conf,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ configmake_conf.set_quoted('SYSCONFDIR', sysconfdir)
|
|||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
input: 'configmake.h.in',
|
input: 'configmake.h.in',
|
||||||
output: 'configmake.h',
|
output: '@BASENAME@',
|
||||||
configuration: configmake_conf,
|
configuration: configmake_conf,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -2335,7 +2335,7 @@ run_conf = configuration_data()
|
|||||||
run_conf.set('abs_builddir', meson.build_root())
|
run_conf.set('abs_builddir', meson.build_root())
|
||||||
configure_file(
|
configure_file(
|
||||||
input: 'run.in',
|
input: 'run.in',
|
||||||
output: 'run',
|
output: '@BASENAME@',
|
||||||
configuration: run_conf,
|
configuration: run_conf,
|
||||||
)
|
)
|
||||||
run_command('chmod', 'a+x', meson.current_build_dir() / 'run')
|
run_command('chmod', 'a+x', meson.current_build_dir() / 'run')
|
||||||
|
@ -6,7 +6,7 @@ potfiles_conf.set('BUILDDIR', '')
|
|||||||
|
|
||||||
potfiles = configure_file(
|
potfiles = configure_file(
|
||||||
input: 'POTFILES.in',
|
input: 'POTFILES.in',
|
||||||
output: 'POTFILES',
|
output: '@BASENAME@',
|
||||||
configuration: potfiles_conf,
|
configuration: potfiles_conf,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ if conf.has('WITH_NETWORK')
|
|||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
input: 'default.xml.in',
|
input: 'default.xml.in',
|
||||||
output: 'default.xml',
|
output: '@BASENAME@',
|
||||||
command: [
|
command: [
|
||||||
'sed', '-e', 's|</name>|</name>\\n <uuid>@0@</uuid>|'.format(uuid),
|
'sed', '-e', 's|</name>|</name>\\n <uuid>@0@</uuid>|'.format(uuid),
|
||||||
'@INPUT@',
|
'@INPUT@',
|
||||||
@ -105,7 +105,7 @@ if conf.has('WITH_NETWORK')
|
|||||||
else
|
else
|
||||||
configure_file(
|
configure_file(
|
||||||
input: 'default.xml.in',
|
input: 'default.xml.in',
|
||||||
output: 'default.xml',
|
output: '@BASENAME@',
|
||||||
copy: true,
|
copy: true,
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: confdir / 'qemu' / 'networks',
|
install_dir: confdir / 'qemu' / 'networks',
|
||||||
|
@ -235,7 +235,7 @@ tools_conf.set('sysconfdir', sysconfdir)
|
|||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
input: 'virt-xml-validate.in',
|
input: 'virt-xml-validate.in',
|
||||||
output: 'virt-xml-validate',
|
output: '@BASENAME@',
|
||||||
configuration: tools_conf,
|
configuration: tools_conf,
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: bindir,
|
install_dir: bindir,
|
||||||
@ -244,7 +244,7 @@ configure_file(
|
|||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
input: 'virt-pki-validate.in',
|
input: 'virt-pki-validate.in',
|
||||||
output: 'virt-pki-validate',
|
output: '@BASENAME@',
|
||||||
configuration: tools_conf,
|
configuration: tools_conf,
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: bindir,
|
install_dir: bindir,
|
||||||
@ -254,7 +254,7 @@ configure_file(
|
|||||||
if conf.has('WITH_SANLOCK')
|
if conf.has('WITH_SANLOCK')
|
||||||
configure_file(
|
configure_file(
|
||||||
input: 'virt-sanlock-cleanup.in',
|
input: 'virt-sanlock-cleanup.in',
|
||||||
output: 'virt-sanlock-cleanup',
|
output: '@BASENAME@',
|
||||||
configuration: tools_conf,
|
configuration: tools_conf,
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: sbindir,
|
install_dir: sbindir,
|
||||||
@ -264,7 +264,7 @@ endif
|
|||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
input: 'libvirt-guests.sh.in',
|
input: 'libvirt-guests.sh.in',
|
||||||
output: 'libvirt-guests.sh',
|
output: '@BASENAME@',
|
||||||
configuration: tools_conf,
|
configuration: tools_conf,
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: libexecdir,
|
install_dir: libexecdir,
|
||||||
@ -280,7 +280,7 @@ if init_script == 'systemd'
|
|||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
input: 'libvirt-guests.service.in',
|
input: 'libvirt-guests.service.in',
|
||||||
output: 'libvirt-guests.service',
|
output: '@BASENAME@',
|
||||||
configuration: tools_conf,
|
configuration: tools_conf,
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: prefix / 'lib' / 'systemd' / 'system',
|
install_dir: prefix / 'lib' / 'systemd' / 'system',
|
||||||
|
Loading…
Reference in New Issue
Block a user