sources

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ESourceSrc  ESourceType = 1
	ESourceECom ESourceType = 3

	EBuildTargetWindowsForm    EBuildTargetType = 0
	EBuildTargetWindowsConsole EBuildTargetType = 1
	EBuildTargetWindowsDll     EBuildTargetType = 2
	EBuildTargetWindowsECom    EBuildTargetType = 1000
	EBuildTargetLinuxConsole   EBuildTargetType = 10000
	EBuildTargetLinuxECom      EBuildTargetType = 11000
)

Variables

This section is empty.

Functions

func FilterRmNoBuild

func FilterRmNoBuild() func(src *Source) bool

func FilterTargets

func FilterTargets(targets []string) func(src *Source) bool

Types

type EBuildTargetType

type EBuildTargetType int32

func (*EBuildTargetType) Ext

func (b *EBuildTargetType) Ext() string

func (*EBuildTargetType) IsWindowsExecutable

func (b *EBuildTargetType) IsWindowsExecutable() bool

func (*EBuildTargetType) String

func (b *EBuildTargetType) String() string

type ESourceType

type ESourceType int32

type FilePasswordResolver

type FilePasswordResolver struct {
	File       string
	ProjectDir string
	// contains filtered or unexported fields
}

func (*FilePasswordResolver) Resolve

func (f *FilePasswordResolver) Resolve(source string) string

type PasswordResolver

type PasswordResolver interface {
	Resolve(source string) string
}

type Source

type Source struct {
	*config.Target
	// contains filtered or unexported fields
}

func FilterESrcs

func FilterESrcs(esrcs []*Source, filter func(src *Source) bool) (srcs []*Source)

func FromPath

func FromPath(srcPath string, build *config.Build, projectDir string, noBuild bool) *Source

func FromYAML

func FromYAML(src *config.Target, build *config.Build, projectPath string) *Source

func (*Source) AbsPath

func (s *Source) AbsPath() string

func (*Source) CompileArgs

func (s *Source) CompileArgs(outputDir string, pwd string) (args []string)

func (*Source) DisplayName

func (s *Source) DisplayName() string

func (*Source) ECodeDir

func (s *Source) ECodeDir() string

func (*Source) FromConfig

func (s *Source) FromConfig() bool

func (*Source) Match

func (s *Source) Match(target string) bool

func (*Source) NoBuild

func (s *Source) NoBuild() bool

func (*Source) OutputPath

func (s *Source) OutputPath(outputDir string) string

func (*Source) RecoverESrcPath

func (s *Source) RecoverESrcPath() string

func (*Source) SourceType

func (s *Source) SourceType() ESourceType

func (*Source) TargetType

func (s *Source) TargetType() EBuildTargetType

Jump to

Keyboard shortcuts

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