From 3ba59ec6deaaa5e0efca2882bf9536319f3f60ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1igo=20Mart=C3=ADnez?= Date: Mon, 17 Dec 2018 21:48:02 +0100 Subject: build: Use generators placeholders Functions derived from generators as `configure_file`, `custom_target` and `i18n.merge_file` can use placeholders like `@BASENAME@` that removes the extension from the input filename string. The output string has been replaced by this placeholder that allows in some cases the use of less variables. --- test/meson.build | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'test') diff --git a/test/meson.build b/test/meson.build index d91a65e3..bc53a4f4 100644 --- a/test/meson.build +++ b/test/meson.build @@ -5,11 +5,9 @@ if enable_installed_tests tests_conf = configuration_data() tests_conf.set('testdir', installed_tests_execdir) - session = 'session.conf' - configure_file( - input: session + '.in', - output: session, + input: 'session.conf.in', + output: '@BASENAME@', configuration: tests_conf, install: true, install_dir: installed_tests_execdir, @@ -19,7 +17,7 @@ if enable_installed_tests configure_file( input: all_tests + '.in', - output: all_tests + '.test', + output: '@BASENAME@.test', configuration: tests_conf, install: true, install_dir: installed_tests_metadir, -- cgit v1.2.1