diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2018-12-17 21:48:02 +0100 |
---|---|---|
committer | Iñigo Martínez <inigomartinez@gmail.com> | 2019-01-04 16:33:53 +0100 |
commit | dc34f1be6a3c1fa6d5615ad5d647003e7ce3196f (patch) | |
tree | 46017945914ab9e69467f12a69bb5ee7180ef07d /test | |
parent | 12f4c5a98e1b4a1a0b5fba45439dab74d12519bb (diff) | |
download | gvfs-dc34f1be6a3c1fa6d5615ad5d647003e7ce3196f.tar.gz |
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.
Diffstat (limited to 'test')
-rw-r--r-- | test/meson.build | 8 |
1 files changed, 3 insertions, 5 deletions
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, |