rules_cc

package
v0.0.0-...-3b147a8 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProtoCcLibraryRuleName   = "proto_cc_library"
	ProtoCcLibraryRuleSuffix = "_cc_library"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CcLibrary

type CcLibrary struct {
	KindName       string
	RuleNameSuffix string
	Outputs        []string
	Config         *protoc.ProtocConfiguration
	RuleConfig     *protoc.LanguageRuleConfig
	Resolver       protoc.DepsResolver
}

CcLibrary implements RuleProvider for 'cc_library'-derived rules.

func (*CcLibrary) Deps

func (s *CcLibrary) Deps() []string

Deps computes the deps list for the rule.

func (*CcLibrary) Hdrs

func (s *CcLibrary) Hdrs() []string

Hdrs computes the hdrs list for the rule.

func (*CcLibrary) Imports

func (s *CcLibrary) Imports(c *config.Config, r *rule.Rule, file *rule.File) []resolve.ImportSpec

Imports implements part of the RuleProvider interface.

func (*CcLibrary) Kind

func (s *CcLibrary) Kind() string

Kind implements part of the ruleProvider interface.

func (*CcLibrary) Name

func (s *CcLibrary) Name() string

Name implements part of the ruleProvider interface.

func (*CcLibrary) Resolve

func (s *CcLibrary) Resolve(c *config.Config, ix *resolve.RuleIndex, r *rule.Rule, imports []string, from label.Label)

Resolve implements part of the RuleProvider interface.

func (*CcLibrary) Rule

func (s *CcLibrary) Rule(otherGen ...*rule.Rule) *rule.Rule

Rule implements part of the ruleProvider interface.

func (*CcLibrary) Srcs

func (s *CcLibrary) Srcs() []string

Srcs computes the srcs list for the rule.

func (*CcLibrary) Visibility

func (s *CcLibrary) Visibility() []string

Visibility provides visibility labels.

Jump to

Keyboard shortcuts

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