cc

package
v0.0.0-...-d04b29a Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2018 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CCVersion = ""

	CCENV = os.Environ()
)

Functions

func Archiver

func Archiver() string

func Compiler

func Compiler() string

func Linker

func Linker() string

func Stripper

func Stripper() string

Stripper returns the strip binary

Types

type CBin

type CBin struct {
	Name            string   `cxx_binary:"name" cc_binary:"name"`
	Sources         []string `cxx_binary:"srcs" cc_binary:"srcs" build:"path" ext:".c,.S,.cpp,.cc"`
	Dependencies    []string `cxx_binary:"deps" cc_binary:"deps"`
	Includes        []string `cxx_binary:"headers" cc_binary:"includes" build:"path" ext:".h,.c,.S"`
	Headers         []string `cxx_binary:"exported_headers" cc_binary:"hdrs" build:"path" ext:".h,.hh,.hpp"`
	CompilerOptions []string `cxx_binary:"compiler_flags" cc_binary:"copts"`
	LinkerOptions   []string `cxx_binary:"linker_flags" cc_binary:"linkopts"`
	LinkerFile      string   `cxx_binary:"ld" cc_binary:"ld" build:"path"`
	Static          bool     `cxx_binary:"linkstatic" cc_binary:"linkstatic"`
	Strip           bool     `cxx_binary:"strip" cc_binary:"strip"`
	AlwaysLink      bool     `cxx_binary:"alwayslink" cc_binary:"alwayslink"`
	Install         *string  `cxx_binary:"install" cc_binary:"install"`
}

func (*CBin) Build

func (cb *CBin) Build(e *executor.Executor) error

func (*CBin) CCParams

func (cb *CBin) CCParams() []string

func (*CBin) GetDependencies

func (cb *CBin) GetDependencies() []string

func (*CBin) GetName

func (cb *CBin) GetName() string

func (*CBin) Hash

func (cb *CBin) Hash() []byte

func (*CBin) Installs

func (cb *CBin) Installs() map[string]string

func (*CBin) LDParams

func (cb *CBin) LDParams() []string

type CLib

type CLib struct {
	Name            string   `cxx_library:"name" cc_library:"name"`
	Sources         []string `cxx_library:"srcs" cc_library:"srcs" build:"path" ext:".c,.S,.cpp,.cc"`
	Dependencies    []string `cxx_library:"deps" cc_library:"deps"`
	Includes        []string `cxx_library:"headers" cc_library:"includes" build:"path" ext:".h,.c,.S"`
	Headers         []string `cxx_library:"exported_headers" cc_library:"hdrs" build:"path" ext:".h,.c,.S"`
	CompilerOptions []string `cxx_library:"compiler_flags" cc_library:"copts"`
	LinkerOptions   []string `cxx_library:"linker_flags" cc_library:"linkopts"`
	LinkStatic      bool     `cxx_library:"linkstatic" cc_library:"linkstatic"`
	AlwaysLink      bool     `cxx_library:"alwayslink" cc_library:"alwayslink"`
}

func (*CLib) Build

func (cl *CLib) Build(e *executor.Executor) error

func (*CLib) GetDependencies

func (cl *CLib) GetDependencies() []string

func (*CLib) GetName

func (cl *CLib) GetName() string

func (*CLib) Hash

func (cl *CLib) Hash() []byte

func (*CLib) Installs

func (cl *CLib) Installs() map[string]string

type CTest

type CTest struct {
	Name            string   `cxx_test:"name" cc_test:"name"`
	Sources         []string `cxx_test:"srcs" cc_test:"srcs" build:"path"`
	Dependencies    []string `cxx_test:"deps" cc_test:"deps"`
	Includes        []string `cxx_test:"headers" cc_test:"includes" build:"path"`
	Headers         []string `cxx_test:"exported_headers" cc_test:"hdrs" build:"path"`
	CompilerOptions []string `cxx_test:"compiler_flags" cc_test:"copts"`
	LinkerOptions   []string `cxx_test:"linker_flags" cc_test:"linkopts"`
	LinkerFile      string   `cxx_test:"ld" cc_test:"ld" build:"path"`
	Static          bool     `cxx_test:"linkstatic" cc_test:"linkstatic"`
	Strip           bool     `cxx_test:"strip" cc_test:"strip"`
	AlwaysLink      bool     `cxx_test:"alwayslink" cc_test:"alwayslink"`
}

func (*CTest) Build

func (ct *CTest) Build(e *executor.Executor) error

func (*CTest) GetDependencies

func (ct *CTest) GetDependencies() []string

func (*CTest) GetName

func (ct *CTest) GetName() string

func (*CTest) Hash

func (ct *CTest) Hash() []byte

func (*CTest) Installs

func (ct *CTest) Installs() map[string]string

Jump to

Keyboard shortcuts

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