Documentation
¶
Index ¶
- Constants
- Variables
- func GCCPreprocRunner(ctx *types.Context, sourceFilePath *paths.Path, targetFilePath *paths.Path, ...) error
- func GCCPreprocRunnerForDiscoveringIncludes(ctx *types.Context, sourceFilePath *paths.Path, targetFilePath *paths.Path, ...) ([]byte, error)
- func GeneratePreprocPatternFromCompile(compilePattern string) string
- func IncludesFinderWithRegExp(source string) string
- func PrintRingNameIfDebug(ctx *types.Context, command types.Command)
- func ResolveLibrary(ctx *types.Context, header string) *libraries.Library
- func RunBuilder(ctx *types.Context) error
- func RunParseHardwareAndDumpBuildProperties(ctx *types.Context) error
- func RunPreprocess(ctx *types.Context) error
- type AddAdditionalEntriesToContext
- type AddMissingBuildPropertiesFromParentPlatformTxtFiles
- type ArduinoPreprocessorRunner
- type Builder
- type CTagsRunner
- type CTagsTargetFileSaver
- type ContainerAddPrototypes
- type ContainerBuildOptions
- type ContainerFindIncludes
- type ContainerMergeCopySketchFiles
- type ContainerSetupHardwareToolsLibsSketchAndProps
- type CreateBuildOptionsMap
- type DumpBuildProperties
- type ExportProjectCMake
- type FailIfBuildPathEqualsSketchPath
- type FailIfImportedLibraryIsWrong
- type FilterSketchSource
- type HardwareLoader
- type LibrariesLoader
- type LoadPreviousBuildOptionsMap
- type LoadVIDPIDSpecificProperties
- type MergeSketchWithBootloader
- type OutputCodeCompletions
- type ParseHardwareAndDumpBuildProperties
- type PlatformKeysRewriteLoader
- type Preprocess
- type PreprocessSketch
- type PreprocessSketchArduino
- type PrintUsedAndNotUsedLibraries
- type PrintUsedLibrariesIfVerbose
- type PrototypesAdder
- type ReadFileAndStoreInContext
- type RecipeByPrefixSuffixRunner
- type RewriteHardwareKeys
- type SetCustomBuildProperties
- type SetupBuildProperties
- type SketchLoader
- type StoreBuildOptionsMap
- type TargetBoardResolver
- type UnusedCompiledLibrariesRemover
- type WarnAboutArchIncompatibleLibraries
- type WarnAboutPlatformRewrites
- type WipeoutBuildPathIfBuildOptionsChanged
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 RunBuilder ¶
func RunPreprocess ¶
Types ¶
type AddAdditionalEntriesToContext ¶
type AddAdditionalEntriesToContext struct{}
type AddMissingBuildPropertiesFromParentPlatformTxtFiles ¶
type AddMissingBuildPropertiesFromParentPlatformTxtFiles struct{}
type ArduinoPreprocessorRunner ¶
type ArduinoPreprocessorRunner struct{}
type CTagsRunner ¶
type CTagsRunner struct{}
type CTagsTargetFileSaver ¶
type ContainerAddPrototypes ¶
type ContainerAddPrototypes struct{}
type ContainerBuildOptions ¶
type ContainerBuildOptions struct{}
type ContainerFindIncludes ¶
type ContainerFindIncludes struct{}
type ContainerMergeCopySketchFiles ¶
type ContainerMergeCopySketchFiles struct{}
type ContainerSetupHardwareToolsLibsSketchAndProps ¶
type ContainerSetupHardwareToolsLibsSketchAndProps struct{}
type CreateBuildOptionsMap ¶
type CreateBuildOptionsMap struct{}
type DumpBuildProperties ¶
type DumpBuildProperties struct{}
type ExportProjectCMake ¶
type ExportProjectCMake struct {
// Was there an error while compiling the sketch?
SketchError bool
}
type FailIfBuildPathEqualsSketchPath ¶
type FailIfBuildPathEqualsSketchPath struct{}
type FailIfImportedLibraryIsWrong ¶
type FailIfImportedLibraryIsWrong struct{}
type FilterSketchSource ¶
type HardwareLoader ¶
type HardwareLoader struct{}
type LibrariesLoader ¶
type LibrariesLoader struct{}
type LoadPreviousBuildOptionsMap ¶
type LoadPreviousBuildOptionsMap struct{}
type LoadVIDPIDSpecificProperties ¶
type LoadVIDPIDSpecificProperties struct{}
type MergeSketchWithBootloader ¶
type MergeSketchWithBootloader struct{}
type OutputCodeCompletions ¶
type OutputCodeCompletions struct{}
type ParseHardwareAndDumpBuildProperties ¶
type ParseHardwareAndDumpBuildProperties struct{}
type PlatformKeysRewriteLoader ¶
type PlatformKeysRewriteLoader struct{}
type Preprocess ¶
type Preprocess struct{}
type PreprocessSketch ¶
type PreprocessSketch struct{}
type PreprocessSketchArduino ¶
type PreprocessSketchArduino struct{}
type PrintUsedAndNotUsedLibraries ¶
type PrintUsedAndNotUsedLibraries struct {
// Was there an error while compiling the sketch?
SketchError bool
}
type PrintUsedLibrariesIfVerbose ¶
type PrintUsedLibrariesIfVerbose struct{}
type PrototypesAdder ¶
type PrototypesAdder struct{}
type ReadFileAndStoreInContext ¶
type ReadFileAndStoreInContext struct {
FileToRead *paths.Path
Target *string
}
type RecipeByPrefixSuffixRunner ¶
type RewriteHardwareKeys ¶
type RewriteHardwareKeys struct{}
type SetCustomBuildProperties ¶
type SetCustomBuildProperties struct{}
type SetupBuildProperties ¶
type SetupBuildProperties struct{}
type SketchLoader ¶
type SketchLoader struct{}
type StoreBuildOptionsMap ¶
type StoreBuildOptionsMap struct{}
type TargetBoardResolver ¶
type TargetBoardResolver struct{}
type UnusedCompiledLibrariesRemover ¶
type UnusedCompiledLibrariesRemover struct{}
type WarnAboutArchIncompatibleLibraries ¶
type WarnAboutArchIncompatibleLibraries struct{}
type WarnAboutPlatformRewrites ¶
type WarnAboutPlatformRewrites struct{}
type WipeoutBuildPathIfBuildOptionsChanged ¶
type WipeoutBuildPathIfBuildOptionsChanged struct{}
Source Files
¶
- add_additional_entries_to_context.go
- add_missing_build_properties_from_parent_platform_txt_files.go
- builder.go
- container_add_prototypes.go
- container_build_options.go
- container_find_includes.go
- container_merge_copy_sketch_files.go
- container_setup.go
- create_build_options_map.go
- create_cmake_rule.go
- ctags_runner.go
- ctags_target_file_saver.go
- dump_build_properties.go
- fail_if_buildpath_equals_sketchpath.go
- fail_if_imported_library_is_wrong.go
- filter_sketch_source.go
- gcc_preproc_runner.go
- hardware_loader.go
- includes_finder_with_regexp.go
- libraries_loader.go
- load_previous_build_options.go
- load_vid_pid_specific_properties.go
- merge_sketch_with_bootloader.go
- platform_keys_rewrite_loader.go
- preprocess_sketch.go
- print_used_and_not_used_libraries.go
- print_used_libraries_if_verbose.go
- prototypes_adder.go
- read_file_and_store_in_context.go
- recipe_runner.go
- resolve_library.go
- rewrite_hardware_keys.go
- set_custom_build_properties.go
- setup_build_properties.go
- sketch_loader.go
- store_build_options_map.go
- target_board_resolver.go
- unused_compiled_libraries_remover.go
- warn_about_arch_incompatible_libraries.go
- warn_about_platform_rewrites.go
- wipeout_build_path_if_build_options_changed.go
Click to show internal directories.
Click to hide internal directories.