diff options
author | Nicholas Vinson <nvinson234@gmail.com> | 2023-09-04 13:04:00 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2023-09-09 07:30:56 -0400 |
commit | b51bce070eead2b65e56f087acf23829a6304ae2 (patch) | |
tree | 57ce789fe3fce4ddb8fbd98d33d2cf1d697166f2 /docs/yaml/functions/configure_file.yaml | |
parent | 3c47216fe945a45834daa38f71e287dcfaf345c7 (diff) | |
download | meson-b51bce070eead2b65e56f087acf23829a6304ae2.zip meson-b51bce070eead2b65e56f087acf23829a6304ae2.tar.gz meson-b51bce070eead2b65e56f087acf23829a6304ae2.tar.bz2 |
Add macro_name option to configure_file
Allow macro_name to be speficied as a parameter to configure_file().
This allows C macro-style include guards to be added to
configure_file()'s output when a template file is not given. This change
simplifies the creation of configure files that define macros with
dynamic names and want the C-style include guards.
Diffstat (limited to 'docs/yaml/functions/configure_file.yaml')
-rw-r--r-- | docs/yaml/functions/configure_file.yaml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/yaml/functions/configure_file.yaml b/docs/yaml/functions/configure_file.yaml index 6fb972b..34cb3c1 100644 --- a/docs/yaml/functions/configure_file.yaml +++ b/docs/yaml/functions/configure_file.yaml @@ -144,3 +144,10 @@ kwargs: Set the file encoding for the input and output file. The supported encodings are those of python3, see [standard-encodings](https://docs.python.org/3/library/codecs.html#standard-encodings). + + macro_name: + type: str + since: 1.3.0 + description: | + When specified, macro guards will be used instead of '#pragma once'. The + macro guard name will be the specified name. |