BUILD 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_binary",
  5. "go_library",
  6. )
  7. go_binary(
  8. name = "protoc-gen-bm",
  9. embed = [":go_default_library"],
  10. tags = ["automanaged"],
  11. )
  12. go_library(
  13. name = "go_default_library",
  14. srcs = ["main.go"],
  15. importpath = "go-common/app/tool/protoc-gen-bm",
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:public"],
  18. deps = [
  19. "//app/tool/protoc-gen-bm/codegenerator:go_default_library",
  20. "//app/tool/protoc-gen-bm/genbm:go_default_library",
  21. "//app/tool/protoc-gen-bm/util:go_default_library",
  22. "//vendor/github.com/golang/glog:go_default_library",
  23. ],
  24. )
  25. filegroup(
  26. name = "package-srcs",
  27. srcs = glob(["**"]),
  28. tags = ["automanaged"],
  29. visibility = ["//visibility:private"],
  30. )
  31. filegroup(
  32. name = "all-srcs",
  33. srcs = [
  34. ":package-srcs",
  35. "//app/tool/protoc-gen-bm/codegenerator:all-srcs",
  36. "//app/tool/protoc-gen-bm/genbm:all-srcs",
  37. "//app/tool/protoc-gen-bm/generator:all-srcs",
  38. "//app/tool/protoc-gen-bm/jsonpb:all-srcs",
  39. "//app/tool/protoc-gen-bm/util:all-srcs",
  40. ],
  41. tags = ["automanaged"],
  42. visibility = ["//visibility:public"],
  43. )