Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func EncryptionKeyFromEnv ¶
func EncryptionKeyFromEnv() string
EncryptionKeyFromEnv returns the encryption key set via environment variable.
Types ¶
type Build ¶
type Build struct { // Arch is the CPU architecture of the Godot export template. Arch platform.Arch // CustomModules is a list of paths to custom modules to include in the // template build. CustomModules []osutil.Path `hash:"ignore"` // Ignore; paths are separately hashed. // CustomPy is a path to a 'custom.py' file which defines export template // build options. CustomPy osutil.Path `hash:"ignore"` // Ignore; path is separately hashed. // DoublePrecision enables double floating-point precision. DoublePrecision bool // EncryptionKey is an encryption key to embed in the export template. // // NOTE: While this could just be set in 'Env', exposing it here simplifies // setting it externally (i.e. via the 'target' command). EncryptionKey string // Env is a map of environment variables to set during the build step. Env map[string]string // Source is the source code specification for the build. Source engine.Source // Optimize is the level of optimization for the Godot export template. Optimize engine.Optimize // Platform defines which OS/platform to build for. Platform platform.OS // Profile is the optimization level of the template. Profile engine.Profile // SCons contains a specification for how to invoke the compiler. SCons SCons }
Build uniquely specifies a compilation of a Godot export template.
type SCons ¶
type SCons struct { // CCFlags are additional 'CFLAGS' to append to the SCons build command. // Note that 'CCFLAGS=...' will be appended *before* 'ExtraArgs'. CCFlags []string `hash:"set" toml:"ccflags"` // CFlags are additional 'CFLAGS' to append to the SCons build command. Note // that 'CFLAGS=...' will be appended *before* 'ExtraArgs'. CFlags []string `hash:"set" toml:"cflags"` // CXXFlags are additional 'CXXFLAGS' to append to the SCons build command. // Note that 'CXXFLAGS=...' will be appended *before* 'ExtraArgs'. CXXFlags []string `hash:"set" toml:"cxxflags"` // CacheSizeLimit is the limit in MiB. CacheSizeLimit *uint32 `hash:"ignore" toml:"cache_size_limit"` // Ignore; doesn't affect binary. // Command contains arguments used to invoke SCons. Defaults to ["scons"]. Command []string `hash:"set" toml:"command"` // ExtraArgs are additional arguments to append to the SCons build command. ExtraArgs []string `hash:"set" toml:"extra_args"` // LinkFlags are additional flags passed to the linker during the SCons // build command. LinkFlags []string `hash:"set" toml:"link_flags"` // PathCache is the path to the SCons cache, relative to the manifest. PathCache osutil.Path `hash:"ignore" toml:"cache_path"` // Ignore; doesn't affect binary. }
SCons defines options and settings for use with the Godot build system.
func (*SCons) CacheSizeLimitFromEnv ¶
CacheSizeLimitFromEnv returns a SCons cache size limit set via environment variable.
func (*SCons) ExtraArgsFromEnv ¶
ExtraArgsFromEnv returns extra SCons arguments set via environment variable.
func (*SCons) PathCacheFromEnv ¶
PathCacheFromEnv returns a SCons cache path set via environment variable.
Click to show internal directories.
Click to hide internal directories.