Documentation ¶
Index ¶
- type Binary
- type Dep
- type GccToolchain
- func (gcc GccToolchain) Binary(out core.Path, objs core.Paths, alwaysLinkLibs core.Paths, libs core.Paths, ...) string
- func (gcc GccToolchain) EmbeddedBlob(out core.OutPath, src core.Path) string
- func (gcc GccToolchain) ObjectFile(out core.OutPath, depfile core.OutPath, flags core.Flags, includes core.Paths, ...) string
- func (gcc GccToolchain) SharedLibrary(out core.Path, objs core.Paths) string
- func (gcc GccToolchain) StaticLibrary(out core.Path, objs core.Paths) string
- type Library
- type ObjectFile
- type Toolchain
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binary ¶
type Binary struct { Out core.OutPath Srcs core.Paths CompilerFlags core.Flags LinkerFlags core.Flags Deps []Dep Script core.Path Toolchain Toolchain }
Binary builds and links an executable.
type Dep ¶
type Dep interface {
CcLibrary() Library
}
Dep is an interface implemented by dependencies that can be linked into a library.
type GccToolchain ¶
type GccToolchain struct { Ar core.GlobalPath As core.GlobalPath Cc core.GlobalPath Cpp core.GlobalPath Cxx core.GlobalPath Objcopy core.GlobalPath Includes core.Paths CompilerFlags core.Flags LinkerFlags core.Flags ArchName string TargetName string }
Toolchain represents a C++ toolchain.
func (GccToolchain) Binary ¶
func (gcc GccToolchain) Binary(out core.Path, objs core.Paths, alwaysLinkLibs core.Paths, libs core.Paths, flags core.Flags, script core.Path) string
Binary generates the command to build an executable.
func (GccToolchain) EmbeddedBlob ¶
func (GccToolchain) ObjectFile ¶
func (gcc GccToolchain) ObjectFile(out core.OutPath, depfile core.OutPath, flags core.Flags, includes core.Paths, src core.Path) string
ObjectFile generates a compile command.
func (GccToolchain) SharedLibrary ¶
SharedLibrary generates the command to build a shared library.
func (GccToolchain) StaticLibrary ¶
StaticLibrary generates the command to build a static library.
type Library ¶
type Library struct { Out core.OutPath Srcs core.Paths Objs core.Paths Includes core.Paths CompilerFlags core.Flags Deps []Dep AlwaysLink bool Toolchain Toolchain }
Library builds and links a static C++ library.
type ObjectFile ¶
ObjectFile compiles a single C++ source file.
type Toolchain ¶
type Toolchain interface { ObjectFile(out core.OutPath, depfile core.OutPath, flags core.Flags, includes core.Paths, src core.Path) string StaticLibrary(out core.Path, objs core.Paths) string Binary(out core.Path, objs core.Paths, alwaysLinkLibs core.Paths, libs core.Paths, flags core.Flags, script core.Path) string EmbeddedBlob(out core.OutPath, src core.Path) string }
Click to show internal directories.
Click to hide internal directories.