Documentation
¶
Overview ¶
Package build builds a graph of GN targets based on an invocation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildSettings ¶
type BuildSettings struct { // DotfileName refers to the dotfile for this build. DotfileName string // contains filtered or unexported fields }
BuildSettings represents settings for one build, which is one toplevel output directory. There may be multiple Settings objects that refer to this, one for each toolchain. TODO: rename this to just Settings (build.BuildSettings not great name), rename Settings to something else?
func (*BuildSettings) SetRootPath ¶
func (bs *BuildSettings) SetRootPath(path string)
SetRootPath sets the absolute path of the source root on the local system.
type Settings ¶
type Settings struct {
// contains filtered or unexported fields
}
Settings holds the settings for one toolchain invocation. There will be one Settings object for each toolchain type, each referring to the same BuildSettings object for shared stuff.
The Toolchain object holds the set of stuff that is set by the toolchain declaration, which obviously needs to be set later when we actually parse the file with the toolchain declaration in it. TODO: rename this to something else, since build.BuildSettings would be better named build.Settings?
func NewSettings ¶
func NewSettings(buildSettings *BuildSettings) *Settings
NewSettings creates a new Settings.