Tristan Partin
959e1bb2e3
Add typed_kwargs to add_languages()
3 years ago
Dylan Baker
a1fb3199c8
interpreterobjects: Add TypedDict annoations for `extract_search_dirs`
...
This allows for more accurate type checking
3 years ago
Dylan Baker
09d7da19c1
interpreter: use typed_kwargs for include_directories
3 years ago
Dylan Baker
bc4201a7f1
interpreter: add required and disabled to import
...
This is useful both from the perspective of optional functionality that
requires a module, and also as I continue to progress with Meson++,
which will probably not implement all of the modules that Meson itself
does.
3 years ago
Dylan Baker
7213b7d81f
interpreter: use typed_kwargs for install_man
3 years ago
Dylan Baker
f4d2efbed3
interpreter: use typed_kwargs for install_headers
3 years ago
Dylan Baker
ea3d85a1c0
interpreter: use typed_kwargs for install_data
3 years ago
Dylan Baker
596c8d4af5
interpreter: use typed_kwargs for install_subdir
3 years ago
Laurin-Luis Lehning
d5ed8f61a5
interpreter: Move argument checks from add_*_arguments to compiler.get_supported_arguments
3 years ago
Laurin-Luis Lehning
c9ad98ef5e
interprter: Add required kwarg to add_(project|global)_arguments
...
To avoid manual compiler support checks add_project_arguments and
add_global_arguments receive a new keyword argument to perform
them automatically.
3 years ago
Daniel Mensinger
7c757dff71
holders: Fix the remaining code to respect the holder changes
4 years ago
Dylan Baker
c422621317
interpreterobjects|build: use typed_kwargs for generator.process
4 years ago
Dylan Baker
491c756dc9
interpreter: use typed_kwargs for func_generator
...
Do the type checking in a nice tidy way
4 years ago
Dylan Baker
2bc7a1b3da
modules/qt: fully annotate and check qt.has_tools
4 years ago
Dylan Baker
e2266e8708
interpreter: use typed_*args for test and benchmark
...
this also requires some changes to the Rust module, as it calls into the
test code.
4 years ago
Dylan Baker
3f9a81e7f1
interpreter: use typed_kwargs for the add_*_arguments family
...
This makes use of the new convertor and validator arguments, so that we
can check that the languages passed are in fact vaild, and then convert
the native boolean into a MachineChoice internally.
4 years ago