|
Ninja
|
CommandRunner is an interface that wraps running the build subcommands. More...
#include <build.h>

Classes | |
| struct | Result |
| The result of waiting for a command. More... | |
Public Member Functions | |
| virtual void | Abort () |
| virtual size_t | CanRunMore () const =0 |
| virtual std::vector< Edge * > | GetActiveEdges () |
| virtual bool | StartCommand (Edge *edge)=0 |
| virtual bool | WaitForCommand (Result *result)=0 |
| Wait for a command to complete, or return false if interrupted. More... | |
| virtual | ~CommandRunner () |
Static Public Member Functions | |
| static CommandRunner * | factory (const BuildConfig &config, Jobserver::Client *jobserver) |
| Creates the RealCommandRunner. More... | |
CommandRunner is an interface that wraps running the build subcommands.
This allows tests to abstract out running commands. RealCommandRunner is an implementation that actually runs commands.
|
inlinevirtual |
Reimplemented in RealCommandRunner, and FakeCommandRunner.
|
pure virtual |
Implemented in RealCommandRunner, and FakeCommandRunner.
|
static |
Creates the RealCommandRunner.
Definition at line 117 of file real_command_runner.cc.
Referenced by Builder::Build().
|
inlinevirtual |
Reimplemented in RealCommandRunner, and FakeCommandRunner.
|
pure virtual |
Implemented in RealCommandRunner, and FakeCommandRunner.
|
pure virtual |
Wait for a command to complete, or return false if interrupted.
Implemented in RealCommandRunner, and FakeCommandRunner.