builder_utils

package
v0.0.0-...-0d042f0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2018 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArchiveCompiledFiles

func ArchiveCompiledFiles(buildPath string, archiveFile string, objectFiles []string, buildProperties properties.Map, verbose bool, logger i18n.Logger) (string, error)

func CompileFiles

func CompileFiles(objectFiles []string, sourcePath string, recurse bool, buildPath string, buildProperties properties.Map, includes []string, verbose bool, warningsLevel string, logger i18n.Logger) ([]string, error)

func CompileFilesRecursive

func CompileFilesRecursive(objectFiles []string, sourcePath string, buildPath string, buildProperties properties.Map, includes []string, verbose bool, warningsLevel string, logger i18n.Logger) ([]string, error)

func CopyFile

func CopyFile(src, dst string) (err error)

CopyFile copies the contents of the file named src to the file named by dst. The file will be created if it does not already exist. If the destination file exists, all it's contents will be replaced by the contents of the source file. The file mode will be copied from the source and the copied data is synced/flushed to stable storage.

func CoreOrReferencedCoreHasChanged

func CoreOrReferencedCoreHasChanged(corePath, targetCorePath, targetFile string) bool

func ExecRecipe

func ExecRecipe(properties properties.Map, recipe string, removeUnsetProperties bool, echoCommandLine bool, echoOutput bool, logger i18n.Logger) ([]byte, error)

func ExecRecipeCollectStdErr

func ExecRecipeCollectStdErr(buildProperties properties.Map, recipe string, removeUnsetProperties bool, echoCommandLine bool, echoOutput bool, logger i18n.Logger) (string, error)

func GetCachedCoreArchiveFileName

func GetCachedCoreArchiveFileName(fqbn, coreFolder string) string

GetCachedCoreArchiveFileName returns the filename to be used to store the global cached core.a.

func ObjFileIsUpToDate

func ObjFileIsUpToDate(sourceFile, objectFile, dependencyFile string) (bool, error)

func PrepareCommandForRecipe

func PrepareCommandForRecipe(buildProperties properties.Map, recipe string, removeUnsetProperties bool, echoCommandLine bool, echoOutput bool, logger i18n.Logger) (*exec.Cmd, error)

func RemoveHyphenMDDFlagFromGCCCommandLine

func RemoveHyphenMDDFlagFromGCCCommandLine(buildProperties properties.Map)

Types

This section is empty.

Jump to

Keyboard shortcuts

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