Skip to content

ninja

ninja documentation

footman._stubs.ninja.Ninja

Bases: Tool

__call__

__call__(
    *args: str,
    C: _Value = ...,
    d: _Value = ...,
    f: _Value = ...,
    j: _Value = ...,
    k: _Value = ...,
    l: _Value = ...,
    n: _Flag = ...,
    quiet: _Flag = ...,
    t: _Value = ...,
    verbose: _Flag = ...,
    w: _Value = ...,
    **flags: Any,
) -> Result

if targets are unspecified, builds the 'default' target (see manual).

Parameters:

Name Type Description Default
C _Value

change to DIR before doing anything else.

...
d _Value

enable debugging (use '-d list' to list modes).

...
f _Value

specify input build file [default=build.ninja].

...
j _Value

run N jobs in parallel (0 means infinity) [default=16 on this system].

...
k _Value

keep going until N jobs fail (0 means infinity) [default=1].

...
l _Value

do not start new jobs if the load average is greater than N.

...
n _Flag

dry run (don't run commands but act like they succeeded).

...
quiet _Flag

don't show progress status, just command output.

...
t _Value

run a subtool (use '-t list' to list subtools) terminates toplevel options; further flags are passed to the tool.

...
verbose _Flag

show all command lines while building.

...
w _Value

adjust warnings (use '-w list' to list warnings).

...