Documentation
¶
Index ¶
- Constants
- func InitCompilers()
- func RemovePath(path string)
- type ActionDefinition
- type ActionDumpDefinition
- type ActionFailureDefinition
- type ActionHandleDefinition
- type ActionOutputDefinition
- type Compiler
- type CompilerDefinition
- type CompilerFindDefinition
- type CompilerFindResult
- type ConfigureFile
- type DefinitionContext
- type GlobalDefinition
- type HookDefinition
- type LinkDefinition
- type SourceDefinition
- type Target
- type TargetDefinition
- type TargetGroup
Constants ¶
View Source
const CONFIGURE_DIR string = ".gmakec"
Variables ¶
This section is empty.
Functions ¶
func InitCompilers ¶
func InitCompilers()
func RemovePath ¶
func RemovePath(path string)
Types ¶
type ActionDefinition ¶
type ActionDumpDefinition ¶
type ActionFailureDefinition ¶
type ActionFailureDefinition struct {
Continue bool `yaml:"continue"`
Handle []ActionHandleDefinition `yaml:"handle"`
}
type ActionHandleDefinition ¶
type ActionHandleDefinition struct {
Define string `yaml:"define"`
Print string `yaml:"print"`
Dump ActionDumpDefinition `yaml:"dump"`
}
type ActionOutputDefinition ¶
type ActionOutputDefinition struct {
Capture []string `yaml:"capture"`
OnSuccess []ActionHandleDefinition `yaml:"on_success"`
OnFailure ActionFailureDefinition `yaml:"on_failure"`
Stdout bytes.Buffer
Stderr bytes.Buffer
}
type CompilerDefinition ¶
type CompilerFindDefinition ¶
type CompilerFindDefinition struct {
Type string `yaml:"type"`
Names []string `yaml:"names"`
Paths []string `yaml:"paths"`
Results []CompilerFindResult
}
type CompilerFindResult ¶
type ConfigureFile ¶
func (*ConfigureFile) Execute ¶
func (this *ConfigureFile) Execute(definitionContext *DefinitionContext) error
type DefinitionContext ¶
type DefinitionContext struct {
DefinitionPath string
Definition *GlobalDefinition
ConfigureDir string
}
func NewDefinitionContext ¶
func NewDefinitionContext(path string) (*DefinitionContext, error)
func (*DefinitionContext) Build ¶
func (this *DefinitionContext) Build(verbose bool) error
func (*DefinitionContext) Configure ¶
func (this *DefinitionContext) Configure(definitionContexts *[]*DefinitionContext, targets ...string) error
type GlobalDefinition ¶
type GlobalDefinition struct {
Description string `yaml:"description"` // unused atm
Version string `yaml:"version"`
Compilers []CompilerDefinition `yaml:"compilers"`
Actions []ActionDefinition `yaml:"actions"`
Hooks []HookDefinition `yaml:"hooks"`
Targets []TargetDefinition `yaml:"targets"`
Imports []string `yaml:"imports"`
VersionMajor string
VersionMinor string
VersionPatch string
VersionTweak string
}
type HookDefinition ¶
type HookDefinition struct {
Ref string `yaml:"ref"`
Name string `yaml:"name"`
Step string `yaml:"step"`
Actions []ActionDefinition `yaml:"actions"`
}
type LinkDefinition ¶
type SourceDefinition ¶
type TargetDefinition ¶
type TargetDefinition struct {
Name string `yaml:"name"`
Platform string `yaml:"platform"`
Compiler CompilerDefinition `yaml:"compiler"`
ConfigureFiles []ConfigureFile `yaml:"configure_files"`
Defines []string `yaml:"defines"`
Sources []SourceDefinition `yaml:"sources"`
Includes []string `yaml:"includes"`
Links []LinkDefinition `yaml:"links"`
Output string `yaml:"output"`
Dependencies []string `yaml:"dependencies"`
Hooks []HookDefinition `yaml:"hooks"`
}
type TargetGroup ¶
type TargetGroup struct {
Targets []int
}
Source Files
¶
- action_definition.go
- command_utils.go
- compiler.go
- compiler_definition.go
- compiler_find_definition.go
- configure_file_definition.go
- definition_context.go
- definition_context_utils.go
- global_definition.go
- hook_defintion.go
- link_definition.go
- path_utils.go
- source_definition.go
- target.go
- target_definition.go
- target_group.go
- target_group_utils.go
Click to show internal directories.
Click to hide internal directories.