summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjellahlstedt@gmail.com>2023-01-04 10:53:56 +0100
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2023-01-04 10:53:56 +0100
commitb863edbe85b839ec14f468af4aebe5d6e51af380 (patch)
tree3fb316c7607c0bf1e7b5d3d297e66c67548cf32d
parente88e319aa50df010320dd15e7c802f92752dc8dc (diff)
downloadsigc++-b863edbe85b839ec14f468af4aebe5d6e51af380.tar.gz
Meson build: Don't copy files with configure_file()
It's deprecated from Meson 0.64. The replacement, fs.copyfile(), is not useful here. It only copies from the source directory to the build directory.
-rw-r--r--MSVC_NMake/meson.build8
-rw-r--r--meson.build5
2 files changed, 7 insertions, 6 deletions
diff --git a/MSVC_NMake/meson.build b/MSVC_NMake/meson.build
index 09078b3..f11412a 100644
--- a/MSVC_NMake/meson.build
+++ b/MSVC_NMake/meson.build
@@ -1,6 +1,6 @@
# MSVC_NMake
-# Input: pkg_conf_data, sigcxxconfig_h, project_build_root, python3,
+# Input: pkg_conf_data, sigcxxconfig_h_meson, project_build_root, python3,
# can_add_dist_script
# Output: sigc_rc
@@ -10,11 +10,11 @@ sigc_rc = configure_file(
configuration: pkg_conf_data,
)
-# Copy the generated configuration header into the MSVC project directory.
+# Make a copy of the generated configuration header in the MSVC project directory.
configure_file(
- input: sigcxxconfig_h,
+ input: sigcxxconfig_h_meson,
output: 'sigc++config.h',
- copy: true,
+ configuration: pkg_conf_data,
)
untracked_msvc_nmake = 'untracked' / 'MSVC_NMake'
diff --git a/meson.build b/meson.build
index c677697..82920bf 100644
--- a/meson.build
+++ b/meson.build
@@ -241,9 +241,10 @@ configure_file(
configuration: pkg_conf_data,
)
+sigcxxconfig_h_meson = files('sigc++config.h.meson')
install_includeconfigdir = install_libdir / sigcxx_pcname / 'include'
-sigcxxconfig_h = configure_file(
- input: 'sigc++config.h.meson',
+configure_file(
+ input: sigcxxconfig_h_meson,
output: 'sigc++config.h',
configuration: pkg_conf_data,
install_dir: install_includeconfigdir,