Add deps of protos to bp2build.
Update BazelOutPath to implement genPathProvider. This allows Bazel outputs (incl filegroup) to be used as an input to generating a file (e.g. proto). Test: bp2build.sh Test: mixed_build.sh Bug: 200601772 Change-Id: I5ad67ade193025652100b214996b26ce9ca9bf83
This commit is contained in:
@@ -393,9 +393,19 @@ type BazelOutPath struct {
|
||||
OutputPath
|
||||
}
|
||||
|
||||
// ensure BazelOutPath implements Path
|
||||
var _ Path = BazelOutPath{}
|
||||
|
||||
// ensure BazelOutPath implements genPathProvider
|
||||
var _ genPathProvider = BazelOutPath{}
|
||||
|
||||
// ensure BazelOutPath implements objPathProvider
|
||||
var _ objPathProvider = BazelOutPath{}
|
||||
|
||||
func (p BazelOutPath) genPathWithExt(ctx ModuleOutPathContext, subdir, ext string) ModuleGenPath {
|
||||
return PathForModuleGen(ctx, subdir, pathtools.ReplaceExtension(p.path, ext))
|
||||
}
|
||||
|
||||
func (p BazelOutPath) objPathWithExt(ctx ModuleOutPathContext, subdir, ext string) ModuleObjPath {
|
||||
return PathForModuleObj(ctx, subdir, pathtools.ReplaceExtension(p.path, ext))
|
||||
}
|
||||
|
Reference in New Issue
Block a user