Introduce flat deps info list.

Compared to full list, flat list drops dependency edges and simply
lists all transitive dependencies for a top-level apex bundle.

Bug: 149622332
Test: m, manually build flatlist

Change-Id: Ibd521c96b7aeab90b95965c1b524e0a0152aaf5a
This commit is contained in:
Artur Satayev
2020-04-27 18:07:06 +01:00
parent 872a144dca
commit a8bd113a69
3 changed files with 51 additions and 14 deletions

View File

@@ -719,6 +719,9 @@ func (a *apexBundle) buildApexDependencyInfo(ctx android.ModuleContext) {
ctx.Build(pctx, android.BuildParams{
Rule: android.Phony,
Output: android.PathForPhony(ctx, a.Name()+"-deps-info"),
Inputs: []android.Path{a.ApexBundleDepsInfo.FullListPath()},
Inputs: []android.Path{
a.ApexBundleDepsInfo.FullListPath(),
a.ApexBundleDepsInfo.FlatListPath(),
},
})
}