builder

package
v0.0.0-...-20dd7c9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2025 License: GPL-3.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_DEBUG_LEVEL = 5
View Source
const DEFAULT_SOFTWARE = "ARDUINO"
View Source
const DEFAULT_WARNINGS_LEVEL = "none"

Variables

View Source
var ArduinoPreprocessorProperties = properties.NewFromHashmap(map[string]string{

	"tools.arduino-preprocessor.path":     "{runtime.tools.arduino-preprocessor.path}",
	"tools.arduino-preprocessor.cmd.path": "{path}/arduino-preprocessor",
	"tools.arduino-preprocessor.pattern":  `"{cmd.path}" "{source_file}" "{codecomplete}" -- -std=gnu++11`,

	"preproc.macros.flags": "-w -x c++ -E -CC",
})

ArduinoPreprocessorProperties are the platform properties needed to run arduino-preprocessor

View Source
var INCLUDE_REGEXP = regexp.MustCompile("(?ms)^\\s*#[ \t]*include\\s*[<\"](\\S+)[\">]")

Functions

func GCCPreprocRunner

func GCCPreprocRunner(ctx *types.Context, sourceFilePath *paths.Path, targetFilePath *paths.Path, includes paths.PathList) error

func GCCPreprocRunnerForDiscoveringIncludes

func GCCPreprocRunnerForDiscoveringIncludes(ctx *types.Context, sourceFilePath *paths.Path, targetFilePath *paths.Path, includes paths.PathList) ([]byte, error)

func GeneratePreprocPatternFromCompile

func GeneratePreprocPatternFromCompile(compilePattern string) string

func IncludesFinderWithRegExp

func IncludesFinderWithRegExp(source string) string

func PrintRingNameIfDebug

func PrintRingNameIfDebug(ctx *types.Context, command types.Command)

func ResolveLibrary

func ResolveLibrary(ctx *types.Context, header string) *libraries.Library

func RunBuilder

func RunBuilder(ctx *types.Context) error

func RunParseHardwareAndDumpBuildProperties

func RunParseHardwareAndDumpBuildProperties(ctx *types.Context) error

func RunPreprocess

func RunPreprocess(ctx *types.Context) error

Types

type AddAdditionalEntriesToContext

type AddAdditionalEntriesToContext struct{}

func (*AddAdditionalEntriesToContext) Run

type AddMissingBuildPropertiesFromParentPlatformTxtFiles

type AddMissingBuildPropertiesFromParentPlatformTxtFiles struct{}

func (*AddMissingBuildPropertiesFromParentPlatformTxtFiles) Run

type ArduinoPreprocessorRunner

type ArduinoPreprocessorRunner struct{}

func (*ArduinoPreprocessorRunner) Run

type Builder

type Builder struct{}

func (*Builder) Run

func (s *Builder) Run(ctx *types.Context) error

type CTagsRunner

type CTagsRunner struct{}

func (*CTagsRunner) Run

func (s *CTagsRunner) Run(ctx *types.Context) error

type CTagsTargetFileSaver

type CTagsTargetFileSaver struct {
	Source         *string
	TargetFileName string
}

func (*CTagsTargetFileSaver) Run

func (s *CTagsTargetFileSaver) Run(ctx *types.Context) error

type ContainerAddPrototypes

type ContainerAddPrototypes struct{}

func (*ContainerAddPrototypes) Run

type ContainerBuildOptions

type ContainerBuildOptions struct{}

func (*ContainerBuildOptions) Run

type ContainerFindIncludes

type ContainerFindIncludes struct{}

func (*ContainerFindIncludes) Run

type ContainerMergeCopySketchFiles

type ContainerMergeCopySketchFiles struct{}

func (*ContainerMergeCopySketchFiles) Run

type ContainerSetupHardwareToolsLibsSketchAndProps

type ContainerSetupHardwareToolsLibsSketchAndProps struct{}

func (*ContainerSetupHardwareToolsLibsSketchAndProps) Run

type CreateBuildOptionsMap

type CreateBuildOptionsMap struct{}

func (*CreateBuildOptionsMap) Run

type DumpBuildProperties

type DumpBuildProperties struct{}

func (*DumpBuildProperties) Run

func (s *DumpBuildProperties) Run(ctx *types.Context) error

type ExportProjectCMake

type ExportProjectCMake struct {
	// Was there an error while compiling the sketch?
	SketchError bool
}

func (*ExportProjectCMake) Run

func (s *ExportProjectCMake) Run(ctx *types.Context) error

type FailIfBuildPathEqualsSketchPath

type FailIfBuildPathEqualsSketchPath struct{}

func (*FailIfBuildPathEqualsSketchPath) Run

type FailIfImportedLibraryIsWrong

