Add .hjar output file tag

Allow genrules to access the turbine header jar outputs
from java_library modules using the .hjar output file
tag.

Bug: 251871740
Test: m checkbuild
Change-Id: Ib1ec9734323a51583057fb458f791e1e0bd0d767
This commit is contained in:
Colin Cross
2022-10-14 11:45:44 -07:00
parent 0fc368cff7
commit ab50deaefd

View File

@@ -593,6 +593,8 @@ func (j *Module) OutputFiles(tag string) (android.Paths, error) {
return android.Paths{j.outputFile}, nil
case ".jar":
return android.Paths{j.implementationAndResourcesJar}, nil
case ".hjar":
return android.Paths{j.headerJarFile}, nil
case ".proguard_map":
if j.dexer.proguardDictionary.Valid() {
return android.Paths{j.dexer.proguardDictionary.Path()}, nil