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: I152baf9da48e5bae8c36710f25b2a932835459ac
diff --git a/meson.build b/meson.build
index 6a5fef9..873e317 100644
--- a/meson.build
+++ b/meson.build
@@ -36,11 +36,11 @@
install: true
)
-configure_file(
- input: 'start-ipkvm.service',
- output: 'start-ipkvm.service',
- copy: true,
+fs = import('fs')
+fs.copyfile(
+ 'start-ipkvm.service',
+ install: true,
install_dir:
dependency('systemd').get_variable(
'systemdsystemunitdir')
-)
+)
\ No newline at end of file