Merge changes from topic "java-proto-include-dir" into main

* changes:
  Handle proto.include_dirs for java
  Translate python_libray.pkg_path to proto.import_prefix
This commit is contained in:
Treehugger Robot
2023-08-28 17:18:29 +00:00
committed by Gerrit Code Review
4 changed files with 72 additions and 5 deletions

View File

@@ -197,6 +197,14 @@ func (p *PythonLibraryModule) getPkgPath() string {
return String(p.properties.Pkg_path)
}
// PkgPath is the "public" version of `getPkgPath` that is only available during bp2build
func (p *PythonLibraryModule) PkgPath(ctx android.BazelConversionContext) *string {
if ctx.Config().BuildMode != android.Bp2build {
ctx.ModuleErrorf("PkgPath is only supported in bp2build mode")
}
return p.properties.Pkg_path
}
func (p *PythonLibraryModule) getBaseProperties() *BaseProperties {
return &p.properties
}