ninja

package module
v0.0.0-...-461a08e Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

README

ninja

About

Golang bindings for generating ninja build files.

Status

Currently experimental / unstable. The interface may change.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildOptions

type BuildOptions struct {
	Inputs          []string
	ImplicitInputs  []string
	OrderOnlyInputs []string
	ImplicitOutputs []string
	Variables       []Variable
}

type NinjaWriter

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

func MakeNinjaWriter

func MakeNinjaWriter(out io.Writer) *NinjaWriter

func (*NinjaWriter) Build

func (w *NinjaWriter) Build(outputs []string, rule string, options BuildOptions)

func (*NinjaWriter) Default

func (w *NinjaWriter) Default(paths []string)

func (*NinjaWriter) Include

func (w *NinjaWriter) Include(path string)

func (*NinjaWriter) Rule

func (w *NinjaWriter) Rule(name string, cmd string, options RuleOptions)

func (*NinjaWriter) Subninja

func (w *NinjaWriter) Subninja(path string)

func (*NinjaWriter) Variable

func (w *NinjaWriter) Variable(name string, value string)

Top-level variable

type RuleOptions

type RuleOptions struct {
	Description string
	// "gcc" or "msvc"
	Deps           string
	DepFile        string
	Generator      bool
	Pool           string
	Restat         bool
	RSPFile        string
	RSPFileContent string
}

type Variable

type Variable struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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