mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 15:33:39 +02:00
build: Use fs.copyfile() instead of configure_file()
Because Meson complains about using `configure_file(copy: true)`. Includes improvements by Xavier Claessens. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
@@ -28,18 +28,17 @@ 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_files += configure_file(input : 'config.py.in',
|
||||
gdbus_codegen_depend_files = configure_file(input : 'config.py.in',
|
||||
output : 'config.py',
|
||||
install_dir : codegen_dir,
|
||||
install_tag : 'bin-devel',
|
||||
configuration : gdbus_codegen_conf)
|
||||
|
||||
gdbus_codegen_depends = []
|
||||
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_depends += fs.copyfile(f,
|
||||
install_dir : codegen_dir,
|
||||
install_tag : 'bin-devel')
|
||||
endforeach
|
||||
|
Reference in New Issue
Block a user