BUILD 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. load(
  2. "@io_bazel_rules_go//proto:def.bzl",
  3. "go_proto_library",
  4. )
  5. load(
  6. "@io_bazel_rules_go//go:def.bzl",
  7. "go_library",
  8. )
  9. go_library(
  10. name = "go_default_library",
  11. srcs = [
  12. "cloud.go",
  13. "model.go",
  14. "open.go",
  15. ],
  16. embed = [":model_go_proto"],
  17. importpath = "go-common/app/service/main/passport-game/model",
  18. tags = ["automanaged"],
  19. visibility = ["//visibility:public"],
  20. deps = [
  21. "//library/time:go_default_library",
  22. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  23. "@com_github_golang_protobuf//proto:go_default_library",
  24. ],
  25. )
  26. filegroup(
  27. name = "package-srcs",
  28. srcs = glob(["**"]),
  29. tags = ["automanaged"],
  30. visibility = ["//visibility:private"],
  31. )
  32. filegroup(
  33. name = "all-srcs",
  34. srcs = [":package-srcs"],
  35. tags = ["automanaged"],
  36. visibility = ["//visibility:public"],
  37. )
  38. proto_library(
  39. name = "model_proto",
  40. srcs = ["model.proto"],
  41. tags = ["automanaged"],
  42. visibility = ["//visibility:public"],
  43. deps = ["@gogo_special_proto//github.com/gogo/protobuf/gogoproto"],
  44. )
  45. go_proto_library(
  46. name = "model_go_proto",
  47. compilers = ["@io_bazel_rules_go//proto:gogofast_proto"],
  48. importpath = "go-common/app/service/main/passport-game/model",
  49. proto = ":model_proto",
  50. tags = ["automanaged"],
  51. visibility = ["//visibility:public"],
  52. deps = ["@com_github_gogo_protobuf//gogoproto:go_default_library"],
  53. )