Merge "Update java_api_library in testing modules" am: 3bfba4c723
am: 7cec47c124
am: 81e8a21ee4
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2523975 Change-Id: I936b1c9851140426a9cf8e2d4f3a91068c774246 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1611,7 +1611,7 @@ func (ap *JavaApiContribution) GenerateAndroidBuildActions(ctx android.ModuleCon
|
||||
}
|
||||
|
||||
type JavaApiLibraryDepsInfo struct {
|
||||
StubsJar android.Path
|
||||
JavaInfo
|
||||
StubsSrcJar android.Path
|
||||
}
|
||||
|
||||
@@ -1820,7 +1820,7 @@ func (al *ApiLibrary) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
||||
staticLibs = append(staticLibs, provider.HeaderJars...)
|
||||
case depApiSrcsTag:
|
||||
provider := ctx.OtherModuleProvider(dep, JavaApiLibraryDepsProvider).(JavaApiLibraryDepsInfo)
|
||||
classPaths = append(classPaths, provider.StubsJar)
|
||||
classPaths = append(classPaths, provider.HeaderJars...)
|
||||
depApiSrcsStubsSrcJar = provider.StubsSrcJar
|
||||
}
|
||||
})
|
||||
@@ -1899,7 +1899,9 @@ func (al *ApiLibrary) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
||||
})
|
||||
|
||||
ctx.SetProvider(JavaApiLibraryDepsProvider, JavaApiLibraryDepsInfo{
|
||||
StubsJar: al.stubsJar,
|
||||
JavaInfo: JavaInfo{
|
||||
HeaderJars: android.PathsIfNonNil(al.stubsJar),
|
||||
},
|
||||
StubsSrcJar: al.stubsSrcJar,
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user