BUILD 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_test",
  5. "go_library",
  6. )
  7. go_test(
  8. name = "go_default_test",
  9. srcs = [
  10. "archive_test.go",
  11. "player_test.go",
  12. "policy_test.go",
  13. ],
  14. embed = [":go_default_library"],
  15. tags = ["automanaged"],
  16. deps = [
  17. "//app/interface/main/player/conf:go_default_library",
  18. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  19. ],
  20. )
  21. go_library(
  22. name = "go_default_library",
  23. srcs = [
  24. "archive.go",
  25. "player.go",
  26. "playurl.go",
  27. "policy.go",
  28. "service.go",
  29. ],
  30. importpath = "go-common/app/interface/main/player/service",
  31. tags = ["automanaged"],
  32. visibility = ["//visibility:public"],
  33. deps = [
  34. "//app/interface/main/dm2/model:go_default_library",
  35. "//app/interface/main/dm2/rpc/client:go_default_library",
  36. "//app/interface/main/history/model:go_default_library",
  37. "//app/interface/main/history/rpc/client:go_default_library",
  38. "//app/interface/main/player/conf:go_default_library",
  39. "//app/interface/main/player/dao:go_default_library",
  40. "//app/interface/main/player/model:go_default_library",
  41. "//app/interface/main/tag/model:go_default_library",
  42. "//app/interface/main/tag/rpc/client:go_default_library",
  43. "//app/service/main/account/api:go_default_library",
  44. "//app/service/main/archive/api:go_default_library",
  45. "//app/service/main/archive/api/gorpc:go_default_library",
  46. "//app/service/main/archive/model/archive:go_default_library",
  47. "//app/service/main/assist/model/assist:go_default_library",
  48. "//app/service/main/assist/rpc/client:go_default_library",
  49. "//app/service/main/location/model:go_default_library",
  50. "//app/service/main/location/rpc/client:go_default_library",
  51. "//app/service/main/resource/model:go_default_library",
  52. "//app/service/main/resource/rpc/client:go_default_library",
  53. "//app/service/main/ugcpay/api/grpc/v1:go_default_library",
  54. "//library/ecode:go_default_library",
  55. "//library/log:go_default_library",
  56. "//library/net/metadata:go_default_library",
  57. "//library/sync/errgroup:go_default_library",
  58. ],
  59. )
  60. filegroup(
  61. name = "package-srcs",
  62. srcs = glob(["**"]),
  63. tags = ["automanaged"],
  64. visibility = ["//visibility:private"],
  65. )
  66. filegroup(
  67. name = "all-srcs",
  68. srcs = [":package-srcs"],
  69. tags = ["automanaged"],
  70. visibility = ["//visibility:public"],
  71. )