Loading bp2build/conversion.go +6 −1 Original line number Diff line number Diff line Loading @@ -50,7 +50,12 @@ func createBuildFiles(buildToTargets map[string]BazelTargets, mode CodegenMode) sort.Slice(targets, func(i, j int) bool { return targets[i].name < targets[j].name }) content := soongModuleLoad if mode == Bp2Build { content = targets.LoadStatements() content = `# This file was automatically generated by bp2build for the Bazel migration project. # Feel free to edit or test it, but do *not* check it into your version control system.` content += "\n\n" content += "package(default_visibility = [\"//visibility:public\"])" content += "\n\n" content += targets.LoadStatements() } if content != "" { // If there are load statements, add a couple of newlines. Loading Loading
bp2build/conversion.go +6 −1 Original line number Diff line number Diff line Loading @@ -50,7 +50,12 @@ func createBuildFiles(buildToTargets map[string]BazelTargets, mode CodegenMode) sort.Slice(targets, func(i, j int) bool { return targets[i].name < targets[j].name }) content := soongModuleLoad if mode == Bp2Build { content = targets.LoadStatements() content = `# This file was automatically generated by bp2build for the Bazel migration project. # Feel free to edit or test it, but do *not* check it into your version control system.` content += "\n\n" content += "package(default_visibility = [\"//visibility:public\"])" content += "\n\n" content += targets.LoadStatements() } if content != "" { // If there are load statements, add a couple of newlines. Loading