Pass SdkMember to AddPrebuiltModule instead of the name
This is needed for a follow up change that makes sure that the prebuilt modules have the same visibility as the source modules. Bug: 143678475 Test: m conscrypt-module-sdk Change-Id: I9461c8c094ab19ee9ececb5e5fd50565789f2fa2
This commit is contained in:
@@ -2000,6 +2000,6 @@ func (mt *droidStubsSdkMemberType) BuildSnapshot(sdkModuleContext android.Module
|
||||
snapshotRelativeDir := filepath.Join("java", d.Name()+"_stubs_sources")
|
||||
builder.UnzipToSnapshot(stubsSrcJar, snapshotRelativeDir)
|
||||
|
||||
pbm := builder.AddPrebuiltModule(sdkModuleContext.OtherModuleName(d), "prebuilt_stubs_sources")
|
||||
pbm := builder.AddPrebuiltModule(member, "prebuilt_stubs_sources")
|
||||
pbm.AddProperty("srcs", []string{snapshotRelativeDir})
|
||||
}
|
||||
|
@@ -1760,7 +1760,7 @@ func (mt *librarySdkMemberType) buildSnapshot(
|
||||
}
|
||||
}
|
||||
|
||||
module := builder.AddPrebuiltModule(sdkModuleContext.OtherModuleName(j), "java_import")
|
||||
module := builder.AddPrebuiltModule(member, "java_import")
|
||||
module.AddProperty("jars", []string{snapshotRelativeJavaLibPath})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user