Added module_exports/_snapshot as alias for sdk/_snapshot
Bug: 146341462 Test: m nothing Change-Id: I27e1ef494a2b0874074aa43614612189b17e7860
This commit is contained in:
@@ -209,7 +209,13 @@ func (s *sdk) buildSnapshot(ctx android.ModuleContext) android.OutputPath {
|
||||
|
||||
// Create the snapshot module.
|
||||
snapshotName := ctx.ModuleName() + string(android.SdkVersionSeparator) + builder.version
|
||||
snapshotModule := bpFile.newModule("sdk_snapshot")
|
||||
var snapshotModuleType string
|
||||
if s.properties.Module_exports {
|
||||
snapshotModuleType = "module_exports_snapshot"
|
||||
} else {
|
||||
snapshotModuleType = "sdk_snapshot"
|
||||
}
|
||||
snapshotModule := bpFile.newModule(snapshotModuleType)
|
||||
snapshotModule.AddProperty("name", snapshotName)
|
||||
|
||||
// Make sure that the snapshot has the same visibility as the sdk.
|
||||
|
Reference in New Issue
Block a user