reprospect.utils.cmake module

reprospect.utils.cmake.CacheDict

The CMake cache is a nested dictionary.

References:

alias of dict[str, dict[str, Any]]

reprospect.utils.cmake.CodemodelDict

The CMake code model is a dictionary.

References:

alias of dict[str, list[Any]]

class reprospect.utils.cmake.FileAPI(cmake_build_directory: Path)View on GitHub

Bases: object

Retrieve information about the CMake buildsystem.

References:

CACHE_VERSION = 2
CODEMODEL_VERSION = 2
TOOLCHAINS_VERSION = 1
__init__(cmake_build_directory: Path) NoneView on GitHub
property cache: dict[str, dict[str, Any]]View on GitHub

Retrieve the CMake cache.

property codemodel_configuration: dict[str, list[Any]]View on GitHub

Retrieve the codemodel information, and extract the information available for the build configuration.

This function assumes that there is only a single build configuration.

target(name: str) dict[str, Any]View on GitHub

Retrieve the information available for the target name.

property toolchains: dict[str, dict[str, Any]]View on GitHub

Retrieve the toolchains information.

reprospect.utils.cmake.TargetDict

The CMake target is a dictionary.

References:

alias of dict[str, Any]

reprospect.utils.cmake.ToolchainDict

The CMake toolchain is a nested dictionary.

References:

alias of dict[str, dict[str, Any]]