meson/mesonbuild/interpreter
Eli Schwartz f6eaf55906
add_*_script: fix missing FeatureNew for non-string arguments
In commit 2c0eaf5c4f support was added for
install scripts to accept found programs, built executables, or custom targets.

In commit c239ce31f5, this was extended to
dist and postconf scripts too (although it was documented that those
should not accept targets that are built by ninja).

Despite the commit/PR claiming that all of these should always accept
files and configured files, this was only true for arguments other than
the first, until commit f808c955ea.

In amongst all this, FeatureNew checks were never registered for the
first argument, only for additional arguments, until late in the game
with the addition of FeatureNew checks for File objects.

Fix this in part by moving the 3 different File checks into one, inside the
function that processes the first script, and make that function check
for FeatureNew on anything else too.
2021-12-30 15:14:17 -05:00
..
primitives fix regression that broke string.format with list objects 2021-11-04 18:57:14 -04:00
__init__.py interpreter: Holderify arrays and dicts 2021-10-06 22:37:18 +02:00
compiler.py make sure files arguments to compiler.compiles and friends, performs rebuild 2021-11-28 11:52:36 -05:00
dependencyfallbacks.py dep.name(): return dependency name even if dependency is not found 2021-10-26 09:36:22 -04:00
interpreter.py restore additional info about the potential cause of find_program failing 2021-12-20 16:03:43 -05:00
interpreterobjects.py Fix mypy errors 2021-12-17 14:00:28 -05:00
kwargs.py interpreter: use typed_kwargs for run_command 2021-11-29 18:12:33 -08:00
mesonmain.py add_*_script: fix missing FeatureNew for non-string arguments 2021-12-30 15:14:17 -05:00
type_checking.py interpreter: use common DEPENDS_KW 2021-12-07 16:12:23 -05:00