From 5db3d98c3ef9e6199d7b601c30814921f5976cde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thi=C3=A9baud=20Weksteen?= Date: Wed, 24 Feb 2021 16:44:36 +0100 Subject: [PATCH] Enable bloaty artifact for checkbuild Test: m checkbuild dist; verify DIST_DIR/binary_sizes.pb Bug: 172339742 Change-Id: If6f3b33a5d6efade98a15ddf5827ef010d1535dd --- bloaty/bloaty.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bloaty/bloaty.go b/bloaty/bloaty.go index 0bff8aac7..21bf4acf1 100644 --- a/bloaty/bloaty.go +++ b/bloaty/bloaty.go @@ -23,6 +23,7 @@ import ( ) const bloatyDescriptorExt = "bloaty.csv" +const protoFilename = "binary_sizes.pb" var ( fileSizeMeasurerKey blueprint.ProviderKey @@ -87,6 +88,10 @@ func (singleton *sizesSingleton) GenerateBuildActions(ctx android.SingletonConte ctx.Build(pctx, android.BuildParams{ Rule: bloatyMerger, 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) +}