BUILD 1.5 KB

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