Merge "Disable ResourceProcessorBusyBox in kythe builds" into main

This commit is contained in:
Treehugger Robot
2024-08-06 17:34:36 +00:00
committed by Gerrit Code Review

View File

@@ -166,7 +166,11 @@ func propagateRROEnforcementMutator(ctx android.TopDownMutatorContext) {
func (a *aapt) useResourceProcessorBusyBox(ctx android.BaseModuleContext) bool {
return BoolDefault(a.aaptProperties.Use_resource_processor, ctx.Config().UseResourceProcessorByDefault()) &&
// TODO(b/331641946): remove this when ResourceProcessorBusyBox supports generating shared libraries.
!slices.Contains(a.aaptProperties.Aaptflags, "--shared-lib")
!slices.Contains(a.aaptProperties.Aaptflags, "--shared-lib") &&
// Use the legacy resource processor in kythe builds.
// The legacy resource processor creates an R.srcjar, which kythe can use for generating crossrefs.
// TODO(b/354854007): Re-enable BusyBox in kythe builds
!ctx.Config().EmitXrefRules()
}
func (a *aapt) filterProduct() string {