BUILD 1000 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 = ["client.go"],
  10. importpath = "go-common/library/net/rpc/warden/examples/grpcDebug",
  11. tags = ["automanaged"],
  12. visibility = ["//visibility:public"],
  13. deps = [
  14. "@com_github_gogo_protobuf//jsonpb:go_default_library",
  15. "@org_golang_google_grpc//:go_default_library",
  16. "@org_golang_google_grpc//credentials:go_default_library",
  17. "@org_golang_google_grpc//encoding:go_default_library",
  18. ],
  19. )
  20. filegroup(
  21. name = "package-srcs",
  22. srcs = glob(["**"]),
  23. tags = ["automanaged"],
  24. visibility = ["//visibility:private"],
  25. )
  26. filegroup(
  27. name = "all-srcs",
  28. srcs = [":package-srcs"],
  29. tags = ["automanaged"],
  30. visibility = ["//visibility:public"],
  31. )
  32. go_binary(
  33. name = "grpcDebug",
  34. embed = [":go_default_library"],
  35. tags = ["automanaged"],
  36. )