Merge "Add info to json module graph about CreateModule" am: 54c00c6618 am: fcfc7e2f1a am: 23258206f4 am: c8f24384e6

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

Change-Id: I33889635b90d5004b4a1d3a69428ab1c4e48a14c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2022-05-24 21:21:07 +00:00 committed by Automerger Merge Worker
commit 6dd403f9f1

View file

@ -2255,6 +2255,7 @@ type JsonModule struct {
Deps []jsonDep
Type string
Blueprint string
CreatedBy *string
Module map[string]interface{}
}
@ -2292,6 +2293,10 @@ func jsonModuleFromModuleInfo(m *moduleInfo) *JsonModule {
Blueprint: m.relBlueprintsFile,
Module: make(map[string]interface{}),
}
if m.createdBy != nil {
n := m.createdBy.Name()
result.CreatedBy = &n
}
if j, ok := m.logicModule.(JSONDataSupplier); ok {
j.AddJSONData(&result.Module)
}