BUILD 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. "go_binary",
  6. )
  7. go_library(
  8. name = "go_default_library",
  9. srcs = [
  10. "grpc.go",
  11. "http.go",
  12. "main.go",
  13. ],
  14. importpath = "go-common/app/tool/grpc-http-proxy",
  15. tags = ["automanaged"],
  16. visibility = ["//visibility:public"],
  17. deps = [
  18. "//library/ecode:go_default_library",
  19. "//library/log:go_default_library",
  20. "//library/naming/discovery:go_default_library",
  21. "//library/net/http/blademaster:go_default_library",
  22. "//library/time:go_default_library",
  23. "@com_github_gogo_protobuf//jsonpb:go_default_library",
  24. "@org_golang_google_grpc//:go_default_library",
  25. "@org_golang_google_grpc//encoding:go_default_library",
  26. ],
  27. )
  28. filegroup(
  29. name = "package-srcs",
  30. srcs = glob(["**"]),
  31. tags = ["automanaged"],
  32. visibility = ["//visibility:private"],
  33. )
  34. filegroup(
  35. name = "all-srcs",
  36. srcs = [":package-srcs"],
  37. tags = ["automanaged"],
  38. visibility = ["//visibility:public"],
  39. )
  40. go_binary(
  41. name = "grpc-http-proxy",
  42. embed = [":go_default_library"],
  43. tags = ["automanaged"],
  44. )