ninja

package
v0.0.0-...-dca90b2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

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

func NewBuild

func NewBuild(tar []string, src []string, ru string) *Build

func (*Build) AddVar

func (bd *Build) AddVar(key string, val string)

func (*Build) String

func (bd *Build) String() string

type Ninja

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

func NewNinja

func NewNinja() *Ninja

func (*Ninja) AddBuild

func (nj *Ninja) AddBuild(bd *Build)

func (*Ninja) AddRule

func (nj *Ninja) AddRule(ru *Rule)

func (*Ninja) AddVariable

func (nj *Ninja) AddVariable(vb *Variable)

func (*Ninja) Dump

func (nj *Ninja) Dump(w io.Writer)

func (*Ninja) SetDefault

func (nj *Ninja) SetDefault(tar string)

func (*Ninja) SetReqVersion

func (nj *Ninja) SetReqVersion(major uint, minor uint)

func (*Ninja) SetTemplate

func (nj *Ninja) SetTemplate(tpls string)

template for rules define..

type Rule

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

func NewRule

func NewRule(key string, cmd string) *Rule

func (*Rule) SetDesc

func (ru *Rule) SetDesc(desc string)

func (*Rule) String

func (ru *Rule) String() string

type Variable

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

func NewVariable

func NewVariable(key string, val string) *Variable

func (*Variable) AddStr

func (vb *Variable) AddStr(ass string)

func (*Variable) String

func (vb *Variable) String() string

Jump to

Keyboard shortcuts

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