mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user