mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2026-10-24 00:49:00 +03:00
build: Fix a deprecation warning from Meson 1.12
It warns that configured files must be referred to by reference rather than by name, and that support for the latter will be dropped with Meson 2.0. Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
@@ -9,7 +9,7 @@ installed_cdata = configuration_data()
|
||||
installed_cdata.set('installed_tests_dir', installed_tests_execdir)
|
||||
|
||||
foreach service_file_name : dbus_service_files
|
||||
configure_file(
|
||||
service_file = configure_file(
|
||||
input: service_file_name + '.in',
|
||||
output: service_file_name,
|
||||
configuration: srcdir_cdata,
|
||||
@@ -17,12 +17,12 @@ foreach service_file_name : dbus_service_files
|
||||
if installed_tests_enabled
|
||||
# Build a second copy of the service file for the installed
|
||||
# version of the tests.
|
||||
configure_file(
|
||||
input: service_file_name + '.in',
|
||||
installed_service_file = configure_file(
|
||||
input: service_file,
|
||||
output: service_file_name + '.to-install',
|
||||
configuration: installed_cdata,
|
||||
)
|
||||
install_data(meson.current_build_dir() / service_file + '.to-install',
|
||||
install_data(installed_service_file,
|
||||
install_dir: installed_tests_execdir / 'services',
|
||||
install_tag: 'tests',
|
||||
rename: [service_file_name],
|
||||
|
||||
Reference in New Issue
Block a user