Add tag data to soong-debug-info.json. am: c7ec117556

Original change: https://android-review.googlesource.com/c/platform/build/blueprint/+/2956143

Change-Id: Id701b9172a56db6780c1e1e899569e6bec689cc2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Joe Onorato 2024-02-12 19:55:21 +00:00 committed by Automerger Merge Worker
commit 6dacd69f65

View file

@ -4955,16 +4955,17 @@ func funcName(f interface{}) string {
// json representation of a dependency
type depJson struct {
Name string `json:"name"`
Variant string `json:"variant"`
TagType string `json:"tag_type,omitempty"`
Name string `json:"name"`
Variant string `json:"variant"`
TagType string `json:"tag_type"`
TagData interface{} `json:"tag_data"`
}
// json representation of a provider
type providerJson struct {
Type string `json:"type,omitempty"`
Debug string `json:"debug,omitempty"` // from GetDebugString on the provider data
Fields interface{} `json:"fields,omitempty"`
Type string `json:"type"`
Debug string `json:"debug"` // from GetDebugString on the provider data
Fields interface{} `json:"fields"`
}
// interface for getting debug info from various data.
@ -5090,6 +5091,7 @@ func getModuleDebugJson(module *moduleInfo) []byte {
t := reflect.TypeOf(dep.tag)
if t != nil {
result[i].TagType = t.PkgPath() + "." + t.Name()
result[i].TagData = debugPropertyMap(reflect.ValueOf(dep.tag))
}
}
return result