diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2023-09-21 11:21:11 -0700 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2023-10-09 17:33:48 -0400 |
| commit | cbca1919481902efbd5dadda3cc80db84fd75f0c (patch) | |
| tree | 706d343996e1f76481171e7457ed28752552616c /docs/yaml/functions | |
| parent | 8490eaa29dd9b5a7fd36bf9c2f871008139ede7a (diff) | |
| download | meson-cbca1919481902efbd5dadda3cc80db84fd75f0c.tar.gz | |
interpreter: Handle BuildTarget.vala_args as Files in the interpreter
Way back in Meson 0.25, support was added to `vala_args` for Files.
Strangely, this was never added to any other language, though it's been
discussed before. For type safety, it makes more sense to handle this in
the interpreter level, and pass only strings into the build IR.
This is accomplished by adding a `depend_files` field to the
`BuildTarget` class (which is not exposed to the user), and adding the
depend files into that field, while converting the arguments to relative
string paths. This ensures both the proper build dependencies happen, as
well as that the arguments are always strings.
Diffstat (limited to 'docs/yaml/functions')
| -rw-r--r-- | docs/yaml/functions/_build_target_base.yaml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/yaml/functions/_build_target_base.yaml b/docs/yaml/functions/_build_target_base.yaml index 3f0e88158..1db49a531 100644 --- a/docs/yaml/functions/_build_target_base.yaml +++ b/docs/yaml/functions/_build_target_base.yaml @@ -48,6 +48,11 @@ kwargs: compiler flags to use for the given language; eg: `cpp_args` for C++ + vala_args: + type: list[str | file] + description: | + Compiler flags for Vala. Unlike other languages this may contain Files + sources: type: str | file | custom_tgt | custom_idx | generated_list | structured_src description: Additional source files. Same as the source varargs. |
