Direct Bazel builds from m.
This CL adds support to bp2build/Soong to dump a BUILD file under out/soong/soong_injection/targets containing alias targets to their real targets for every converted Soong module, regardless of whether they are handcrafted or generated. Test: TH Change-Id: Ic1816fda5d019c395301618134fac68b3057d752
This commit is contained in:
@@ -213,6 +213,6 @@ func customBp2BuildMutatorFromStarlark(ctx android.TopDownMutatorContext) {
|
||||
// Helper method for tests to easily access the targets in a dir.
|
||||
func generateBazelTargetsForDir(codegenCtx *CodegenContext, dir string) BazelTargets {
|
||||
// TODO: Set generateFilegroups to true and/or remove the generateFilegroups argument completely
|
||||
buildFileToTargets, _ := GenerateBazelTargets(codegenCtx, false)
|
||||
buildFileToTargets, _, _ := GenerateBazelTargets(codegenCtx, false)
|
||||
return buildFileToTargets[dir]
|
||||
}
|
||||
|
Reference in New Issue
Block a user