Lines Matching refs:Prebuilt
28 type Prebuilt struct {
31 // When prefer is set to true the prebuilt will be used instead of any source module with
41 func (p *Prebuilt) Name(name string) string {
45 func (p *Prebuilt) Path(ctx ModuleContext) Path {
47 ctx.PropertyErrorf("srcs", "missing prebuilt source file")
52 ctx.PropertyErrorf("srcs", "multiple prebuilt source files")
61 Prebuilt() *Prebuilt
74 // prebuilt modules that have both a prebuilt and a source module.
76 if m, ok := ctx.Module().(PrebuiltInterface); ok && m.Prebuilt() != nil {
77 p := m.Prebuilt()
91 if m, ok := ctx.Module().(PrebuiltInterface); ok && m.Prebuilt() != nil {
92 p := m.Prebuilt()
99 p := m.(PrebuiltInterface).Prebuilt()
110 // prebuilt when both modules exist and the prebuilt should be used. When the prebuilt should not
113 if m, ok := ctx.Module().(PrebuiltInterface); ok && m.Prebuilt() != nil {
114 p := m.Prebuilt()
126 // usePrebuilt returns true if a prebuilt should be used instead of the source module. The prebuilt
128 func (p *Prebuilt) usePrebuilt(ctx TopDownMutatorContext, source Module) bool {