Remove moduleInfoJSON from ModuleBase.
Bug: 358425833 Test: Manually verified all the generated ninja and mk files and CI. Change-Id: I145272636b87b20e49c05e847336737cccc20f79
This commit is contained in:
@@ -266,6 +266,10 @@ type moduleContext struct {
|
||||
buildParams []BuildParams
|
||||
ruleParams map[blueprint.Rule]blueprint.RuleParams
|
||||
variables map[string]string
|
||||
|
||||
// moduleInfoJSON can be filled out by GenerateAndroidBuildActions to write a JSON file that will
|
||||
// be included in the final module-info.json produced by Make.
|
||||
moduleInfoJSON *ModuleInfoJSON
|
||||
}
|
||||
|
||||
var _ ModuleContext = &moduleContext{}
|
||||
@@ -729,11 +733,11 @@ func (m *moduleContext) LicenseMetadataFile() Path {
|
||||
}
|
||||
|
||||
func (m *moduleContext) ModuleInfoJSON() *ModuleInfoJSON {
|
||||
if moduleInfoJSON := m.module.base().moduleInfoJSON; moduleInfoJSON != nil {
|
||||
if moduleInfoJSON := m.moduleInfoJSON; moduleInfoJSON != nil {
|
||||
return moduleInfoJSON
|
||||
}
|
||||
moduleInfoJSON := &ModuleInfoJSON{}
|
||||
m.module.base().moduleInfoJSON = moduleInfoJSON
|
||||
m.moduleInfoJSON = moduleInfoJSON
|
||||
return moduleInfoJSON
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user