aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter
AgeCommit message (Collapse)AuthorFilesLines
2021-08-09interpreter: Fix spurious warning in configure_data()Xavier Claessens1-2/+2
This is a regression when porting to typed_pos_args().
2021-08-09interpreter: Fix missing subsubproject summary when subproject failsXavier Claessens1-3/+4
In the case main->subp->subsubp, if subsubp succeed to configure but subp subsequentially fails, subsubp is still being built but its summary was missing.
2021-08-09interpreter: Fix holder_map not being updated when subproject failsXavier Claessens1-12/+8
Fixes: #9038
2021-08-07Fix --force-fallack-for with --wrap-mode=nofallbackXavier Claessens1-4/+4
Fixes: #9065
2021-08-06fix spelling error in user output ("depencency" -> "dependency")Felix Schwarz1-2/+2
2021-08-04interpreterbase/decorators: use a named function for lowering stringsDylan Baker1-1/+9
Mypy gets confused by the lambda, so we might as well just use a named function.
2021-08-04interpreter/typing: Add some type annotationsDylan Baker1-2/+2
We really need PEP464 to annotate many fo thse correctly, but until then we can manually annotate many of them to fix typing issues.
2021-08-04interpreter: split keyword definitions out of the interpreterDylan Baker2-104/+121
2021-07-22Merge pull request #8992 from dcbaker/submit/modernize-python-module-dependencyJussi Pakkanen1-3/+6
Cleanup the python module
2021-07-21Fix meson.version().version_compare() regression in subprojectXavier Claessens3-3/+3
2021-07-13modules/python: simplify a number of interfacesDylan Baker1-3/+6
Including not calling back into `Interpreter.func_*`, which is not a good idea both from a type saftey and perforamance point of view. Instead there's now a shared _impl method
2021-07-07interpreter: remove stringArgs usesDylan Baker1-2/+1
It's only used now on a files that always raises an exception anyway, might as well just not do any checking and reduces the uses of that function
2021-07-07interpreter: use typed_pos_args for filesDylan Baker1-17/+11
2021-07-07interpreter: use typed_pos_args for add_langaugesDylan Baker1-6/+7
2021-07-07interpreter: use typed_pos_args for projectDylan Baker1-5/+3
2021-07-07interpreter: use typed_pos_args for subdirDylan Baker1-2/+2
2021-07-07interpreter: use typed_pos_args for assertDylan Baker1-12/+6
2021-07-07interpreter: use typed_pos_args for subprojectDylan Baker1-4/+2
2021-07-07interpreter: use typed_pos_args for get_optionDylan Baker1-4/+3
2021-07-07interpreter: use typed_pos_args configuration_dataDylan Baker1-6/+3
2021-07-07interpreter: use typed_pos_args for alias_targetDylan Baker1-10/+4
2021-07-07interpreter: use typed_kwargs for include_directoriesDylan Baker2-3/+8
2021-07-07interpreter: use typed_pos_args for include_directoriesDylan Baker1-3/+4
2021-07-07interpreter: use typed_pos_args for add_test_setupDylan Baker1-4/+2
2021-07-07interpreter: use typed_pos_args for join_pathsDylan Baker1-3/+3
2021-07-07interpreter: use typed_pos_args for set_variableDylan Baker1-3/+2
2021-07-07interpreter: use typed_pos_args for get_variableDylan Baker1-12/+9
2021-07-07interpreter: use typed_pos_args for is_variableDylan Baker1-6/+3
2021-07-07interpreter: use typed_pos_args for is_disablerDylan Baker1-5/+4
2021-07-05condense linesEli Schwartz1-2/+1
2021-07-05more f-strings too complex to be caught by pyupgradeEli Schwartz3-22/+17
2021-07-05pyupgradeEli Schwartz1-1/+1
2021-07-03Merge pull request #8950 from dcbaker/submit/import-required-disabledJussi Pakkanen2-16/+40
Add required and disabled to import, modules.found method
2021-07-02Flatten test suite valueTristan Partin1-2/+2
This behavior is more inline with the rest of Meson
2021-07-02fix: get_variable default variables are not ObjectHolders (fixes #8936)Daniel Mensinger2-4/+4
2021-06-30interpreter: add required and disabled to importDylan Baker2-19/+45
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.
2021-06-30modules: modules need to return either an ExtensionModlue or aDylan Baker1-2/+2
NewExtensionModule object So that we get the found() method.
2021-06-30interpreter: use typed_pos_args for func_importDylan Baker1-18/+16
and make the helper method private
2021-06-29Add feed arg to custom_target()Simon Ser1-1/+3
2021-06-29fix: Always explicitly set encoding for text files (fixes #8263)Daniel Mensinger1-3/+3
2021-06-26refactor: Refactor BothLibraries logicDaniel Mensinger2-5/+6
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.
2021-06-25Split compiler detection from EnvironmentDaniel Mensinger1-1/+1
This moves all the compiler detection logic into the new compilers.detect module. This dramatically reduces the size and complexity of Environment.
2021-06-23interpreter: Empty list used to be allowed in install_headers/manXavier Claessens1-2/+2
That change introduced when porting to @typed_pos_args breaks gtk4. We could decide to deprecate/warn but should not error for backward compatibility.
2021-06-23Merge pull request #8884 from dcbaker/submit/type-and-annotate-install-functionsJussi Pakkanen2-100/+175
Add annotations for the various install_* functions
2021-06-23Merge pull request #8912 from mensinda/fixBothLibrariesJussi Pakkanen2-4/+9
Fix `BothLibraries` processing
2021-06-22fix: Handling BothLibraries objects (fixes #8907)Daniel Mensinger2-4/+9
2021-06-22Merge pull request #8905 from mensinda/refactorFixJussi Pakkanen1-10/+7
fix: Fix set_variable not holderifying (fixes #8904)
2021-06-22Merge pull request #8898 from e820/interpreter-required-argumentsDylan Baker2-4/+18
interpreter: Add checked kwarg to compiler.get_supported_arguments
2021-06-22install_*: FileMode doesn't need to be NoneDylan Baker1-3/+1
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.
2021-06-22interpreter: use typed_kwargs for install_manDylan Baker2-12/+19