Olexa Bilaniuk
5bb93490c4
Add minimum NVIDIA driver version entry in table for newly-released CUDA Toolkit 11.4.0.
...
We skip 11.3.1 because it shares the same version requirements as 11.3.0.
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
1416ba0b8d
modules: add classes with the found method
...
These will be needed for checking whether a module is found or not if it
is required false.
3 years ago
Daniel Mensinger
3e396b3782
fix: Always explicitly set encoding for text files ( fixes #8263 )
3 years ago
Dylan Baker
3e66bd4035
modules/qt: use _impl private methods to avoid incorrect FeatureNew
...
`qt.preprocess` dispatches to the individual methods instead of
duplicating all of the logic itself, but this means that it goes through
the type checking, and feature checking a second time. To avoid this we
need to use a private helper method instead.
Fixes #8920
3 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.
3 years ago
Xavier Claessens
d3d95d39be
gnome: add update_desktop_database to post_install()
3 years ago
Xavier Claessens
39c6571a46
gnome: Set GSETTINGS_SCHEMA_DIR in devenv
3 years ago
Daniel Mensinger
0c4dd81c4d
fix: Handling BothLibraries objects ( fixes #8907 )
3 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
Dylan Baker
79fec1ce4e
modules/qt: use append rather than extend in preprocess
...
Because that's what we need, of course
4 years ago
Dylan Baker
f7eda0e822
modules/qt: allow string values for include_directories
...
This should have been supported before, but wasn't.
4 years ago
Eli Schwartz
bbcc91c1e5
expose SystemDependency and BuiltinDependency as toplevel classes
...
mesonbuild.dependencies.__init__ exposes configtool, pkgconfig, cmake
and more in __init__.py, so there's no reason we should be tying
SystemDependency to the internal organization implementation of the
subpackage!
In the 2nd previous commit it took quite some effort to figure out that
the python module "does not exist" because of import errors while
refactoring something completely different.
4 years ago
Eli Schwartz
493dc6ed10
move base class for system dependencies into base.py
...
In accordance with review comments; it's small enough this seems fitting.
4 years ago
Dylan Baker
bfaa529a7a
modules/qt: sort and clean up dependencies
4 years ago
Dylan Baker
2a8a6bb881
modules/qt: Return GeneratedListHolder instead of GeneratedList
...
This really shouldn't be necissary, but fixing the typing annotations of
ModuleReturnValue is much harder than just returning the Holder
directly.
4 years ago
Dylan Baker
c422621317
interpreterobjects|build: use typed_kwargs for generator.process
4 years ago
Dylan Baker
2043461b87
build: Pass name of generator to initializer
...
It's really a property of the Generator what name to use, not something
that should be passed to each call to process files.
4 years ago
Dylan Baker
35bdaada1d
interpreter|build: Do Generator keyword argument checking in the interpreter
...
For qt we already have all of the necissary checking in place. Now in
the interpreter we have the same, the intrperter does all of the
checking, then passed the arguments to the Generator initializer, which
just assigns the passed values. This is nice, neat, and clean and fixes
the layering violatino between build and interpreter.
4 years ago
Dylan Baker
d2c1ab40a0
interpreter|build: Pass just the executable down to Generator
...
This requires that the interpreter has done the validation, which it now
does at all callsites. This simplifies the Generator initializer.
4 years ago
Dylan Baker
d064466e8b
modues/qt: Make use of typed_kwargs since/deprecation abiltiy
4 years ago
Dylan Baker
3824e30f7a
modules/qt: fix remaining typing issues and add to run_mypy
...
This just ignores the fact taht Generator is unchecked. Generator needs
some real love in terms of type checking.
4 years ago
Dylan Baker
3c4c7d0429
modules/qt: use type checking and annotations for compile_translations
4 years ago
Dylan Baker
2bc7a1b3da
modules/qt: fully annotate and check qt.has_tools
4 years ago
Dylan Baker
61ddceb3b9
modules/qt: Make use of the default=[] availability
4 years ago
Dylan Baker
ffa83f7f8a
modules/qt: Type anotations and cleanups
...
This adds a number of missing type annotations to existing functions,
and makes a few members protected instead of public, as they were never
meant to be public
4 years ago
Dylan Baker
ce3a7ec19d
modules: pass all proxied arguments
4 years ago
Dylan Baker
e23f78141a
modules: Fix type annotation imports
4 years ago
Dylan Baker
118f70fede
modules/qt: have pre-process dispatch to moc_compile
...
for ode sharing and simplicity
4 years ago
Dylan Baker
2322804a4d
modules/qt: Add a compile_moc method
...
This method only compiles moc resources, nothing else
4 years ago
Dylan Baker
ec592a4eca
modules/qt: use the compile_ui method inside the preprocess method
...
for code deduplication
4 years ago
Dylan Baker
fcdb0f9879
modules/qt: Add a compile_ui method
...
Which is the same functionality split out of preprocess
4 years ago
Dylan Baker
ed06ae3db1
modules/qt: Dispatch the preprocess method to the compile_resources method
...
Which removes code duplication and makes our testing better
4 years ago
Dylan Baker
d27948b1dc
modules/qt: Add a `compile_resources` method
...
This is a separate method for just handling qrc resources.
4 years ago
Dylan Baker
4575ed3d31
modules/qt: Deprecated the preprocess sources keyword argument
4 years ago
Dylan Baker
0fe3dc6571
modules/qt: Deprecated the *sources variadic argument to preproccess
...
It's confusing, and it's a duplicate of the `sources` keyword argument,
which has always existed.
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
86704261a7
interpreter: use typed_pos_args for func_test and func_benchmark
...
Requires a few small changes to the Rust module, as it calls `func_test`
4 years ago
Dylan Baker
203a548d60
dependencies: Use the SystemDependency
...
This fixes these dependencies, which currently return the name of the
dependency as the type.
Fixes #8877
4 years ago
Eli Schwartz
c3f5c2e745
cuda module: fully buy into new modules API
...
In commit 3340284805
the new ModuleObject
API got further updated to hide self.interpreter; at the time, the CUDA
module got transferred over to the wrapper which does provide it.
But it works fine without self.interpreter, so let's just use the best
base class.
4 years ago
Daniel Mensinger
95b70bcb97
deps: Split dependencies.base
...
Split the Factory and dependency classes out
of the base.py script to improve maintainability.
4 years ago
Dylan Baker
201dc64226
add a couple more type annotations
4 years ago
Dylan Baker
6aef800ba8
modules/fs: Use typed_kwargs
4 years ago
Xavier Claessens
2fb24b18e1
unstable_external_project: Remove unused imports
4 years ago
Xavier Claessens
8abbc5cc5d
modules: Replace find_program_impl() by state.find_program()
4 years ago
Xavier Claessens
2e02ef6592
modules: Add methods dict everywhere
...
This fix calling random internal methods from meson.build as long as
they were not prefixed by underscore.
4 years ago
Xavier Claessens
a734bcfc83
modules: Stop using ModuleReturnValue where it's not needed
...
It is only needed in functions that need to add targets to the
interpreter.
4 years ago