BUILD 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. "rpc_test.go",
  11. "service_test.go",
  12. "topic_test.go",
  13. ],
  14. embed = [":go_default_library"],
  15. rundir = ".",
  16. tags = ["automanaged"],
  17. deps = [
  18. "//app/interface/main/favorite/conf:go_default_library",
  19. "//library/ecode:go_default_library",
  20. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  21. ],
  22. )
  23. go_library(
  24. name = "go_default_library",
  25. srcs = [
  26. "rpc.go",
  27. "service.go",
  28. "topic.go",
  29. "video.go",
  30. ],
  31. importpath = "go-common/app/interface/main/favorite/service",
  32. tags = ["automanaged"],
  33. visibility = ["//visibility:public"],
  34. deps = [
  35. "//app/interface/main/favorite/conf:go_default_library",
  36. "//app/interface/main/favorite/dao/music:go_default_library",
  37. "//app/interface/main/favorite/dao/topic:go_default_library",
  38. "//app/interface/main/favorite/dao/video:go_default_library",
  39. "//app/interface/main/favorite/model:go_default_library",
  40. "//app/service/main/archive/api:go_default_library",
  41. "//app/service/main/archive/api/gorpc:go_default_library",
  42. "//app/service/main/archive/model/archive:go_default_library",
  43. "//app/service/main/favorite/api:go_default_library",
  44. "//app/service/main/favorite/model:go_default_library",
  45. "//library/ecode:go_default_library",
  46. "//library/log:go_default_library",
  47. "//library/net/metadata:go_default_library",
  48. "//library/stat/prom:go_default_library",
  49. "//library/sync/pipeline/fanout:go_default_library",
  50. "//library/time:go_default_library",
  51. ],
  52. )
  53. filegroup(
  54. name = "package-srcs",
  55. srcs = glob(["**"]),
  56. tags = ["automanaged"],
  57. visibility = ["//visibility:private"],
  58. )
  59. filegroup(
  60. name = "all-srcs",
  61. srcs = [":package-srcs"],
  62. tags = ["automanaged"],
  63. visibility = ["//visibility:public"],
  64. )