BUILD 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. "constant.go",
  14. "rpc.go",
  15. ],
  16. embed = [":model_go_proto"],
  17. importpath = "go-common/app/service/main/sms/model",
  18. tags = ["automanaged"],
  19. deps = [
  20. "//library/time:go_default_library",
  21. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  22. "@com_github_gogo_protobuf//proto:go_default_library",
  23. ],
  24. )
  25. filegroup(
  26. name = "package-srcs",
  27. srcs = glob(["**"]),
  28. tags = ["automanaged"],
  29. visibility = ["//visibility:private"],
  30. )
  31. filegroup(
  32. name = "all-srcs",
  33. srcs = [":package-srcs"],
  34. tags = ["automanaged"],
  35. visibility = ["//visibility:public"],
  36. )
  37. proto_library(
  38. name = "model_proto",
  39. srcs = ["model.proto"],
  40. tags = ["automanaged"],
  41. deps = ["@gogo_special_proto//github.com/gogo/protobuf/gogoproto"],
  42. )
  43. go_proto_library(
  44. name = "model_go_proto",
  45. compilers = ["@io_bazel_rules_go//proto:gogofast_proto"],
  46. importpath = "go-common/app/service/main/sms/model",
  47. proto = ":model_proto",
  48. tags = ["automanaged"],
  49. deps = [
  50. "//library/time:go_default_library",
  51. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  52. ],
  53. )