From 50aabc01293afc4778a7c881ffa0c3a531c39dbe Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Sat, 19 May 2018 18:36:05 +0100 Subject: [PATCH] Document @PLAINNAME@ and @BASENAME@ substitutions in custom_target(command:) Since f3ff8fe6 (0.39.0), this has a common implementation with the same substitution in generators, but I think they existed earlier. @BASENAME@ is used internally by the custom target generated by windows.compile_resources() --- docs/markdown/Reference-manual.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index 44ac287b2..9b1c96f02 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -282,6 +282,8 @@ the following special string substitutions: - `@OUTPUT0@` `@OUTPUT1@` `...` the full path to the output with the specified array index in `output` - `@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 +- `@BASENAME@`: the input filename, with extension removed The returned object also has methods that are documented in the [object methods section](#custom-target-object) below.