Dylan Baker
6f6db0f2e3
interpreter: use typed_pos_args configuration_data
3 years ago
Dylan Baker
982973f303
interpreter: use typed_pos_args for alias_target
3 years ago
Dylan Baker
09d7da19c1
interpreter: use typed_kwargs for include_directories
3 years ago
Dylan Baker
3135b130b8
interpreter: use typed_pos_args for include_directories
3 years ago
Dylan Baker
5aed9dd939
interpreter: use typed_pos_args for add_test_setup
3 years ago
Dylan Baker
e71a6544c5
interpreter: use typed_pos_args for join_paths
3 years ago
Dylan Baker
9ecd578167
interpreter: use typed_pos_args for set_variable
3 years ago
Dylan Baker
20c5dfe869
interpreter: use typed_pos_args for get_variable
3 years ago
Dylan Baker
4d05f9d64b
interpreter: use typed_pos_args for is_variable
3 years ago
Dylan Baker
30a9bb60ee
interpreter: use typed_pos_args for is_disabler
3 years ago
Eli Schwartz
bd6f46e723
condense lines
3 years ago
Eli Schwartz
dd31891c1f
more f-strings too complex to be caught by pyupgrade
3 years ago
Eli Schwartz
c4f5f6364e
pyupgrade
3 years ago
Tristan Partin
6f3f43bb2d
Flatten test suite value
...
This behavior is more inline with the rest of Meson
3 years ago
Daniel Mensinger
971a0b1775
fix: get_variable default variables are not ObjectHolders ( fixes #8936 )
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
4a0a6a8083
modules: modules need to return either an ExtensionModlue or a
...
NewExtensionModule object
So that we get the found() method.
3 years ago
Dylan Baker
351a1e9ec9
interpreter: use typed_pos_args for func_import
...
and make the helper method private
3 years ago
Simon Ser
1f3adc4dbe
Add feed arg to custom_target()
4 years ago
Daniel Mensinger
3e396b3782
fix: Always explicitly set encoding for text files ( fixes #8263 )
4 years ago
Daniel Mensinger
8f7343831b
refactor: Refactor BothLibraries logic
...
This commit introduces a new type of `HoldableObject`: The
`SecondLevelHolder`. The primary purpose of this class is
to handle cases where two (or more) `HoldableObject`s are
stored at the same time (with one default object). The
best (and currently only) example here is the `BothLibraries`
class.
4 years ago
Daniel Mensinger
3f889606c7
Split compiler detection from Environment
...
This moves all the compiler detection logic into the new
compilers.detect module. This dramatically reduces the size
and complexity of Environment.
4 years ago
Xavier Claessens
0bef89b0c2
interpreter: Empty list used to be allowed in install_headers/man
...
That change introduced when porting to @typed_pos_args breaks gtk4. We
could decide to deprecate/warn but should not error for backward
compatibility.
4 years ago
Daniel Mensinger
0c4dd81c4d
fix: Handling BothLibraries objects ( fixes #8907 )
4 years ago
Dylan Baker
d636b92c1a
install_*: FileMode doesn't need to be None
...
There's no reason to allow None into the backend, it already has code to
check that all of the values of the FileMode object are None, so let's
use that, which is much simpler all the way down.
4 years ago
Dylan Baker
7213b7d81f
interpreter: use typed_kwargs for install_man
4 years ago
Dylan Baker
7619f31f71
interpreter: man sections can be up to 9 on many platforms
...
Linux and FreeBSD use section 9 for kernel man pages, so we should allow
that.
4 years ago
Dylan Baker
9611bd8244
interpreter: use typed_pos_args for install_man
4 years ago
Dylan Baker
f4d2efbed3
interpreter: use typed_kwargs for install_headers
4 years ago
Dylan Baker
251dff56fb
interpreter: use typed_pos_args for install_headers
4 years ago
Dylan Baker
ea3d85a1c0
interpreter: use typed_kwargs for install_data
4 years ago
Dylan Baker
a551e76137
interpreter: use typed_pos_args for install_data
4 years ago
Dylan Baker
596c8d4af5
interpreter: use typed_kwargs for install_subdir
4 years ago
Dylan Baker
3d940fec98
interpreter: use typed_pos_args for install_subdir
4 years ago
Dylan Baker
a024f432dd
interpreter: add overload for source_strings_to_files
...
when only passing strings or Files we only get back Files. This is
useful for the install_* methods
4 years ago
Laurin-Luis Lehning
281f5abee3
interpreter: Replace manual kwarg validation in compiler.get_supported_arguments with @typed_kwargs
4 years ago
Daniel Mensinger
5cd9f88d6c
fix: Ensure that build targets have all methods from ExternalProgram
...
As a side-effect from #8885 `find_program()` returns now `Executable`
objects when `meson.override_find_program` is called with an
executable target. To resolve this conflict the missing methods
from `ExternalProgram` are added to `BuildTarget`.
4 years ago
Laurin-Luis Lehning
d5ed8f61a5
interpreter: Move argument checks from add_*_arguments to compiler.get_supported_arguments
4 years ago
Laurin-Luis Lehning
e44587fc73
interpreter: Consider the compiler language before checking arguments
4 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.
4 years ago
Daniel Mensinger
a73791b529
fix: Fix strange holder_map bug in combination with subprojects
...
I was unable to reproduce this in a minimal test-case, so there
is currently no new test :(
4 years ago
Daniel Mensinger
f1ac7db2e6
fix: Fix set_variable not holderifying ( fixes #8904 )
4 years ago
Daniel Mensinger
7c757dff71
holders: Fix the remaining code to respect the holder changes
4 years ago
Daniel Mensinger
34c28dc92c
holders: remove unholder
4 years ago
Daniel Mensinger
84a3e459a8
holders: Introduce BothLibraries
4 years ago
Daniel Mensinger
c2c7f7c9d7
holders: Ensure that InterpreterBase is the sole instance for (un)holderifying
4 years ago
Daniel Mensinger
6879e84c48
holders: Move get_version from directly to ExternalProgram
4 years ago
Daniel Mensinger
66b32a4591
holders: Introduce HoldableObject
4 years ago
Daniel Mensinger
d601227cb2
interpreter: Add FileHolder and remove specical case for File
4 years ago
Daniel Mensinger
63ade7d937
interpreter: Add a new MesonInterpreterObject for non-elementary objects
4 years ago