Documentation
¶
Overview ¶
Package gn implements GN related functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonFlags ¶
type CommonFlags struct { subcommands.CommandRunBase Args string Color bool Dotfile string FailOnUnusedArgs bool Markdown bool NoColor bool NinjaExecutable string ScriptExecutable string Quiet bool Root string RootTarget string RootPattern string RuntimeDepsListFile string Threads int Time bool Tracelog string }
CommonFlags contains flags shared amongst all subcommands.
func (*CommonFlags) InitFlags ¶
func (c *CommonFlags) InitFlags()
InitFlags initializes the common flags.
type Setup ¶
type Setup struct {
// contains filtered or unexported fields
}
Setup is helper to set up the build settings and environment for the various commands to run.
func (*Setup) DoSetup ¶
func (s *Setup) DoSetup(buildDir string, forceCreate bool, flags *CommonFlags) error
DoSetup configures the build for the current command line.
func (*Setup) FillSourceDir ¶
func (s *Setup) FillSourceDir(flags *CommonFlags) error
FillSourceDir fills the root directory into the settings.
func (*Setup) RunConfigFile ¶
RunConfigFile runs the config file.
Directories
¶
Path | Synopsis |
---|---|
Package build builds a graph of GN targets based on an invocation.
|
Package build builds a graph of GN targets based on an invocation. |
Package fs provides representation of GN input files.
|
Package fs provides representation of GN input files. |
Package parse converts GN syntax tokens into an AST.
|
Package parse converts GN syntax tokens into an AST. |
Package resolve provides an environment for executing a GN AST.
|
Package resolve provides an environment for executing a GN AST. |
Package syntax implements GN syntax tokenizer and parser.
|
Package syntax implements GN syntax tokenizer and parser. |
Click to show internal directories.
Click to hide internal directories.