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. proto_library(
  11. name = "model_proto",
  12. srcs = ["model.proto"],
  13. tags = ["automanaged"],
  14. )
  15. go_proto_library(
  16. name = "model_go_proto",
  17. compilers = ["@io_bazel_rules_go//proto:gogofast_proto"],
  18. importpath = "go-common/app/service/main/broadcast/model",
  19. proto = ":model_proto",
  20. tags = ["manual"],
  21. )
  22. go_library(
  23. name = "go_default_library",
  24. srcs = [
  25. "auth.go",
  26. "model.go",
  27. "model_v1.go",
  28. "online.go",
  29. "operation.go",
  30. "room.go",
  31. "server.go",
  32. ],
  33. embed = [":model_go_proto"],
  34. importpath = "go-common/app/service/main/broadcast/model",
  35. tags = ["automanaged"],
  36. visibility = ["//visibility:public"],
  37. deps = [
  38. "//app/service/main/broadcast/libs/bufio:go_default_library",
  39. "//app/service/main/broadcast/libs/bytes:go_default_library",
  40. "//app/service/main/broadcast/libs/encoding/binary:go_default_library",
  41. "//app/service/main/broadcast/libs/websocket:go_default_library",
  42. "@com_github_gogo_protobuf//proto:go_default_library",
  43. ],
  44. )
  45. filegroup(
  46. name = "package-srcs",
  47. srcs = glob(["**"]),
  48. tags = ["automanaged"],
  49. visibility = ["//visibility:private"],
  50. )
  51. filegroup(
  52. name = "all-srcs",
  53. srcs = [":package-srcs"],
  54. tags = ["automanaged"],
  55. visibility = ["//visibility:public"],
  56. )