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

Commit 2195f24e authored by Romain Jobredeaux's avatar Romain Jobredeaux Committed by Gerrit Code Review
Browse files

Merge "Re-order android_app bp2build converter logic." into main

parents 0e3da816 d2cc5037
Loading
Loading
Loading
Loading
+8 −9
Original line number Diff line number Diff line
@@ -1632,15 +1632,6 @@ type bazelAndroidAppAttributes struct {

// ConvertWithBp2build is used to convert android_app to Bazel.
func (a *AndroidApp) ConvertWithBp2build(ctx android.TopDownMutatorContext) {
	commonAttrs, bp2BuildInfo, supported := a.convertLibraryAttrsBp2Build(ctx)
	if !supported {
		return
	}
	depLabels := bp2BuildInfo.DepLabels

	deps := depLabels.Deps
	deps.Append(depLabels.StaticDeps)

	aapt, supported := a.convertAaptAttrsWithBp2Build(ctx)
	if !supported {
		return
@@ -1711,8 +1702,16 @@ func (a *AndroidApp) ConvertWithBp2build(ctx android.TopDownMutatorContext) {
			})
			appAttrs.Proguard_specs.Add(bazel.MakeLabelAttribute(":" + generatedFlagFileRuleName))
		}
	}

	commonAttrs, bp2BuildInfo, supported := a.convertLibraryAttrsBp2Build(ctx)
	if !supported {
		return
	}
	depLabels := bp2BuildInfo.DepLabels

	deps := depLabels.Deps
	deps.Append(depLabels.StaticDeps)

	props := bazel.BazelTargetModuleProperties{
		Rule_class:        "android_binary",