plan

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2015 License: BSD-3-Clause, MIT, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RuleMakers = make(map[string]RuleMaker)
)

Functions

func CreateMakefile

func CreateMakefile(buildDataDir string, buildStore buildstore.RepoBuildStore, vcsType string, c *config.Tree, opt Options) (*makex.Makefile, error)

CreateMakefile creates the makefiles for the source units in c.

func RegisterRuleMaker

func RegisterRuleMaker(name string, r RuleMaker)

RegisterRuleMaker adds a function that creates a list of build rules for a repository. If RegisterRuleMaker is called twice with the same target or target name, if name is empty, or if r is nil, it panics.

func RepositoryCommitDataFilename

func RepositoryCommitDataFilename(emptyData interface{}) string

func SourceUnitDataFilename

func SourceUnitDataFilename(emptyData interface{}, u *unit.SourceUnit) string

Types

type Options

type Options struct {
	ToolchainExecOpt string

	// When NoCache is true, all files are rebuilt instead of only
	// the ones associated with changed source units.
	NoCache bool
}

type RuleMaker

type RuleMaker func(c *config.Tree, dataDir string, existing []makex.Rule, opt Options) ([]makex.Rule, error)

Jump to

Keyboard shortcuts

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