build: Change configure_file() to fs.copyfile() when copy is set

Meson has preferred `fs.copyfile()` since 0.62. This fixes a set of
Meson warnings.

Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
This commit is contained in:
Philip Withnall
2023-10-25 11:20:36 +01:00
parent 8831f65a4d
commit 4ce58df854
4 changed files with 8 additions and 13 deletions

View File

@@ -30,6 +30,7 @@ meson.override_find_program('gdbus-codegen', gdbus_codegen)
codegen_dir = join_paths(glib_datadir, 'glib-2.0', 'codegen')
gdbus_codegen_built_files = []
gdbus_codegen_built_targets = []
gdbus_codegen_built_files += configure_file(input : 'config.py.in',
output : 'config.py',
install_dir : codegen_dir,
@@ -39,8 +40,7 @@ gdbus_codegen_built_files += configure_file(input : 'config.py.in',
foreach f : gdbus_codegen_files
# Copy these into the builddir so that gdbus-codegen can be used uninstalled
# and then install it too so that it can be used after installation
gdbus_codegen_built_files += configure_file(input : f, output : f,
install_dir : codegen_dir,
install_tag : 'bin-devel',
copy : true)
gdbus_codegen_built_targets += fs.copyfile(f, f,
install_dir : codegen_dir,
install_tag : 'bin-devel')
endforeach