diff options
| author | Stas Sergeev <stsp@users.sourceforge.net> | 2024-05-07 21:46:55 +0300 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2024-05-09 12:27:35 -0700 |
| commit | cfd57180eef9036c7167c5682b9f3055a540fccc (patch) | |
| tree | 65f8ed46c385af05d6387aec6d16b1fcd311564f /docs/yaml/functions | |
| parent | f8aefe20703e3d64710fa675d511f9bef77dc32a (diff) | |
| download | meson-cfd57180eef9036c7167c5682b9f3055a540fccc.tar.gz | |
implement @PLAINNAME0@ and @BASENAME0@
@PLAINNAME@ and @BASENAME@ cannot be used in custom_target()
with multiple inputs. For those, similar macros are needed
with an index.
Fixes #13164
Diffstat (limited to 'docs/yaml/functions')
| -rw-r--r-- | docs/yaml/functions/configure_file.yaml | 4 | ||||
| -rw-r--r-- | docs/yaml/functions/custom_target.yaml | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/docs/yaml/functions/configure_file.yaml b/docs/yaml/functions/configure_file.yaml index 34cb3c1bd..20b96aa6e 100644 --- a/docs/yaml/functions/configure_file.yaml +++ b/docs/yaml/functions/configure_file.yaml @@ -123,7 +123,9 @@ kwargs: type: str description: | The output file name. *(since 0.41.0)* may contain - `@PLAINNAME@` or `@BASENAME@` substitutions. In configuration mode, + `@PLAINNAME@` or `@BASENAME@` substitutions, as well as *(since 1.5.0)* + their indexed versions, like `@PLAINNAME0@` or `@BASENAME0@`. + In configuration mode, the permissions of the input file (if it is specified) are copied to the output file. diff --git a/docs/yaml/functions/custom_target.yaml b/docs/yaml/functions/custom_target.yaml index cd5c60e2e..585d2602a 100644 --- a/docs/yaml/functions/custom_target.yaml +++ b/docs/yaml/functions/custom_target.yaml @@ -31,7 +31,9 @@ description: | - `@OUTDIR@`: the full path to the directory where the output(s) must be written - `@DEPFILE@`: the full path to the dependency file passed to `depfile` - `@PLAINNAME@`: the input filename, without a path + - `@PLAINNAME0@` `@PLAINNAME1@` `...` *(since 1.5.0)*: the input filename without a path, with the specified array index in `input` - `@BASENAME@`: the input filename, with extension removed + - `@BASENAME0@` `@BASENAME1@` `...` *(since 1.5.0)*: the input filename with extension removed, with the specified array index in `input` - `@PRIVATE_DIR@` *(since 0.50.1)*: path to a directory where the custom target must store all its intermediate files. - `@SOURCE_ROOT@`: the path to the root of the source tree. Depending on the backend, this may be an absolute or a relative to current workdir path. |
