core

package
v0.0.0-...-452753e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2019 License: CC0-1.0 Imports: 15 Imported by: 0

Documentation

Index

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 (
)

Functions

func BuildProject

func BuildProject()

func ExecuteTemplate

func ExecuteTemplate(templateName string, templateData string, info interface{}) (string, error)

func GenerateBuildScripts

func GenerateBuildScripts()

func GetCxxOptions

func GetCxxOptions(options map[string]interface{}) string

func RemoveBuildFiles

func RemoveBuildFiles()

func RunTests

func RunTests() error

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

type CommandRunner interface {
	Run(command []string) error
	RunWithOutput(command []string) error
}

func NewOsCommandRunner

func NewOsCommandRunner() CommandRunner

type ConanBuildInfo

type ConanBuildInfo struct {
	Dependencies []Dependency
	Settings     Setting
}

func ReadConanBuildInfo

func ReadConanBuildInfo(path string) (ConanBuildInfo, error)

type ConanPackage

type ConanPackage struct {
	Name    string
	Version string
	Channel string
}

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

type Setting

type Setting struct {
	Architecture    string `json:"arch"`
	OsBuild         string `json:"os_build"`
	Os              string
	Compiler        string
	CompilerVersion string `json:"compiler.version"`
	CompilerLibCxx  string `json:"compiler.libcxx"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL