Documentation ¶
Index ¶
- Constants
- Variables
- func BuildProject()
- func ExecuteTemplate(templateName string, templateData string, info interface{}) (string, error)
- func GenerateBuildScripts()
- func GetCxxOptions(options map[string]interface{}) string
- func RemoveBuildFiles()
- func RunTests() error
- func VerifyConanExists() error
- func VerifyNinjaExists() error
- type BuildInfo
- type CommandRunner
- type ConanBuildInfo
- type ConanPackage
- type Dependency
- type OsCommandRunner
- type Setting
Constants ¶
View Source
const ( Name = "gb" Version = "0.0.1" Author = "Andrzej 'angelo' Lichnerowicz" Website = "https://andrzej.lichnerowicz.pl/" Desc = "gb: Yet another build generator for cross-platform C++" )
Variables ¶
View Source
var (
Banner = ""
)
Functions ¶
func BuildProject ¶
func BuildProject()
func ExecuteTemplate ¶
func GenerateBuildScripts ¶
func GenerateBuildScripts()
func GetCxxOptions ¶
func RemoveBuildFiles ¶
func RemoveBuildFiles()
func VerifyConanExists ¶
func VerifyConanExists() error
func VerifyNinjaExists ¶
func VerifyNinjaExists() error
Types ¶
type BuildInfo ¶
type BuildInfo struct { Cxx string CxxOptions string Project layout.ProjectInfo }
func NewBuildInfo ¶
func NewBuildInfo() BuildInfo
type CommandRunner ¶
func NewOsCommandRunner ¶
func NewOsCommandRunner() CommandRunner
type ConanBuildInfo ¶
type ConanBuildInfo struct { Dependencies []Dependency Settings Setting }
func ReadConanBuildInfo ¶
func ReadConanBuildInfo(path string) (ConanBuildInfo, error)
type ConanPackage ¶
func ParsePackageString ¶
func ParsePackageString(name string) (ConanPackage, error)
type Dependency ¶
type Dependency struct { RootPath string Version string IncludePaths []string `json:"include_paths"` Name string Description string }
func GetTestingPackage ¶
func GetTestingPackage(info ConanBuildInfo) (Dependency, error)
type OsCommandRunner ¶
type OsCommandRunner struct{}
func (OsCommandRunner) Run ¶
func (OsCommandRunner) Run(command []string) error
func (OsCommandRunner) RunWithOutput ¶
func (OsCommandRunner) RunWithOutput(command []string) error
Click to show internal directories.
Click to hide internal directories.