builder
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
- Variables
- type Builder
- func (b *Builder) Build() error
- func (b *Builder) CompilerDiagnostics() diagnostics.Diagnostics
- func (b *Builder) ExecutableSectionsSize() ExecutablesFileSections
- func (b *Builder) GetBuildPath() *paths.Path
- func (b *Builder) GetBuildProperties() *properties.Map
- func (b *Builder) ImportedLibraries() libraries.List
- func (b *Builder) Preprocess() ([]byte, error)
- func (b *Builder) RunRecipe(prefix, suffix string, skipIfOnlyUpdatingCompilationDatabase bool) error
- func (b *Builder) RunRecipeWithProps(prefix, suffix string, buildProperties *properties.Map, ...) error
- type ExecutableSectionSize
- type ExecutablesFileSections
Constants¶
This section is empty.
Variables¶
var (FloatAbiCflag = "float-abi"FpuCflag = "fpu")
nolint
var ErrSketchCannotBeLocatedInBuildPath =errors.New("sketch cannot be located in build path")ErrSketchCannotBeLocatedInBuildPath fixdoc
Functions¶
This section is empty.
Types¶
typeBuilder¶
type Builder struct {// Progress of all various stepsProgress *progress.Struct// contains filtered or unexported fields}Builder is a Sketch builder.
funcNewBuilder¶
func NewBuilder(ctxcontext.Context,sk *sketch.Sketch,boardBuildProperties *properties.Map,buildPath *paths.Path,optimizeForDebugbool,coreBuildCachePath *paths.Path,extraCoreBuildCachePaths paths.PathList,jobsint,customBuildProperties []string,hardwareDirs paths.PathList,librariesDirs paths.PathList,builtInLibrariesDirs *paths.Path,fqbn *fqbn.FQBN,cleanbool,sourceOverrides map[string]string,onlyUpdateCompilationDatabasebool,targetPlatform, buildPlatform *cores.PlatformRelease,useCachedLibrariesResolutionbool,librariesManager *librariesmanager.LibrariesManager,customLibraryDirs paths.PathList,stdout, stderrio.Writer, verbositylogger.Verbosity, warningsLevelstring,progressCBrpc.TaskProgressCB,toolEnv []string,) (*Builder,error)
NewBuilder creates a sketch Builder.
func (*Builder)CompilerDiagnostics¶
func (b *Builder) CompilerDiagnostics()diagnostics.Diagnostics
CompilerDiagnostics returns the parsed compiler diagnostics
func (*Builder)ExecutableSectionsSize¶
func (b *Builder) ExecutableSectionsSize()ExecutablesFileSections
ExecutableSectionsSize fixdoc
func (*Builder)GetBuildPath¶
func (b *Builder) GetBuildPath() *paths.Path
GetBuildPath returns the build path
func (*Builder)GetBuildProperties¶
func (b *Builder) GetBuildProperties() *properties.Map
GetBuildProperties returns the build properties for running this build
func (*Builder)ImportedLibraries¶
ImportedLibraries fixdoc
func (*Builder)RunRecipeWithProps¶added inv1.3.0
typeExecutableSectionSize¶
type ExecutableSectionSize struct {Namestring `json:"name"`Sizeint `json:"size"`MaxSizeint `json:"max_size"`}ExecutableSectionSize represents a section of the executable output file
typeExecutablesFileSections¶
type ExecutablesFileSections []ExecutableSectionSize
ExecutablesFileSections is an array of ExecutablesFileSection
func (ExecutablesFileSections)ToRPCExecutableSectionSizeArray¶
func (sExecutablesFileSections) ToRPCExecutableSectionSizeArray() []*rpc.ExecutableSectionSize
ToRPCExecutableSectionSizeArray transforms this array into a []*rpc.ExecutableSectionSize