Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30e3e9d2 authored by Thiébaud Weksteen's avatar Thiébaud Weksteen Committed by Gerrit Code Review
Browse files

Merge "Enable bloaty artifact for checkbuild"

parents 07b9f86f 5db3d98c
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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)
}