From ef3992f1cc2db7467fef2395ac3ec191eea154f0 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 6 Sep 2019 18:52:50 -0400 Subject: configure_file(): Allow multiple inputs in command mode Closes: #5893 --- docs/markdown/Reference-manual.md | 5 ++++- docs/markdown/snippets/configure_file_enhancements.md | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 docs/markdown/snippets/configure_file_enhancements.md (limited to 'docs/markdown') diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index bdcbe1f..c701caf 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -251,7 +251,10 @@ These are all the supported keyword arguments: `output`. Available since v0.41.0. - `command` as explained above, if specified, Meson does not create the file itself but rather runs the specified command, which allows - you to do fully custom file generation. + you to do fully custom file generation. Since *0.52.0* the command can contain + file objects and more than one file can be passed to the `input` keyword + argument, see [`custom_target()`](#custom_target) for details about string + substitutions. - `copy` *(added 0.47.0)* as explained above, if specified Meson only copies the file from input to output. - `format` *(added 0.46.0)* the format of defines. It defaults to `meson`, and so substitutes diff --git a/docs/markdown/snippets/configure_file_enhancements.md b/docs/markdown/snippets/configure_file_enhancements.md new file mode 100644 index 0000000..35a64b4 --- /dev/null +++ b/docs/markdown/snippets/configure_file_enhancements.md @@ -0,0 +1,3 @@ +## Enhancements to `configure_file()` + +`input:` now accepts multiple input file names for `command:`-configured file. -- cgit v1.1