build

package
v0.0.0-...-0a8a4eb Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2025 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean

func Clean(args []string, conf *Config)

func DefaultAppExt

func DefaultAppExt() string

func IsCheckEnable

func IsCheckEnable() bool

func IsDbgEnabled

func IsDbgEnabled() bool

func IsDbgSymsEnabled

func IsDbgSymsEnabled() bool

func IsOptimizeEnabled

func IsOptimizeEnabled() bool

func IsRpathChangeEnabled

func IsRpathChangeEnabled() bool

func IsTraceEnabled

func IsTraceEnabled() bool

func ParseArgs

func ParseArgs(args []string, swflags map[string]bool) (flags, patterns []string, verbose bool)

func SkipFlagArgs

func SkipFlagArgs(args []string) int

Types

type Config

type Config struct {
	BinPath   string
	AppExt    string   // ".exe" on Windows, empty on Unix
	OutFile   string   // only valid for ModeBuild when len(pkgs) == 1
	RunArgs   []string // only valid for ModeRun
	Mode      Mode
	GenExpect bool // only valid for ModeCmpTest
}

func NewDefaultConf

func NewDefaultConf(mode Mode) *Config

type Mode

type Mode int
const (
	ModeBuild Mode = iota
	ModeInstall
	ModeRun
	ModeTest
	ModeCmpTest
	ModeGen
)

type Package

type Package = *aPackage

func Do

func Do(args []string, conf *Config) ([]Package, error)

Jump to

Keyboard shortcuts

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