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

@@ -890,10 +890,7 @@ if not meson.is_cross_build()
'@INPUT@'])
# referenced by test.gresource.xml
test_generated_txt = configure_file(input : 'test1.txt',
output : 'test-generated.txt',
copy : true,
)
test_generated_txt = fs.copyfile('test1.txt', 'test-generated.txt')
resources_extra_sources = [
test_gresource,