builder_utils

package
v0.0.0-...-bbf7051 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const COMMANDLINE_LIMIT = 30000

Variables

This section is empty.

Functions

func ArchiveCompiledFiles

func ArchiveCompiledFiles(ctx *types.Context, buildPath string, archiveFile string, objectFiles []string, buildProperties properties.Map) (string, error)

func CompileFiles

func CompileFiles(ctx *types.Context, objectFiles []string, sourcePath string, recurse bool, buildPath string, buildProperties properties.Map, includes []string) ([]string, error)

func CompileFilesRecursive

func CompileFilesRecursive(ctx *types.Context, objectFiles []string, sourcePath string, buildPath string, buildProperties properties.Map, includes []string) ([]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(ctx *types.Context, buildProperties properties.Map, recipe string, removeUnsetProperties bool, stdout int, stderr int) ([]byte, []byte, error)

See util.ExecCommand for stdout/stderr arguments

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(ctx *types.Context, sourceFile, objectFile, dependencyFile string) (bool, error)

func PrepareCommandForRecipe

func PrepareCommandForRecipe(ctx *types.Context, buildProperties properties.Map, recipe string, removeUnsetProperties bool) (*exec.Cmd, error)

func PrintProgressIfProgressEnabledAndMachineLogger

func PrintProgressIfProgressEnabledAndMachineLogger(ctx *types.Context)

func TXTBuildRulesHaveChanged

func TXTBuildRulesHaveChanged(corePath, targetCorePath, targetFile string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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