sdkagent

meson API reference

271 public APIs from meson (mesonbuild/meson) — 162 classes, 40 functions, 69 methods. Signatures extracted by static analysis of the actual source.

Repository: mesonbuild/meson

KindCount
Classes162
Functions40
Methods69

API list

classmesonbuild.arglist.CompilerArgs
List-like class that manages a list of compiler arguments.
classmesonbuild.arglist.Dedup
What kind of deduplication can be done to compiler args.
classmesonbuild.ast.visitor.FullAstVisitor
Visit all nodes, including Symbol and Whitespaces
funcmesonbuild.backend.ninjabackend.NinjaBackend.compute_path(file:FileOrString) -> str
Make source files absolute
classmesonbuild.backend.ninjabackend.TargetDependencyScannerInfo
Information passed to the depscanner about a target.
funcmesonbuild.backend.vs2010backend.split_o_flags_args(args:T.List[str]) -> T.List[str]
Splits any /O args and returns them.
methodmesonbuild.build.Build.copy_for_build_machine() -> Build
Create a build-only copy for build machine subprojects.
methodmesonbuild.build.BuildTarget.get_using_msvc() -> bool
Check if the dynamic linker is MSVC.
methodmesonbuild.build.BuildTarget.process_sourcelist(sources:T.Iterable['SourceOutputs']) -> None
Split sources into generated and static sources.
methodmesonbuild.build.CustomTarget.is_internal() -> bool
Returns True if this is a not installed static library.
classmesonbuild.build.CustomTargetIndex
A special opaque object returned by indexing a CustomTarget.
methodmesonbuild.build.CustomTargetIndex.is_internal() -> bool
Returns True if this is a not installed static library
classmesonbuild.build.FileMaybeInTargetPrivateDir
Union between 'File' and 'FileInTargetPrivateDir'
classmesonbuild.build.GeneratedList
The output of generator.process.
classmesonbuild.build.IncludeDirs
Internal representation of an include_directories call.
methodmesonbuild.build.IncludeDirs.abs_string_list(sourcedir:str, builddir:str) -> T.List[str]
Convert IncludeDirs object to a list of absolute string paths.
methodmesonbuild.build.Target.construct_id_from_path(subdir:str, name:str, type_suffix:str) -> str
Construct target ID from subdir, name and type suffix.
methodmesonbuild.cargo.builder.Builder.function(name:str, pos:T.Optional[T.List[mparser.BaseNode]]=None, kw:T.Optional[T.Mapping[str, mparser.BaseNode]]=None) -> mparser.FunctionNode
Create a function call.
methodmesonbuild.cargo.builder.Builder.method(name:str, id_:mparser.BaseNode, pos:T.Optional[T.List[mparser.BaseNode]]=None, kw:T.Optional[T.Mapping[str, mparser.BaseNode]]=None) -> mparser.MethodNode
Create a method call.
classmesonbuild.cargo.cfg.IR
Base IR node for Cargo CFG.
funcmesonbuild.cargo.cfg.lexer(raw:str) -> _LEX_STREAM
Lex a cfg() expression.
funcmesonbuild.cargo.cfg.parse(ast:_LEX_STREAM) -> IR
Parse the tokenized list into Meson AST.
methodmesonbuild.cargo.interpreter.Interpreter.features() -> T.List[str]
Get the features list.
methodmesonbuild.cargo.interpreter.PackageConfiguration.get_features_args() -> T.List[str]
Get feature configuration arguments.
methodmesonbuild.cargo.interpreter.PackageState.get_dependency_name(rust_abi:T.Optional[RUST_ABI]) -> str
Get the dependency name for a package with the given ABI.
methodmesonbuild.cargo.interpreter.PackageState.get_env_args(rustc:RustCompiler, environment:Environment, subdir:str) -> T.List[str]
Get environment variable arguments for rustc.
methodmesonbuild.cargo.interpreter.PackageState.get_env_dict(environment:Environment, subdir:str) -> T.Dict[str, str]
Get environment variables for this package.
methodmesonbuild.cargo.interpreter.PackageState.get_lint_args(rustc:RustCompiler) -> T.List[str]
Get lint arguments for this package.
methodmesonbuild.cargo.interpreter.PackageState.get_rustc_args(environment:Environment, subdir:str, machine:MachineChoice) -> T.List[str]
Get rustc arguments for this package.
funcmesonbuild.cargo.interpreter.load_cargo_lock(filename:str, subproject_dir:str) -> T.Optional[CargoLock]
Convert Cargo.lock into a list of wraps
classmesonbuild.cargo.manifest.Benchmark
Representation of a Cargo Benchmark Entry.
classmesonbuild.cargo.manifest.Binary
Representation of a Cargo Bin Entry.
classmesonbuild.cargo.manifest.CargoLock
A description of the Cargo.lock file format.
classmesonbuild.cargo.manifest.CargoLockPackage
A description of a package in the Cargo.lock file format.
classmesonbuild.cargo.manifest.Dependency
Representation of a Cargo Dependency Entry.
classmesonbuild.cargo.manifest.Example
Representation of a Cargo Example Entry.
classmesonbuild.cargo.manifest.Library
Representation of a Cargo Library Entry.
classmesonbuild.cargo.manifest.Lint
Cargo Lint definition.
classmesonbuild.cargo.manifest.Manifest
Cargo Manifest definition.
classmesonbuild.cargo.manifest.Test
Representation of a Cargo Test Entry.
classmesonbuild.cargo.manifest.Workspace
Cargo Workspace definition.
classmesonbuild.cargo.raw.Badge
An entry in the badge section.
classmesonbuild.cargo.raw.CargoLock
A description of the Cargo.lock file format.
classmesonbuild.cargo.raw.CargoLockPackage
A description of a package in the Cargo.lock file format.
classmesonbuild.cargo.raw.FromWorkspace
An entry or section that is copied from the workspace.
classmesonbuild.cargo.raw.Target
Target entry in the Manifest File.
classmesonbuild.cargo.raw.Workspace
The representation of a workspace.
classmesonbuild.cargo.version.SemVer
A SemVer 2.0.0 version, suitable for ordering.
funcmesonbuild.cargo.version.api(cargo_ver:str) -> str
Determine the API version implied by a Cargo version requirement.
funcmesonbuild.cargo.version.split(cargo_ver:str) -> T.Iterable[tuple[str, str]]
Canonicalization of Cargo version requirements
classmesonbuild.compilers.asm.ASMCompiler
Shared base class for all ASM Compilers (Assemblers)
classmesonbuild.compilers.c.ArmclangCCompiler
Keil armclang
classmesonbuild.compilers.c.IntelClCCompiler
Intel "ICL" compiler abstraction.
classmesonbuild.compilers.c.VisualStudioLikeCCompilerMixin
Shared methods that apply to MSVC-like C compilers.
classmesonbuild.compilers.c.Xc32CCompiler
Microchip XC32 C compiler.
classmesonbuild.compilers.compilers.CompileResult
The result of Compiler.compiles (and friends).
methodmesonbuild.compilers.compilers.Compiler.get_argument_syntax() -> str
Returns the argument family type.
methodmesonbuild.compilers.compilers.Compiler.get_assert_args(disable:bool) -> T.List[str]
Get arguments to enable or disable assertion.
methodmesonbuild.compilers.compilers.Compiler.get_compiler_check_args(mode:CompileCheckMode) -> T.List[str]
Arguments to pass the compiler and/or linker for checks.
methodmesonbuild.compilers.compilers.Compiler.get_crt_static() -> bool
Is this target using static CRT?
methodmesonbuild.compilers.compilers.Compiler.get_debug_args(is_debug:bool) -> T.List[str]
Arguments required for a debug build.
methodmesonbuild.compilers.compilers.Compiler.get_feature_args(kwargs:DFeatures, build_to_src:str) -> T.List[str]
Used by D for extra language features.
methodmesonbuild.compilers.compilers.Compiler.get_preprocessor() -> Compiler
Get compiler's preprocessor.
methodmesonbuild.compilers.compilers.Compiler.get_target_libdir() -> str
Where is the libdir for the current machine located
methodmesonbuild.compilers.compilers.Compiler.has_function(funcname:str, prefix:str, *extra_args:T.Optional[T.List[str]]=None, *dependencies:T.Optional[T.List['Dependency']]=None) -> T.Tuple[bool, bool]
See if a function exists.
methodmesonbuild.compilers.compilers.Compiler.has_multi_arguments(args:T.List[str]) -> T.Tuple[bool, bool]
Checks if the compiler has all of the arguments.
methodmesonbuild.compilers.compilers.Compiler.has_multi_link_arguments(args:T.List[str], to_host_args:bool=True) -> T.Tuple[bool, bool]
Checks if the linker has all of the arguments.
methodmesonbuild.compilers.compilers.Compiler.native_args_to_unix(args:T.List[str]) -> T.List[str]
Always returns a copy that can be independently mutated
methodmesonbuild.compilers.compilers.Compiler.sanity_check(work_dir:str) -> None
Check that this compiler actually works.
classmesonbuild.compilers.cpp.ArmclangCPPCompiler
Keil armclang
classmesonbuild.compilers.cpp.Xc32CPPCompiler
Microchip XC32 C++ compiler.
classmesonbuild.compilers.cython.CythonCompiler
Cython Compiler.
classmesonbuild.compilers.d.DmdLikeCompilerMixin
Mixin class for DMD and LDC.
funcmesonbuild.compilers.detect.detect_cython_compiler(env:'Environment', for_machine:MachineChoice) -> Compiler
Search for a cython compiler.
classmesonbuild.compilers.mixins.apple.AppleCPPStdsMixin
Provide version overrides for the Apple C++ Compilers.
classmesonbuild.compilers.mixins.apple.AppleCStdsMixin
Provide version overrides for the Apple Compilers.
classmesonbuild.compilers.mixins.arm.ArmCompiler
Functionality that is common to all ARM family compilers.
classmesonbuild.compilers.mixins.arm.ArmclangCompiler
This is the Keil armclang.
classmesonbuild.compilers.mixins.clike.CLikeCompiler
Shared bits for the C and CPP Compilers.
methodmesonbuild.compilers.mixins.clike.CLikeCompiler.has_function(funcname:str, prefix:str, *extra_args:T.Optional[T.List[str]]=None, *dependencies:T.Optional[T.List['Dependency']]=None) -> T.Tuple[bool, bool]
Determine if a function exists.
classmesonbuild.compilers.mixins.gnu.GnuCStds
Mixin class for gcc based compilers for setting C standards.
classmesonbuild.compilers.mixins.intel.IntelVisualStudioLikeCompiler
Abstractions for ICL, the Intel compiler on Windows.
classmesonbuild.compilers.mixins.microchip.Xc32CPPStds
Mixin for setting C++ standards based on XC32 version.
classmesonbuild.compilers.mixins.microchip.Xc32CStds
Mixin for setting C standards based on XC32 version.
classmesonbuild.compilers.mixins.microchip.Xc32Compiler
Microchip XC32 compiler mixin.
classmesonbuild.compilers.mixins.visualstudio.ClangClCompiler
Specific to Clang-CL.
classmesonbuild.compilers.mixins.visualstudio.MSVCCompiler
Specific to the Microsoft Compilers.
classmesonbuild.compilers.rust.ClippyRustCompiler
Clippy is a linter that wraps Rustc.
classmesonbuild.compilers.rust.RustdocTestCompiler
We invoke Rustdoc to run doctests.
classmesonbuild.coredata.CMakeStateCache
Class that stores internal CMake compiler states.
classmesonbuild.coredata.DependencyCache
Class that stores a cache of dependencies.
methodmesonbuild.coredata.DependencyCache.get(key:'TV_DepID') -> T.Optional['dependencies.Dependency']
Get a value from the cache.
classmesonbuild.dependencies.base.BuiltinDependency
Dependency base for Builtin type dependencies.
methodmesonbuild.dependencies.base.Dependency.get_as_shared(recursive:bool) -> Dependency
Used as base case for internal_dependency
methodmesonbuild.dependencies.base.Dependency.get_as_static(recursive:bool) -> Dependency
Used as base case for internal_dependency
methodmesonbuild.dependencies.base.Dependency.get_extra_files() -> T.List[mesonlib.File]
Mostly for introspection and IDEs
classmesonbuild.dependencies.base.DependencyException
Exceptions raised while trying to find dependencies
classmesonbuild.dependencies.base.DependencyObjectKWs
Keyword arguments that the Dependency IR object accepts.
classmesonbuild.dependencies.base.MissingCompiler
Represent a None Compiler - when no tool chain is found.
classmesonbuild.dependencies.base.SystemDependency
Dependency base for System type dependencies.
funcmesonbuild.dependencies.base.strip_system_includedirs(environment:'Environment', for_machine:MachineChoice, include_args:T.List[str]) -> T.List[str]
Remove -I<system path> arguments.
funcmesonbuild.dependencies.base.strip_system_libdirs(environment:'Environment', for_machine:MachineChoice, link_args:T.List[str]) -> T.List[str]
Remove -L<system path> arguments.
classmesonbuild.dependencies.coarrays.CoarrayDependency
Coarrays are a Fortran 2008 feature.
classmesonbuild.dependencies.configtool.ConfigToolDependency
Class representing dependencies found using a config tool.
methodmesonbuild.dependencies.configtool.ConfigToolDependency.report_config(version:T.Optional[str], req_version:T.List[str]) -> bool
Helper method to print messages about the tool.
classmesonbuild.dependencies.factory.DependencyFactory
Factory to get dependencies from multiple sources.
classmesonbuild.dependencies.hdf5.HDF5ConfigToolDependency
Wrapper around hdf5 binary config tools.
classmesonbuild.dependencies.hdf5.HDF5PkgConfigDependency
Handle brokenness in the HDF5 pkg-config files.
classmesonbuild.dependencies.misc.CursesConfigToolDependency
Use the curses config tools.
classmesonbuild.dependencies.misc.CursesSystemDependency
Curses dependency the hard way.
funcmesonbuild.dependencies.misc.shaderc_factory(env:'Environment', kwargs:DependencyObjectKWs, methods:T.List[DependencyMethods]) -> T.List['DependencyGenerator']
Custom DependencyFactory for ShaderC.
classmesonbuild.dependencies.mpi.IMPIDependency
Intel(R) MPI for Windows.
classmesonbuild.dependencies.mpi.MPIConfigToolDependency
Wrapper around mpicc, Intel's mpiicc and friends.
classmesonbuild.dependencies.mpi.MSMPIDependency
The Microsoft MPI.
classmesonbuild.dependencies.pkgconfig.PkgConfigCLI
pkg-config CLI implementation
classmesonbuild.dependencies.pkgconfig.PkgConfigInterface
Base class wrapping a pkg-config implementation
methodmesonbuild.dependencies.pkgconfig.PkgConfigInterface.found() -> bool
Return whether pkg-config is supported
methodmesonbuild.dependencies.pkgconfig.PkgConfigInterface.list_all() -> ImmutableListProtocol[str]
Return all available pkg-config modules
methodmesonbuild.dependencies.pkgconfig.PkgConfigInterface.version(name:str) -> T.Optional[str]
Return module version or None if not found
classmesonbuild.dependencies.python.PythonBuildConfig
PEP 739 build-details.json config file.
classmesonbuild.dependencies.qt.QmakeQtDependency
Find Qt using Qmake as a config-tool.
classmesonbuild.dependencies.qt.QtPkgConfigDependency
Specialization of the PkgConfigDependency for Qt.
classmesonbuild.dependencies.scalapack.MKLPkgConfigDependency
PkgConfigDependency for Intel MKL.
funcmesonbuild.envconfig.detect_cpu_family(compilers:CompilerDict) -> str
Python is inconsistent in its platform module.
funcmesonbuild.envconfig.detect_windows_arch(compilers:CompilerDict) -> str
Detecting the 'native' architecture of Windows is not a trivial task.
methodmesonbuild.environment.Environment.get_jar_dir() -> str
Install dir for JAR files
methodmesonbuild.environment.Environment.get_shared_lib_dir() -> str
Install dir for the shared library
methodmesonbuild.environment.Environment.get_static_lib_dir() -> str
Install dir for the static library
classmesonbuild.interpreter.interpreter.InterpreterRuleRelaxation
Defines specific relaxations of the Meson rules.
classmesonbuild.interpreter.kwargs.BaseBuildTarget
Arguments used by all BuildTarget like functions.
classmesonbuild.interpreter.kwargs.BaseTest
Shared base for the Rust module.
classmesonbuild.interpreter.kwargs.BuildTarget
Arguments shared by non-JAR functions
classmesonbuild.interpreter.kwargs.FuncGenerator
Keyword rguments for the generator function.
classmesonbuild.interpreter.kwargs.FuncTest
Keyword Arguments for `test` but not `benchmark`
classmesonbuild.interpreter.kwargs.GeneratorProcess
Keyword Arguments for generator.process.
classmesonbuild.interpreter.kwargs.Library
For library, both_library, and as a base for build_target
funcmesonbuild.interpreter.type_checking.in_set_validator(choices:T.Set[str]) -> T.Callable[[str], T.Optional[str]]
Check that the choice given was one of the given set.
classmesonbuild.interpreterbase.baseobjects.DefaultObject
A default value to a keyword argument.
classmesonbuild.interpreterbase.baseobjects.MutableInterpreterObject
Dummy class to mark the object type as mutable
classmesonbuild.interpreterbase.decorators.ContainerTypeInfo
Container information for keyword arguments.
methodmesonbuild.interpreterbase.decorators.ContainerTypeInfo.check(value:T.Any) -> bool
Check that a value is valid.
methodmesonbuild.interpreterbase.decorators.ContainerTypeInfo.check_any(value:T.Any) -> bool
Check a value should emit new/deprecated feature.
methodmesonbuild.interpreterbase.decorators.ContainerTypeInfo.description() -> str
Human readable description of this container type.
classmesonbuild.interpreterbase.decorators.FeatureBroken
Checks for broken features
classmesonbuild.interpreterbase.decorators.FeatureCheckBase
Base class for feature version checks
classmesonbuild.interpreterbase.decorators.FeatureDeprecated
Checks for deprecated features
classmesonbuild.interpreterbase.decorators.FeatureNew
Checks for new features
funcmesonbuild.interpreterbase.decorators.raw_description(t:object) -> str
describe a raw type (ie, one that is not a ContainerTypeInfo).
funcmesonbuild.interpreterbase.decorators.typed_kwargs(name:str, *allow_unknown:bool=False, *types:KwargInfo) -> T.Callable[..., T.Any]
Decorator for type checking keyword arguments.
classmesonbuild.linkers.base.RSPFileSyntax
Which RSP file syntax the compiler supports.
classmesonbuild.linkers.linkers.AIXDynamicLinker
Sys-V derived linker used on AIX
classmesonbuild.linkers.linkers.AppleDynamicLinker
Apple's ld implementation.
classmesonbuild.linkers.linkers.ArmClangDynamicLinker
Linker used with ARM's clang fork.
classmesonbuild.linkers.linkers.ArmDynamicLinker
Linker for the ARM compiler.
classmesonbuild.linkers.linkers.CcrxDynamicLinker
Linker for Renesas CCrx compiler.
classmesonbuild.linkers.linkers.ClangClDynamicLinker
Clang's lld-link.exe.
classmesonbuild.linkers.linkers.CompCertDynamicLinker
Linker for CompCert C compiler.
classmesonbuild.linkers.linkers.CudaLinker
Cuda linker (nvlink)
classmesonbuild.linkers.linkers.DynamicLinker
Base class for dynamic linkers.
methodmesonbuild.linkers.linkers.DynamicLinker.fatal_warnings() -> T.List[str]
Arguments to make all warnings errors.
methodmesonbuild.linkers.linkers.DynamicLinker.get_debugfile_args(targetfile:str) -> T.List[str]
Some compilers (MSVC) write debug into a separate file.
methodmesonbuild.linkers.linkers.DynamicLinker.get_debugfile_name(targetfile:str) -> T.Optional[str]
Name of debug file written out (see below)
methodmesonbuild.linkers.linkers.DynamicLinker.import_library_args(implibname:str) -> T.List[str]
The name of the outputted import library.
classmesonbuild.linkers.linkers.ELDDynamicLinker
Qualcomm's opensource embedded linker
classmesonbuild.linkers.linkers.GnuDynamicLinker
Representation of GNU ld.bfd and ld.gold.
classmesonbuild.linkers.linkers.IntelVisualStudioLinker
Intel's xilib static linker.
classmesonbuild.linkers.linkers.LLVMDynamicLinker
Representation of LLVM's ld.lld linker.
classmesonbuild.linkers.linkers.MSVCDynamicLinker
Microsoft's Link.exe.
classmesonbuild.linkers.linkers.NAGDynamicLinker
NAG Fortran linker, ld via gcc indirection.
classmesonbuild.linkers.linkers.OS2DynamicLinker
ld and emxomfld
classmesonbuild.linkers.linkers.OptlinkDynamicLinker
Digital Mars dynamic linker for windows.
classmesonbuild.linkers.linkers.PGIDynamicLinker
PGI linker.
classmesonbuild.linkers.linkers.PosixDynamicLinkerMixin
Mixin class for POSIX-ish linkers.
classmesonbuild.linkers.linkers.QualcommLLVMDynamicLinker
ARM Linker from Snapdragon LLVM ARM Compiler.
classmesonbuild.linkers.linkers.SolarisDynamicLinker
Sys-V derived linker used on Solaris and OpenSolaris.
classmesonbuild.linkers.linkers.TIDynamicLinker
Linker for Texas Instruments compiler family.
classmesonbuild.linkers.linkers.VisualStudioLinker
Microsoft's lib static linker.
classmesonbuild.linkers.linkers.WASMDynamicLinker
Emscripten's wasm-ld.
classmesonbuild.linkers.linkers.Xc16DynamicLinker
Linker for Microchip XC16 compiler.
classmesonbuild.linkers.linkers.Xc32ArLinker
Static linker for Microchip XC32 compiler.
classmesonbuild.linkers.linkers.Xc32DynamicLinker
Linker for Microchip XC32 compiler.
classmesonbuild.linkers.linkers.XilinkDynamicLinker
Intel's Xilink.exe.
funcmesonbuild.mcompile.add_arguments(parser:'argparse.ArgumentParser') -> None
Add compile specific arguments.
funcmesonbuild.mdist.is_git(src_root:str) -> bool
Checks if meson.build file at the root source directory is tracked by git.
funcmesonbuild.mformat.match_path(filename:str, pattern:str) -> bool
recursive glob match for editorconfig sections
funcmesonbuild.minit.run(options:Arguments) -> int
Here we generate the new Meson sample project.
classmesonbuild.minstall.ArgumentType
Typing information for the object returned by argparse.
funcmesonbuild.minstall.check_for_stampfile(fname:str) -> str
Some languages e.g.
funcmesonbuild.mlog.get_relative_path(target:Path, current:Path) -> Path
Get the path to target from current
classmesonbuild.modules.ModuleInfo
Metadata about a Module.
classmesonbuild.modules.ModuleObject
Base class for all objects returned by modules
classmesonbuild.modules.ModuleState
Object passed to all module methods.
classmesonbuild.modules.NewExtensionModule
Class for modern modules provides the found method.
classmesonbuild.modules.NotFoundExtensionModule
Class for modern modules provides the found method.
classmesonbuild.modules._qt.MocCompilerKwArgs
Keyword arguments for the Moc Compiler method.
classmesonbuild.modules._qt.ResourceCompilerKwArgs
Keyword arguments for the Resource Compiler method.
classmesonbuild.modules._qt.UICompilerKwArgs
Keyword arguments for the Ui Compiler method.
classmesonbuild.modules.codegen.CodeGenModule
Module with helpers for codegen wrappers.
classmesonbuild.modules.fs.CopyKw
Kwargs for fs.copy
classmesonbuild.modules.fs.ReadKwArgs
Keyword Arguments for fs.read.
funcmesonbuild.modules.gnome.annotations_validator(annotations:T.List[T.Union[str, T.List[str]]]) -> T.Optional[str]
Validate gdbus-codegen annotations argument
classmesonbuild.modules.rust.RustCrate
Abstract base class for Rust crate representations.
methodmesonbuild.modules.rust.RustCrate.all_features_method(state:ModuleState, args:T.List, kwargs:TYPE_kwargs) -> T.List[str]
Returns all features for specific package.
methodmesonbuild.modules.rust.RustCrate.api_method(state:ModuleState, args:T.List, kwargs:TYPE_kwargs) -> str
Returns the API version of the package.
methodmesonbuild.modules.rust.RustCrate.env_method(state:ModuleState, args:T.List, kwargs:TYPE_kwargs) -> T.Dict[str, str]
Returns environment variables for this package.
methodmesonbuild.modules.rust.RustCrate.features_method(state:ModuleState, args:T.List, kwargs:TYPE_kwargs) -> T.List[str]
Returns chosen features for specific package.
methodmesonbuild.modules.rust.RustCrate.name_method(state:ModuleState, args:T.List, kwargs:TYPE_kwargs) -> str
Returns the name of the package.
methodmesonbuild.modules.rust.RustCrate.rust_args_method(state:ModuleState, args:T.List, kwargs:TYPE_kwargs) -> T.List[str]
Returns rustc arguments for this package.
methodmesonbuild.modules.rust.RustCrate.rust_dependency_map_method(state:ModuleState, args:T.List, kwargs:TYPE_kwargs) -> T.Dict[str, str]
Returns rust dependency mapping for this package.
methodmesonbuild.modules.rust.RustCrate.version_method(state:ModuleState, args:T.List, kwargs:TYPE_kwargs) -> str
Returns the version of the package.
classmesonbuild.modules.rust.RustModule
A module that holds helper functions for rust.
methodmesonbuild.modules.rust.RustModule.bindgen(state:ModuleState, args:T.List, kwargs:FuncBindgen) -> ModuleReturnValue
Wrapper around bindgen to simplify its use.
classmesonbuild.modules.rust.RustPackage
Represents a Rust package within a workspace.
methodmesonbuild.modules.rust.RustPackage.dependencies_method(state:ModuleState, args:T.List, kwargs:RustPackageDependencies) -> T.List[Dependency]
Returns the dependencies for this package.
classmesonbuild.modules.rust.RustSubproject
Represents a Cargo subproject.
classmesonbuild.modules.sourceset.SourceSet
Base class to avoid circular references.
classmesonbuild.mtest.JunitBuilder
Builder for Junit test results.
methodmesonbuild.mtest.JunitBuilder.finish(harness:'TestHarness') -> None
Calculate total test counts and write out the xml result.
methodmesonbuild.mtest.JunitBuilder.log(harness:'TestHarness', test:'TestRun') -> None
Log a single test case.
funcmesonbuild.mtest.complete(future:asyncio.Future) -> None
Wait for completion of the given future, ignoring cancellation.
classmesonbuild.options.EnumeratedUserOption
A generic UserOption that has enumerated values.
classmesonbuild.options.OptionKey
Represents an option key in the various option dictionaries.
methodmesonbuild.options.OptionKey.as_root() -> OptionKey
Convenience method for key.evolve(subproject='').
methodmesonbuild.options.OptionKey.from_string(raw:str) -> 'OptionKey'
Parse the raw command line format into a three part tuple.
classmesonbuild.options.UserStdOption
UserOption specific to c_std and cpp_std options.
funcmesonbuild.options.choices_are_different(a:_U, b:_U) -> bool
Are the choices between two options the same?
classmesonbuild.programs.ExternalProgram
A program that is found on the system.
methodmesonbuild.programs.ExternalProgram.description() -> str
Human friendly description of the command
classmesonbuild.programs.NonExistingExternalProgram
A program that will never exist
classmesonbuild.programs.Program
A base class for LocalProgram and ExternalProgram.
methodmesonbuild.programs.Program.description() -> str
Human friendly description of the command
classmesonbuild.templates.sampleimpl.ClassImpl
For Class based languages, like Java and C#
classmesonbuild.templates.sampleimpl.FileImpl
File based languages without headers
classmesonbuild.utils.core.MesonException
Exceptions thrown by Meson
classmesonbuild.utils.universal.Comparable
Protocol for annotating comparable types.
classmesonbuild.utils.universal.EnvironmentException
Exceptions thrown while processing and creating the build environment
classmesonbuild.utils.universal.LibType
Enumeration for library types.
classmesonbuild.utils.universal.PerThreeMachine
Like `PerMachine` but includes `target` too.
methodmesonbuild.utils.universal.Range.always(inner:Range[_V]) -> T.Optional[bool]
Check if inner is always true or always false given self.
classmesonbuild.utils.universal.SecondLevelHolder
A second level object holder.
classmesonbuild.utils.universal.SimpleABC
Lightweight replacement for ``abc.ABCMeta``.
funcmesonbuild.utils.universal.has_path_sep(name:str, sep:str='/\\') -> bool
Checks if any of the specified @sep path separators are in @name
funcmesonbuild.utils.universal.is_parent_path(parent:str, trial:str) -> bool
Checks if @trial is a file under the directory @parent.
funcmesonbuild.utils.universal.unwrap(value:_T | None, msg:str | None=None) -> _T
Remove None from a union type when it is a Meson bug.
funcmesonbuild.utils.universal.unwrap_err(value:_T | None, msg:str) -> _T
Remove None from a union type when it is not a Meson bug.
funcmesonbuild.utils.universal.windows_detect_native_arch() -> str
The architecture of Windows itself: x86, amd64 or arm64
funcmesonbuild.utils.universal.windows_proof_rm(fpath:T.Union[str, Path]) -> None
Like windows_proof_rmtree, but for a single file.
methodmesonbuild.wrap.wrap.Resolver.copy_tree(root_src_dir:str, root_dst_dir:str) -> None
Copy directory tree.
funcmesonbuild.wrap.wrap.whitelist_wrapdb(urlstr:str) -> urllib.parse.ParseResult
raises WrapException if not whitelisted subdomain
classpackaging.createmsi.Node
Node to hold path and directory values
methodpackaging.createmsi.Node.check_files(files)
Check to see if files is instance of list
classpackaging.createmsi.PackageGenerator
Package generator for MSI packages
methodpackaging.createmsi.PackageGenerator.build_features(top_feature, staging_dir)
Generate build features
methodpackaging.createmsi.PackageGenerator.create_xml(nodes, current_dir, parent_xml_node, staging_dir)
Create XML file
funcpackaging.createmsi.gen_guid()
Generate guid
funcpackaging.createmsi.is_nuget_source_active()
Check if nuget source is active
funcpackaging.createmsi.is_wixext_installed()
Check if wix extension is installed
classrun_project_tests.ArgumentType
Typing information for command line arguments.
funcrun_tests.get_backend_args_for_dir(backend:Backend, builddir:str) -> T.List[str]
Visual Studio backend needs to be given the solution to build
functest cases.linuxlike.14 static dynamic linkage.verify_static.handle_common(path)
Handle the common case.
functest cases.linuxlike.14 static dynamic linkage.verify_static.handle_cygwin(path)
Handle the Cygwin case.
functest cases.linuxlike.14 static dynamic linkage.verify_static.main()
Main function
classunittests.allplatformstests.AllPlatformTests
Tests that should run on all platforms
classunittests.darwintests.DarwinTests
Tests that should run on macOS
classunittests.failuretests.FailureTests
Tests that test failure conditions.
funcunittests.internaltests.InternalTests.mock_trial(value:str) -> T.Iterable[None]
Mock all of the ways we could get the trial at once.
classunittests.linuxcrosstests.LinuxCrossArmTests
Tests that cross-compilation to Linux/ARM works
classunittests.linuxcrosstests.LinuxCrossMingwTests
Tests that cross-compilation to Windows/MinGW works
classunittests.linuxliketests.LinuxlikeTests
Tests that should run on Linux, macOS, and *BSD
classunittests.pythontests.PythonTests
Tests that verify compilation of python extension modules
classunittests.windowstests.WindowsTests
Tests that should run on Cygwin, MinGW, and MSVC

About this data

These signatures were extracted from the public source of mesonbuild/meson using Python's ast module. Argument names, default values, type annotations and return types are taken verbatim from the code. Implementation bodies are never stored. See how it works for details.

Back to all 805 libraries