Merge changes Ie6568cb8,Ibd521c96 am: 292e7c0721
am: a07f9df5d7
Change-Id: I4dcd1f47b080a71a97db0b10c1ebfc45b8d59bdb
This commit is contained in:
@@ -703,10 +703,18 @@ func (a *apexBundle) buildApexDependencyInfo(ctx android.ModuleContext) {
|
||||
info.IsExternal = info.IsExternal && externalDep
|
||||
depInfos[to.Name()] = info
|
||||
} else {
|
||||
toMinSdkVersion := "(no version)"
|
||||
if m, ok := to.(interface{ MinSdkVersion() string }); ok {
|
||||
if v := m.MinSdkVersion(); v != "" {
|
||||
toMinSdkVersion = v
|
||||
}
|
||||
}
|
||||
|
||||
depInfos[to.Name()] = android.ApexModuleDepInfo{
|
||||
To: to.Name(),
|
||||
From: []string{from.Name()},
|
||||
IsExternal: externalDep,
|
||||
To: to.Name(),
|
||||
From: []string{from.Name()},
|
||||
IsExternal: externalDep,
|
||||
MinSdkVersion: toMinSdkVersion,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -714,11 +722,14 @@ func (a *apexBundle) buildApexDependencyInfo(ctx android.ModuleContext) {
|
||||
return !externalDep
|
||||
})
|
||||
|
||||
a.ApexBundleDepsInfo.BuildDepsInfoLists(ctx, depInfos)
|
||||
a.ApexBundleDepsInfo.BuildDepsInfoLists(ctx, proptools.String(a.properties.Min_sdk_version), depInfos)
|
||||
|
||||
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(),
|
||||
},
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user