meson: Replace configure_file with fs.copyfile
configure_file is deprecated since 0.64.0, and replace it with
fs.copyfile.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I31b5f1f540bd103e2a90f70469e5fae408dacd87
diff --git a/meson.build b/meson.build
index 3d52081..7ca6c9b 100644
--- a/meson.build
+++ b/meson.build
@@ -25,12 +25,11 @@
'systemdsystemunitdir',
pkgconfig_define: ['prefix', get_option('prefix')])
-configure_file(
- copy: true,
- input: 'ssifbridge.service',
+fs = import('fs')
+fs.copyfile(
+ 'ssifbridge.service',
install: true,
- install_dir: systemd_system_unit_dir,
- output: 'ssifbridge.service'
+ install_dir: systemd_system_unit_dir
)
executable('ssifbridged','ssifbridged.cpp',