BUILD 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 = "v1_proto",
  12. srcs = ["api.proto"],
  13. tags = ["automanaged"],
  14. deps = ["@gogo_special_proto//github.com/gogo/protobuf/gogoproto"],
  15. )
  16. go_library(
  17. name = "go_default_library",
  18. srcs = [
  19. "copy.go",
  20. "doc.go",
  21. ],
  22. embed = [":v1_go_proto"],
  23. importpath = "go-common/app/tool/gengo/cmd/deepcopy-gen/examples/api/v1",
  24. tags = ["automanaged"],
  25. visibility = ["//visibility:public"],
  26. deps = [
  27. "//app/tool/gengo/cmd/deepcopy-gen/examples/model:go_default_library",
  28. "//library/time:go_default_library",
  29. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  30. "@com_github_golang_protobuf//proto:go_default_library",
  31. ],
  32. )
  33. filegroup(
  34. name = "package-srcs",
  35. srcs = glob(["**"]),
  36. tags = ["automanaged"],
  37. visibility = ["//visibility:private"],
  38. )
  39. filegroup(
  40. name = "all-srcs",
  41. srcs = [":package-srcs"],
  42. tags = ["automanaged"],
  43. visibility = ["//visibility:public"],
  44. )
  45. go_proto_library(
  46. name = "v1_go_proto",
  47. compilers = ["@io_bazel_rules_go//proto:gogofast_proto"],
  48. importpath = "go-common/app/tool/gengo/cmd/deepcopy-gen/examples/api/v1",
  49. proto = ":v1_proto",
  50. tags = ["automanaged"],
  51. deps = [
  52. "//library/time:go_default_library",
  53. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  54. ],
  55. )