type FailIfImportedLibraryIsWrong struct{}

func (*FailIfImportedLibraryIsWrong) Run

type FilterSketchSource

type FilterSketchSource struct {
	Source            *string
	RemoveLineMarkers bool
}

func (*FilterSketchSource) Run

func (s *FilterSketchSource) Run(ctx *types.Context) error

type HardwareLoader

type HardwareLoader struct{}

func (*HardwareLoader) Run

func (s *HardwareLoader) Run(ctx *types.Context) error

type LibrariesLoader

type LibrariesLoader struct{}

func (*LibrariesLoader) Run

func (s *LibrariesLoader) Run(ctx *types.Context) error

type LoadPreviousBuildOptionsMap

type LoadPreviousBuildOptionsMap struct{}

func (*LoadPreviousBuildOptionsMap) Run

type LoadVIDPIDSpecificProperties

type LoadVIDPIDSpecificProperties struct{}

func (*LoadVIDPIDSpecificProperties) Run

type MergeSketchWithBootloader

type MergeSketchWithBootloader struct{}

func (*MergeSketchWithBootloader) Run

type OutputCodeCompletions

type OutputCodeCompletions struct{}

func (*OutputCodeCompletions) Run

type ParseHardwareAndDumpBuildProperties

type ParseHardwareAndDumpBuildProperties struct{}

func (*ParseHardwareAndDumpBuildProperties) Run

type PlatformKeysRewriteLoader

type PlatformKeysRewriteLoader struct{}

func (*PlatformKeysRewriteLoader) Run

type Preprocess

type Preprocess struct{}

func (*Preprocess) Run

func (s *Preprocess) Run(ctx *types.Context) error

type PreprocessSketch

type PreprocessSketch struct{}

func (*PreprocessSketch) Run

func (s *PreprocessSketch) Run(ctx *types.Context) error

type PreprocessSketchArduino

type PreprocessSketchArduino struct{}

func (*PreprocessSketchArduino) Run

type PrintUsedAndNotUsedLibraries

type PrintUsedAndNotUsedLibraries struct {
	// Was there an error while compiling the sketch?
	SketchError bool
}

func (*PrintUsedAndNotUsedLibraries) Run

type PrintUsedLibrariesIfVerbose

type PrintUsedLibrariesIfVerbose struct{}

func (*PrintUsedLibrariesIfVerbose) Run

type PrototypesAdder

type PrototypesAdder struct{}

func (*PrototypesAdder) Run

func (s *PrototypesAdder) Run(ctx *types.Context) error

type ReadFileAndStoreInContext

type ReadFileAndStoreInContext struct {
	FileToRead *paths.Path
	Target     *string
}

func (*ReadFileAndStoreInContext) Run

type RecipeByPrefixSuffixRunner

type RecipeByPrefixSuffixRunner struct {
	Prefix                                string
	Suffix                                string
	SkipIfOnlyUpdatingCompilationDatabase bool
}

func (*RecipeByPrefixSuffixRunner) Run

type RewriteHardwareKeys

type RewriteHardwareKeys struct{}

func (*RewriteHardwareKeys) Run

func (s *RewriteHardwareKeys) Run(ctx *types.Context) error

type SetCustomBuildProperties

type SetCustomBuildProperties struct{}

func (*SetCustomBuildProperties) Run

type SetupBuildProperties

type SetupBuildProperties struct{}

func (*SetupBuildProperties) Run

func (s *SetupBuildProperties) Run(ctx *types.Context) error

type SketchLoader

type SketchLoader struct{}

func (*SketchLoader) Run

func (s *SketchLoader) Run(ctx *types.Context) error

type StoreBuildOptionsMap

type StoreBuildOptionsMap struct{}

func (*StoreBuildOptionsMap) Run

func (s *StoreBuildOptionsMap) Run(ctx *types.Context) error

type TargetBoardResolver

type TargetBoardResolver struct{}

func (*TargetBoardResolver) Run

func (s *TargetBoardResolver) Run(ctx *types.Context) error

type UnusedCompiledLibrariesRemover

type UnusedCompiledLibrariesRemover struct{}

func (*UnusedCompiledLibrariesRemover) Run

type WarnAboutArchIncompatibleLibraries

type WarnAboutArchIncompatibleLibraries struct{}

func (*WarnAboutArchIncompatibleLibraries) Run

type WarnAboutPlatformRewrites

type WarnAboutPlatformRewrites struct{}

func (*WarnAboutPlatformRewrites) Run

type WipeoutBuildPathIfBuildOptionsChanged

type WipeoutBuildPathIfBuildOptionsChanged struct{}

func (*WipeoutBuildPathIfBuildOptionsChanged) Run

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL