Add IdeInfo for java module types
This CL adds support for 1. java_system_modules 2. java_system_modules_import 3. java_device_for_host 4. java_host_for_device Bug: 356572093 Test: cat out/soong/module_bp_java_deps.json | jq '."core-all-system-modules"' is no longer null Change-Id: I73affae834df7f6ed961fa757585242f6d388395
This commit is contained in:
@@ -188,3 +188,11 @@ func (d *DeviceHostConverter) AndroidMk() android.AndroidMkData {
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
// implement the following interface for IDE completion.
|
||||
var _ android.IDEInfo = (*DeviceHostConverter)(nil)
|
||||
|
||||
func (d *DeviceHostConverter) IDEInfo(ideInfo *android.IdeInfo) {
|
||||
ideInfo.Deps = append(ideInfo.Deps, d.properties.Libs...)
|
||||
ideInfo.Libs = append(ideInfo.Libs, d.properties.Libs...)
|
||||
}
|
||||
|
@@ -311,3 +311,11 @@ func (p *systemModulesInfoProperties) AddToPropertySet(ctx android.SdkMemberCont
|
||||
propertySet.AddPropertyWithTag("libs", p.Libs, ctx.SnapshotBuilder().SdkMemberReferencePropertyTag(true))
|
||||
}
|
||||
}
|
||||
|
||||
// implement the following interface for IDE completion.
|
||||
var _ android.IDEInfo = (*SystemModules)(nil)
|
||||
|
||||
func (s *SystemModules) IDEInfo(ideInfo *android.IdeInfo) {
|
||||
ideInfo.Deps = append(ideInfo.Deps, s.properties.Libs...)
|
||||
ideInfo.Libs = append(ideInfo.Libs, s.properties.Libs...)
|
||||
}
|
||||
|
Reference in New Issue
Block a user