BUILD 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. "full_test.go",
  11. "pgc_test.go",
  12. "recruit_test.go",
  13. "service_test.go",
  14. "ugc_test.go",
  15. ],
  16. embed = [":go_default_library"],
  17. rundir = ".",
  18. tags = ["automanaged"],
  19. deps = [
  20. "//app/interface/main/web-goblin/conf:go_default_library",
  21. "//app/interface/main/web-goblin/model/web:go_default_library",
  22. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  23. ],
  24. )
  25. go_library(
  26. name = "go_default_library",
  27. srcs = [
  28. "channel.go",
  29. "full.go",
  30. "pgc.go",
  31. "recruit.go",
  32. "service.go",
  33. "ugc.go",
  34. ],
  35. importpath = "go-common/app/interface/main/web-goblin/service/web",
  36. tags = ["automanaged"],
  37. visibility = ["//visibility:public"],
  38. deps = [
  39. "//app/interface/main/tag/model:go_default_library",
  40. "//app/interface/main/tag/rpc/client:go_default_library",
  41. "//app/interface/main/web-goblin/conf:go_default_library",
  42. "//app/interface/main/web-goblin/dao/web:go_default_library",
  43. "//app/interface/main/web-goblin/model/web: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. "//library/ecode:go_default_library",
  48. "//library/log:go_default_library",
  49. "//library/net/metadata:go_default_library",
  50. "//library/sync/errgroup:go_default_library",
  51. "//library/xstr:go_default_library",
  52. ],
  53. )
  54. filegroup(
  55. name = "package-srcs",
  56. srcs = glob(["**"]),
  57. tags = ["automanaged"],
  58. visibility = ["//visibility:private"],
  59. )
  60. filegroup(
  61. name = "all-srcs",
  62. srcs = [":package-srcs"],
  63. tags = ["automanaged"],
  64. visibility = ["//visibility:public"],
  65. )