libjcons

package
v0.0.0-...-1ef1a82 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2018 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Digest_tmp = Digest{3} // TODO
View Source
var Digest_undefined = Digest{1} // TODO
View Source
var GotSigint = false
View Source
var InvalidDigest = Digest{2} // TODO
View Source
var KeepGoing = false
View Source
var OptAcceptExistingTarget bool
View Source
var OptAlwaysMake bool
View Source
var OptCacheForce bool
View Source
var OptDebug bool
View Source
var OptListTargets bool
View Source
var OptLogging bool
View Source
var OptPrintTree bool
View Source
var OptQuiet bool
View Source
var OptRemove bool
View Source
var OptTrustMtime = true
View Source
var OptVerbose bool

Functions

func Initialize

func Initialize()

func InitializeFilesystem

func InitializeFilesystem()

Initialize filesystem module. The function can be called several times, and will then "reset" the state. This can be useful for testing the code.

func MAKE_get_includes_tree

func MAKE_get_includes_tree(cppPathMap *CppPathMap, node *File,
	includesTree *IncludesTree, level int)

func MAKE_includes_md5

func MAKE_includes_md5(cppPathMap *CppPathMap, node *File)

func MAKE_update_tgt

func MAKE_update_tgt(tgt *File)

func PopDir

func PopDir()

func Printf

func Printf(format string, args ...interface{})

func PushDir

func PushDir(path string)

func Terminate

func Terminate()

Flush information to .consign files. Should be called before the process is terminated.

func TopPrintTree

func TopPrintTree()

Types

type ByDigest

type ByDigest []Digest

func (ByDigest) Len

func (a ByDigest) Len() int

func (ByDigest) Less

func (a ByDigest) Less(i, j int) bool

func (ByDigest) Swap

func (a ByDigest) Swap(i, j int)

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func NewCache

func NewCache(d *Dir, dpath string) *Cache

type Cmd

type Cmd struct {
	// contains filtered or unexported fields
}

func (*Cmd) ST_invalidError

func (cmd *Cmd) ST_invalidError()

pass on 'invalid' call to all targets

func (*Cmd) ST_propagateError

func (cmd *Cmd) ST_propagateError()

pass on 'propagate' call to all targets

func (*Cmd) SetCachedir

func (cmd *Cmd) SetCachedir(cachedir string)

type Color

type Color int
const (
	WHITE Color = iota
	GREY
	BLACK
)

type Cons

type Cons struct {
	// contains filtered or unexported fields
}

func NewCons

func NewCons(incs []string) *Cons

func (*Cons) Command

func (cons *Cons) Command(tgt string, src string, command string) *Cmd

func (*Cons) CommandArr

func (cons *Cons) CommandArr(tgts []string, srcs []string, command string) *Cmd

func (*Cons) CommandCpp

func (cons *Cons) CommandCpp(tgt string, src string, command string, digest_command string) *Cmd

func (*Cons) Depends

func (cons *Cons) Depends(tgt string, src string)

func (*Cons) ExeDepends

func (cons *Cons) ExeDepends(tgt string, src string)

type Consign

type Consign struct {
	Entries map[string]*ConsignEntry
	Dirty   bool
}

func NewConsign

func NewConsign() *Consign

type ConsignEntry

type ConsignEntry struct {
	Mtime      JConsTime
	ContentSig Digest
	DepSig     Digest
	Includes   []Include
}

type CppPathMap

type CppPathMap struct {
	// contains filtered or unexported fields
}

func NewCppPathMap

func NewCppPathMap(cwd *Dir, incs []string) *CppPathMap

type Digest

type Digest [16]byte

type Dir

type Dir struct {
	Entry
	// contains filtered or unexported fields
}
var Cwd *Dir

func MakeDir

func MakeDir(name string, parent *Dir) *Dir

func (*Dir) Consign

func (dir *Dir) Consign() *Consign

func (*Dir) FindFile

func (dir *Dir) FindFile(path string) *File

func (*Dir) PrintTree

func (dir *Dir) PrintTree(level int)

func (*Dir) String

func (dir *Dir) String() string

type Done

type Done struct {
	// contains filtered or unexported fields
}

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

func NewEngine

func NewEngine(njobs int) *Engine

func (*Engine) Run

func (engine *Engine) Run() int

func (*Engine) UpdateTopFiles

