Add description to json module actions am: 6f42cdc60f
am: 0467cc50a3
Original change: https://android-review.googlesource.com/c/platform/build/blueprint/+/2620569 Change-Id: I73d9a18c6a1bcf27b8c926b6c0209eca6d834287 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
abd0e5d94a
1 changed files with 7 additions and 2 deletions
|
@ -2734,6 +2734,7 @@ type JSONDataSupplier interface {
|
|||
type JSONAction struct {
|
||||
Inputs []string
|
||||
Outputs []string
|
||||
Desc string
|
||||
}
|
||||
|
||||
// JSONActionSupplier allows JSON representation of additional actions that are not registered in
|
||||
|
@ -2778,14 +2779,18 @@ func jsonModuleWithActionsFromModuleInfo(m *moduleInfo) *JsonModule {
|
|||
}
|
||||
var actions []JSONAction
|
||||
for _, bDef := range m.actionDefs.buildDefs {
|
||||
actions = append(actions, JSONAction{
|
||||
a := JSONAction{
|
||||
Inputs: append(
|
||||
getNinjaStringsWithNilPkgNames(bDef.Inputs),
|
||||
getNinjaStringsWithNilPkgNames(bDef.Implicits)...),
|
||||
Outputs: append(
|
||||
getNinjaStringsWithNilPkgNames(bDef.Outputs),
|
||||
getNinjaStringsWithNilPkgNames(bDef.ImplicitOutputs)...),
|
||||
})
|
||||
}
|
||||
if d, ok := bDef.Variables["description"]; ok {
|
||||
a.Desc = d.Value(nil)
|
||||
}
|
||||
actions = append(actions, a)
|
||||
}
|
||||
|
||||
if j, ok := m.logicModule.(JSONActionSupplier); ok {
|
||||
|
|
Loading…
Reference in a new issue