Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrMissingOptimize = errors.New("missing optimize") ErrUnrecognizedOptimize = errors.New("unrecognized optimize") )
var ( ErrMissingProfile = errors.New("missing profile") ErrUnrecognizedProfile = errors.New("unrecognized profile") )
Functions ¶
func EditorName ¶
func EditorName() string
EditorName returns the expected name of the Godot editor executable based on the host platform.
Types ¶
type Optimize ¶
type Optimize uint
Optimize is the level of optimization for a Godot export template.
func MustParseOptimize ¶
Parses an input string as an operating system specification but panics if it would fail.
func ParseOptimize ¶
Parses an input string as an operating system specification.
NOTE: This is a best effort implementation. Please open an issue on GitHub if some values are missing: github.com/coffeebeats/gdbuild/issues/new?labels=bug&template=%F0%9F%90%9B-bug-report.md.
func (Optimize) String ¶
String implements 'fmt.Stringer' for 'Optimize' according to the optimization levels passed to SCons during compilation.
func (*Optimize) UnmarshalText ¶
type Profile ¶
type Profile uint
Optimization levels supported by Godot.
func MustParseProfile ¶
Parses an input string as a build profile specification but panics if it would fail.
func ParseProfile ¶
Parses an input string as a build 'Profile' optimization level.
func (Profile) String ¶
String implements 'fmt.Stringer' for 'Profile' according to the profile names passed to SCons during compilation.
func (Profile) TargetName ¶
TargetName returns the name of the 'SCons' build target for 'Godot'.
func (*Profile) UnmarshalText ¶
type Source ¶
type Source struct { // PathSource is a path to a directory containing the Godot source code. PathSource osutil.Path `hash:"ignore" toml:"src_path"` // Version is a specific version label to download. Version Version `toml:"version"` // VersionFile is a file containing just the a version label to download. VersionFile osutil.Path `hash:"ignore" toml:"version_file"` }
Source defines options and settings for which Godot version to use. Note that only one of these options can be used at a time, but one *must* be specified.
func (*Source) IsEmpty ¶
IsEmpty returns whether all properties are unset, implying there is no need to vendor Godot source code.
func (*Source) ParseVersion ¶
ParseVersion determines the 'Godot' version from the underlying 'Source' configuration. Returns an 'ErrConflictingValue' when a source path is set on the struct instead of a version specification.