BUILD 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. "achieve.go",
  14. "addit.go",
  15. "attr.go",
  16. "audit.go",
  17. "following.go",
  18. "log.go",
  19. "rpc.go",
  20. "stat.go",
  21. ],
  22. embed = [":model_go_proto"],
  23. importpath = "go-common/app/service/main/relation/model",
  24. tags = ["automanaged"],
  25. visibility = ["//visibility:public"],
  26. deps = [
  27. "//library/time:go_default_library",
  28. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  29. "@com_github_gogo_protobuf//proto:go_default_library",
  30. ],
  31. )
  32. proto_library(
  33. name = "model_proto",
  34. srcs = [
  35. "model.proto",
  36. ],
  37. tags = ["manual"],
  38. visibility = ["//visibility:public"],
  39. deps = [
  40. "@gogo_special_proto//github.com/gogo/protobuf/gogoproto",
  41. ],
  42. )
  43. go_proto_library(
  44. name = "model_go_proto",
  45. compilers = ["@io_bazel_rules_go//proto:gogo_proto"],
  46. importpath = "go-common/app/service/main/relation/model",
  47. proto = ":model_proto",
  48. tags = ["manual"],
  49. visibility = ["//visibility:public"],
  50. deps = [
  51. "//library/time:go_default_library",
  52. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  53. "@com_github_gogo_protobuf//proto:go_default_library",
  54. "@com_github_gogo_protobuf//sortkeys:go_default_library",
  55. "@com_github_gogo_protobuf//types:go_default_library",
  56. "@io_bazel_rules_go//proto/wkt:any_go_proto",
  57. ],
  58. )
  59. filegroup(
  60. name = "package-srcs",
  61. srcs = glob(["**"]),
  62. tags = ["automanaged"],
  63. visibility = ["//visibility:private"],
  64. )
  65. filegroup(
  66. name = "all-srcs",
  67. srcs = [
  68. ":package-srcs",
  69. "//app/service/main/relation/model/i64b:all-srcs",
  70. "//app/service/main/relation/model/sets:all-srcs",
  71. ],
  72. tags = ["automanaged"],
  73. visibility = ["//visibility:public"],
  74. )