BUILD 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. proto_library(
  11. name = "jsonpb_proto",
  12. srcs = [
  13. "more_test_objects.proto",
  14. "test_objects.proto",
  15. ],
  16. tags = ["manual"],
  17. deps = [
  18. "@com_google_protobuf//:any_proto",
  19. "@com_google_protobuf//:duration_proto",
  20. "@com_google_protobuf//:struct_proto",
  21. "@com_google_protobuf//:timestamp_proto",
  22. "@com_google_protobuf//:wrappers_proto",
  23. ],
  24. )
  25. go_proto_library(
  26. name = "jsonpb_go_proto",
  27. compilers = ["@io_bazel_rules_go//proto:go_proto"],
  28. importpath = "go-common/app/tool/protoc-gen-bm/jsonpb/jsonpb_test_proto",
  29. proto = ":jsonpb_proto",
  30. tags = ["manual"],
  31. deps = [
  32. "@com_github_golang_protobuf//ptypes/struct:go_default_library",
  33. "@com_github_golang_protobuf//ptypes/wrappers:go_default_library",
  34. "@io_bazel_rules_go//proto/wkt:any_go_proto",
  35. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  36. "@io_bazel_rules_go//proto/wkt:timestamp_go_proto",
  37. ],
  38. )
  39. go_library(
  40. name = "go_default_library",
  41. srcs = [],
  42. embed = [":jsonpb_go_proto"],
  43. importpath = "go-common/app/tool/protoc-gen-bm/jsonpb/jsonpb_test_proto",
  44. tags = ["manual"],
  45. visibility = ["//visibility:public"],
  46. deps = [
  47. "@com_github_golang_protobuf//proto:go_default_library",
  48. "@com_github_golang_protobuf//ptypes/struct:go_default_library",
  49. "@com_github_golang_protobuf//ptypes/wrappers:go_default_library",
  50. "@io_bazel_rules_go//proto/wkt:any_go_proto",
  51. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  52. "@io_bazel_rules_go//proto/wkt:timestamp_go_proto",
  53. ],
  54. )
  55. filegroup(
  56. name = "package-srcs",
  57. srcs = glob(["**"]),
  58. tags = ["automanaged"],
  59. visibility = ["//visibility:private"],
  60. )
  61. filegroup(
  62. name = "all-srcs",
  63. srcs = [":package-srcs"],
  64. tags = ["automanaged"],
  65. visibility = ["//visibility:public"],
  66. )