BUILD 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. load(
  2. "@io_bazel_rules_go//proto:def.bzl",
  3. "go_proto_library",
  4. )
  5. package(default_visibility = ["//visibility:public"])
  6. load(
  7. "@io_bazel_rules_go//go:def.bzl",
  8. "go_library",
  9. )
  10. go_library(
  11. name = "go_default_library",
  12. srcs = [],
  13. embed = [":protogen_go_proto"],
  14. importpath = "go-common/library/net/trace/proto",
  15. tags = ["manual"],
  16. visibility = ["//visibility:public"],
  17. deps = [
  18. "@com_github_golang_protobuf//proto:go_default_library",
  19. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  20. "@io_bazel_rules_go//proto/wkt:timestamp_go_proto",
  21. ],
  22. )
  23. filegroup(
  24. name = "package-srcs",
  25. srcs = glob(["**"]),
  26. tags = ["automanaged"],
  27. visibility = ["//visibility:private"],
  28. )
  29. filegroup(
  30. name = "all-srcs",
  31. srcs = [":package-srcs"],
  32. tags = ["automanaged"],
  33. visibility = ["//visibility:public"],
  34. )
  35. proto_library(
  36. name = "protogen_proto",
  37. srcs = ["span.proto"],
  38. tags = ["manual"],
  39. deps = [
  40. "@com_google_protobuf//:duration_proto",
  41. "@com_google_protobuf//:timestamp_proto",
  42. ],
  43. )
  44. go_proto_library(
  45. name = "protogen_go_proto",
  46. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  47. importpath = "go-common/library/net/trace/proto",
  48. proto = ":protogen_proto",
  49. tags = ["manual"],
  50. deps = [
  51. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  52. "@io_bazel_rules_go//proto/wkt:timestamp_go_proto",
  53. ],
  54. )