udwGoBuild

package
v0.0.0-...-f254aa5 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 16 Imported by: 4

Documentation

Index

Constants

View Source
const (
	TargetOsLinux      = "linux"
	TargetOsDarwin     = "darwin"
	TargetOsWindows    = "windows"
	TargetCpuArchAmd64 = "amd64"
	TargetCpuArchArm   = "arm"
	TargetCpuArch386   = "386"
	TargetLinuxAmd64   = "LinuxAmd64"
	TargetWindows386   = "Windows386"
	TargetWindowsAmd64 = "WindowsAmd64"
	TargetDarwinAmd64  = "DarwinAmd64"
)

Variables

This section is empty.

Functions

func MustBuild

func MustBuild(req BuildRequest) *udwGoBuildCtx.Ctx

func MustBuildCtx

func MustBuildCtx(ctx *udwGoBuildCtx.Ctx)

func MustGoRunRace

func MustGoRunRace(pkgPath string, args []string)

func MustGoRunSimple

func MustGoRunSimple(pkgPath string, remainArgs []string)

Types

type BuildRequest

type BuildRequest struct {
	PkgPath           string
	OutputPath        string
	TargetOs          string
	TargetCpuArch     string
	TargetOsCpuArch   string
	BuildTagList      []string
	DisableCgo        bool
	EnableRace        bool
	EnableSymbolDebug bool
	VariableMap       map[string]string
	GopathString      string
	GorootString      string

	WindowsDisableConsole bool

	WindowsNeedManifest bool

	WindowsManifestConfig rsrc.MustBuildToWin32WithCacheRequest

	GoPathOnlyBase bool
}

func (*BuildRequest) Init

func (req *BuildRequest) Init()

func (*BuildRequest) ToCtx

func (req *BuildRequest) ToCtx() *udwGoBuildCtx.Ctx

Jump to

Keyboard shortcuts

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