]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: Use @BASENAME@ more
authorAndrea Bolognani <abologna@redhat.com>
Tue, 25 Aug 2020 16:30:57 +0000 (18:30 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 1 Sep 2020 11:22:24 +0000 (13:22 +0200)
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>
include/libvirt/meson.build
meson.build
po/meson.build
src/network/meson.build
tools/meson.build

index 4b77a222f03acdc723bea43cf067833159b18281..601b729c220f55c57e34a38c7f61c06278f1af67 100644 (file)
@@ -25,7 +25,7 @@ include_conf.merge_from(conf)
 
 libvirt_common_h = configure_file(
   input: libvirt_common_h_in,
-  output: 'libvirt-common.h',
+  output: '@BASENAME@',
   configuration: include_conf,
 )
 
index 3949416f7f617a180d46a700f7189c73a4c21037..e193166a9b65dfd4611777f494a8504cf08724e2 100644 (file)
@@ -106,7 +106,7 @@ configmake_conf.set_quoted('SYSCONFDIR', sysconfdir)
 
 configure_file(
   input: 'configmake.h.in',
-  output: 'configmake.h',
+  output: '@BASENAME@',
   configuration: configmake_conf,
 )
 
@@ -2335,7 +2335,7 @@ run_conf = configuration_data()
 run_conf.set('abs_builddir', meson.build_root())
 configure_file(
   input: 'run.in',
-  output: 'run',
+  output: '@BASENAME@',
   configuration: run_conf,
 )
 run_command('chmod', 'a+x', meson.current_build_dir() / 'run')
index f9677408ec96660712c9f4042e08cc7d939ea2a9..69d8be726acced08f2f6c8a1028f708e0b72c8bb 100644 (file)
@@ -6,7 +6,7 @@ potfiles_conf.set('BUILDDIR', '')
 
 potfiles = configure_file(
   input: 'POTFILES.in',
-  output: 'POTFILES',
+  output: '@BASENAME@',
   configuration: potfiles_conf,
 )
 
index 2e031e811fc5b01e028559843eacc1da39e7cd0a..ae2848697ac73158703648ae1d4bf97b57e64120 100644 (file)
@@ -93,7 +93,7 @@ if conf.has('WITH_NETWORK')
 
     configure_file(
       input: 'default.xml.in',
-      output: 'default.xml',
+      output: '@BASENAME@',
       command: [
         'sed', '-e', 's|</name>|</name>\\n  <uuid>@0@</uuid>|'.format(uuid),
         '@INPUT@',
@@ -105,7 +105,7 @@ if conf.has('WITH_NETWORK')
   else
     configure_file(
       input: 'default.xml.in',
-      output: 'default.xml',
+      output: '@BASENAME@',
       copy: true,
       install: true,
       install_dir: confdir / 'qemu' / 'networks',
index e18adfa7f2d20035f6801e72015f5c475e807b4d..b8c6802f0ac58d5cf076743ed83266cd7aba07c3 100644 (file)
@@ -235,7 +235,7 @@ tools_conf.set('sysconfdir', sysconfdir)
 
 configure_file(
   input: 'virt-xml-validate.in',
-  output: 'virt-xml-validate',
+  output: '@BASENAME@',
   configuration: tools_conf,
   install: true,
   install_dir: bindir,
@@ -244,7 +244,7 @@ configure_file(
 
 configure_file(
   input: 'virt-pki-validate.in',
-  output: 'virt-pki-validate',
+  output: '@BASENAME@',
   configuration: tools_conf,
   install: true,
   install_dir: bindir,
@@ -254,7 +254,7 @@ configure_file(
 if conf.has('WITH_SANLOCK')
   configure_file(
     input: 'virt-sanlock-cleanup.in',
-    output: 'virt-sanlock-cleanup',
+    output: '@BASENAME@',
     configuration: tools_conf,
     install: true,
     install_dir: sbindir,
@@ -264,7 +264,7 @@ endif
 
 configure_file(
   input: 'libvirt-guests.sh.in',
-  output: 'libvirt-guests.sh',
+  output: '@BASENAME@',
   configuration: tools_conf,
   install: true,
   install_dir: libexecdir,
@@ -280,7 +280,7 @@ if init_script == 'systemd'
 
   configure_file(
     input: 'libvirt-guests.service.in',
-    output: 'libvirt-guests.service',
+    output: '@BASENAME@',
     configuration: tools_conf,
     install: true,
     install_dir: prefix / 'lib' / 'systemd' / 'system',