diff options
author | David Fort <contact@hardening-consulting.com> | 2018-02-21 10:43:56 +0100 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-04-08 22:00:45 +0300 |
commit | 6dea1777743fe26173d9c674b0870790a7caae92 (patch) | |
tree | 115139f40952d714faed6cf8248b771137f289ea /docs/markdown | |
parent | aed11affd3a68ec22a0527d82457c8ff365639ec (diff) | |
download | meson-6dea1777743fe26173d9c674b0870790a7caae92.zip meson-6dea1777743fe26173d9c674b0870790a7caae92.tar.gz meson-6dea1777743fe26173d9c674b0870790a7caae92.tar.bz2 |
add support for cmakedefine in configure_file()
The added format argument for configure_file allows to specify the kind of
file that is treated. It defaults to 'meson', but can also have the 'cmake'
or 'cmake@' value to treat config.h.in files in the cmake format with #cmakedefine
statements.
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/Reference-manual.md | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index d98fc19..0d3d1aa 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -186,7 +186,12 @@ 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. +- `format` *(added 0.46.0)* the format of defines. It defaults to `meson`, and so substitutes +`#mesondefine` statements and variables surrounded by `@` characters, you can also use `cmake` +to replace `#cmakedefine` statements and variables with the `${variable}` syntax. Finally you can use +`cmake@` in which case substitutions will apply on `#cmakedefine` statements and variables with +the `@variable@` syntax. - `input` the input file name. If it's not specified in configuration mode, all the variables in the `configuration:` object (see above) are written to the `output:` file. |