Enable bloaty artifact for checkbuild
Test: m checkbuild dist; verify DIST_DIR/binary_sizes.pb Bug: 172339742 Change-Id: If6f3b33a5d6efade98a15ddf5827ef010d1535dd
This commit is contained in:
parent
f3e0d22234
commit
5db3d98c3e
1 changed files with 6 additions and 1 deletions
|
@ -23,6 +23,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const bloatyDescriptorExt = "bloaty.csv"
|
const bloatyDescriptorExt = "bloaty.csv"
|
||||||
|
const protoFilename = "binary_sizes.pb"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
fileSizeMeasurerKey blueprint.ProviderKey
|
fileSizeMeasurerKey blueprint.ProviderKey
|
||||||
|
@ -87,6 +88,10 @@ func (singleton *sizesSingleton) GenerateBuildActions(ctx android.SingletonConte
|
||||||
ctx.Build(pctx, android.BuildParams{
|
ctx.Build(pctx, android.BuildParams{
|
||||||
Rule: bloatyMerger,
|
Rule: bloatyMerger,
|
||||||
Inputs: android.SortedUniquePaths(deps),
|
Inputs: android.SortedUniquePaths(deps),
|
||||||
Output: android.PathForOutput(ctx, "binary_sizes.pb"),
|
Output: android.PathForOutput(ctx, protoFilename),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (singleton *sizesSingleton) MakeVars(ctx android.MakeVarsContext) {
|
||||||
|
ctx.DistForGoalWithFilename("checkbuild", android.PathForOutput(ctx, protoFilename), protoFilename)
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue