Merge "[bp2build] android_test bp2build." into main am: 088c4b652b
am: 3aaf1a80bd
am: 3a02b22205
am: cd2454b172
am: 278d4778c8
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2727561 Change-Id: I7594547b6f80d7b63cde2458d556ccad3b7d508e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1342,7 +1342,10 @@ func (a *AndroidLibrary) ConvertWithBp2build(ctx android.TopDownMutatorContext)
|
||||
if !commonAttrs.Srcs.IsEmpty() {
|
||||
deps.Append(depLabels.StaticDeps) // we should only append these if there are sources to use them
|
||||
} else if !depLabels.Deps.IsEmpty() {
|
||||
ctx.ModuleErrorf("Module has direct dependencies but no sources. Bazel will not allow this.")
|
||||
ctx.MarkBp2buildUnconvertible(
|
||||
bp2build_metrics_proto.UnconvertedReasonType_UNSUPPORTED,
|
||||
"Module has direct dependencies but no sources. Bazel will not allow this.")
|
||||
return
|
||||
}
|
||||
name := a.Name()
|
||||
props := AndroidLibraryBazelTargetModuleProperties()
|
||||
|
Reference in New Issue
Block a user