meson/test cases/vala/27 file as command line arg...
Dylan Baker cbca191948 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.
2023-10-09 17:33:48 -04:00
..
meson.build interpreter: Handle BuildTarget.vala_args as Files in the interpreter 2023-10-09 17:33:48 -04:00
my-resources.xml interpreter: Handle BuildTarget.vala_args as Files in the interpreter 2023-10-09 17:33:48 -04:00
mywidget.ui interpreter: Handle BuildTarget.vala_args as Files in the interpreter 2023-10-09 17:33:48 -04:00
mywidget.vala interpreter: Handle BuildTarget.vala_args as Files in the interpreter 2023-10-09 17:33:48 -04:00