func (engine *Engine) UpdateTopFiles(targets []string) int

type Entry

type Entry struct {
	// contains filtered or unexported fields
}

func (*Entry) Parent

func (entry *Entry) Parent() *Dir

func (*Entry) Path

func (entry *Entry) Path() string

type EntryInterface

type EntryInterface interface {
	Path() string
	Parent() *Dir
	PrintTree(level int)
}

type ExecuteContext

type ExecuteContext struct {
	// contains filtered or unexported fields
}

type FUN

type FUN interface {
	fmt.Stringer
	// contains filtered or unexported methods
}

func MAKE_top_level

func MAKE_top_level(tgts []*File) FUN

type FUN_base

type FUN_base struct {
	// contains filtered or unexported fields
}

type FUN_get_includes_tree

type FUN_get_includes_tree struct {
	FUN_base
	// contains filtered or unexported fields
}

func (*FUN_get_includes_tree) STATE_finish

func (fun *FUN_get_includes_tree) STATE_finish()

func (*FUN_get_includes_tree) STATE_node_updated

func (fun *FUN_get_includes_tree) STATE_node_updated()

func (*FUN_get_includes_tree) STATE_start

func (fun *FUN_get_includes_tree) STATE_start()

func (*FUN_get_includes_tree) String

func (fun *FUN_get_includes_tree) String() string

type FUN_includes_md5

type FUN_includes_md5 struct {
	FUN_base
	// contains filtered or unexported fields
}

func (*FUN_includes_md5) STATE_finish

func (fun *FUN_includes_md5) STATE_finish()

func (*FUN_includes_md5) STATE_start

func (fun *FUN_includes_md5) STATE_start()

func (*FUN_includes_md5) String

func (fun *FUN_includes_md5) String() string

type FUN_top_level

type FUN_top_level struct {
	FUN_base
	// contains filtered or unexported fields
}

func (*FUN_top_level) STATE_finish

func (fun *FUN_top_level) STATE_finish()

func (*FUN_top_level) STATE_start

func (fun *FUN_top_level) STATE_start()

func (*FUN_top_level) String

func (fun *FUN_top_level) String() string

type FUN_update_tgt

type FUN_update_tgt struct {
	FUN_base
	// contains filtered or unexported fields
}

func (*FUN_update_tgt) STATE_cmd_executed

func (fun *FUN_update_tgt) STATE_cmd_executed()

func (*FUN_update_tgt) STATE_finish

func (fun *FUN_update_tgt) STATE_finish()

func (*FUN_update_tgt) STATE_maybe_execute_cmd

func (fun *FUN_update_tgt) STATE_maybe_execute_cmd()

func (*FUN_update_tgt) STATE_srcs_updated

func (fun *FUN_update_tgt) STATE_srcs_updated()

func (*FUN_update_tgt) STATE_start

func (fun *FUN_update_tgt) STATE_start()

func (*FUN_update_tgt) STATE_updated_by_other

func (fun *FUN_update_tgt) STATE_updated_by_other()

func (*FUN_update_tgt) String

func (fun *FUN_update_tgt) String() string

type File

type File struct {
	Entry

	TopTarget bool
	// contains filtered or unexported fields
}

func MakeFile

func MakeFile(name string, parent *Dir) *File

func (*File) IsSource

func (file *File) IsSource() bool

func (*File) PrintTree

func (file *File) PrintTree(level int)

func (*File) ST_invalidError

func (file *File) ST_invalidError()

func (*File) ST_ok_p

func (file *File) ST_ok_p() bool

func (*File) ST_propagateError

func (file *File) ST_propagateError()

func (*File) ST_propagate_ok

func (file *File) ST_propagate_ok()

func (*File) ST_source

func (file *File) ST_source()

func (*File) ST_updated

func (file *File) ST_updated(depSig Digest)

func (*File) String

func (file *File) String() string

type Include

type Include struct {
	Quotes bool
	File   string
}

type IncludesTree

type IncludesTree struct {
	// contains filtered or unexported fields
}

type JConsTime

type JConsTime int64

type State

type State int
const (
	State_RAW State = iota
	State_COOKING
	State_DONE
)

type Status

type Status int
const (
	Status_UNKNOWN Status = iota
	Status_OK
	Status_ERROR
)

Jump to

Keyboard shortcuts

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