Skip to content

livery.extensions.cmake._steps

livery.extensions.cmake._steps

The cmake extension's steps: the gate build's configure and compile, and ctest.

Each runs over one package whose set holds cmake, on the tree side of its phase, and hands cmake or ctest the words after -- on its own verb. A body looks its function up on the gate build's module when it runs, so a test that replaces one there sees its replacement called.

Functions:

Name Description
configure

Configure the package's gate build into build/gate.

compile

Build the configured gate build, incrementally.

ctest

Run ctest over the gate build: every test, or the selection's alone.

configure

configure(ctx: PhaseContext) -> None

Configure the package's gate build into build/gate.

Source code in packages/extensions/cmake/src/livery/extensions/cmake/_steps.py
def configure(ctx: PhaseContext) -> None:
    """Configure the package's gate build into ``build/gate``."""
    _build.configure(ctx.member, ctx.arguments)

compile

compile(ctx: PhaseContext) -> None

Build the configured gate build, incrementally.

Source code in packages/extensions/cmake/src/livery/extensions/cmake/_steps.py
def compile(ctx: PhaseContext) -> None:
    """Build the configured gate build, incrementally."""
    _build.compile(ctx.member, ctx.arguments)

ctest

ctest(ctx: PhaseContext) -> None

Run ctest over the gate build: every test, or the selection's alone.

Source code in packages/extensions/cmake/src/livery/extensions/cmake/_steps.py
def ctest(ctx: PhaseContext) -> None:
    """Run ctest over the gate build: every test, or the selection's alone."""
    _build.test(ctx.member, ctx.root, selection=ctx.selection, arguments=ctx.arguments)