build

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuildPlugin

func NewBuildPlugin(scope *scope.Scope, params manifest.RawParams, log log.Logger) (plugins.Plugin, error)

NewBuildPlugin creates a new build plugin instance

Types

type CompileTarget

type CompileTarget struct {
	Os   string
	Arch string
}

CompileTarget struct contains information about compile target

type LinkerParams

type LinkerParams struct {
	StripDebugInfo bool
	LinkerFlags    []string
}

LinkerParams is set of params for linker (ln)

type Params

type Params struct {
	Source     string
	BuildMode  string
	OutputPath string
	Params     LinkerParams
	Target     CompileTarget
	Variables  scope.Vars
}

Params is params for the build plugin

type Plugin

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

Plugin represents Gilbert's plugin

func (*Plugin) Call

func (p *Plugin) Call(ctx *job.RunContext, r plugins.JobRunner) (err error)

Call calls a plugin

func (*Plugin) Cancel added in v0.4.0

func (p *Plugin) Cancel(ctx *job.RunContext) error

Cancel cancels build process

Jump to

Keyboard shortcuts

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