Skip to content

Commit 0fa45fa

Browse files
committed
Meson build: Don't copy files with configure_file()
It's deprecated since Meson 0.64. The replacement, fs.copyfile(), is not useful here. It only copies from the source directory to the build directory.
1 parent 36c26f5 commit 0fa45fa

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

MSVC_NMake/libxml++/meson.build

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MSVC_NMake/libxml++
22

3-
# Input: pkg_conf_data, xmlxxconfig_h
3+
# Input: pkg_conf_data, xmlxxconfig_h_meson
44
# Output: xmlxx_rc
55

66
xmlxx_rc = configure_file(
@@ -9,9 +9,9 @@ xmlxx_rc = configure_file(
99
configuration: pkg_conf_data,
1010
)
1111

12-
# Copy the generated configuration header into the MSVC project directory.
12+
# Make a copy of the generated configuration header in the MSVC project directory.
1313
configure_file(
14-
input: xmlxxconfig_h,
14+
input: xmlxxconfig_h_meson,
1515
output: 'libxml++config.h',
16-
copy: true,
16+
configuration: pkg_conf_data,
1717
)

meson.build

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,10 @@ configure_file(
350350
install_dir: install_pkgconfigdir,
351351
)
352352

353+
xmlxxconfig_h_meson = files('libxml++config.h.meson')
353354
install_includeconfigdir = install_libdir / xmlxx_pcname / 'include'
354-
xmlxxconfig_h = configure_file(
355-
input: 'libxml++config.h.meson',
355+
configure_file(
356+
input: xmlxxconfig_h_meson,
356357
output: 'libxml++config.h',
357358
configuration: pkg_conf_data,
358359
install_dir: install_includeconfigdir,

0 commit comments

Comments
 (0)