Documentation ¶
Overview ¶
Package kati provides GNU make compatible functions, especially to speed up the continuous build of Android.
Index ¶
- Variables
- func DumpStats()
- func Query(w io.Writer, q string, g *DepGraph)
- func TraceEventStart(f io.WriteCloser)
- func TraceEventStop()
- type DepGraph
- type DepNode
- type EvalError
- type Evaluator
- type Executor
- type ExecutorOpt
- type LoadReq
- type LoadSaver
- type Loader
- type NinjaGenerator
- type Saver
- type Value
- type Var
- type Vars
Constants ¶
This section is empty.
Variables ¶
var ( StatsFlag bool PeriodicStatsFlag bool EvalStatsFlag bool DryRunFlag bool UseFindEmulator bool UseShellBuiltins bool IgnoreOptionalInclude string )
Flags to control kati.
var ( // ShellDateTimestamp is an timestamp used for $(shell date). ShellDateTimestamp time.Time )
Functions ¶
Types ¶
type DepGraph ¶
type DepGraph struct {
// contains filtered or unexported fields
}
DepGraph represents rules defined in makefiles.
type DepNode ¶
type DepNode struct { Output string Cmds []string Deps []*DepNode OrderOnlys []*DepNode Parents []*DepNode HasRule bool IsPhony bool ActualInputs []string TargetSpecificVars Vars Filename string Lineno int }
DepNode represents a makefile rule for an output.
type Evaluator ¶
type Evaluator struct {
// contains filtered or unexported fields
}
Evaluator manages makefile evaluation.
func NewEvaluator ¶
NewEvaluator creates new Evaluator.
func (*Evaluator) EvaluateVar ¶
EvaluateVar evaluates variable named name. Only for a few special uses such as getting SHELL and handling export/unexport.
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
Executor manages execution of makefile rules.
func NewExecutor ¶
func NewExecutor(opt *ExecutorOpt) (*Executor, error)
NewExecutor creates new Executor.
type LoadReq ¶
type LoadReq struct { Makefile string Targets []string CommandLineVars []string EnvironmentVars []string UseCache bool EagerEvalCommand bool }
LoadReq is a request to load makefile.
func FromCommandLine ¶
FromCommandLine creates LoadReq from given command line.
type LoadSaver ¶
LoadSaver is the interface that groups Load and Save methods.
var GOB LoadSaver
GOB is a gob loader/saver.
var JSON LoadSaver
JSON is a json loader/saver.
type NinjaGenerator ¶
type NinjaGenerator struct { // Args is original arguments to generate the ninja file. Args []string // Suffix is suffix for generated files. Suffix string // GomaDir is goma directory. If empty, goma will not be used. GomaDir string // DetectAndroidEcho detects echo as description. DetectAndroidEcho bool // contains filtered or unexported fields }
NinjaGenerator generates ninja build files from DepGraph.
type Value ¶
type Value interface { String() string Eval(w evalWriter, ev *Evaluator) error // contains filtered or unexported methods }
Value is an interface for value.
type Var ¶
type Var interface { Value Append(*Evaluator, string) (Var, error) AppendVar(*Evaluator, Value) (Var, error) Flavor() string Origin() string IsDefined() bool }
Var is an interface of make variable.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
make-c is simple program to measure time to parse Makefiles in android.
|
make-c is simple program to measure time to parse Makefiles in android. |
gen_testcase_parse_benchmark is a program to generate benchmark tests for parsing testcases.
|
gen_testcase_parse_benchmark is a program to generate benchmark tests for parsing testcases. |