BUILD 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. "sea_con_test.go",
  11. "service_test.go",
  12. "sync_mc_test.go",
  13. "zone_index_test.go",
  14. ],
  15. embed = [":go_default_library"],
  16. rundir = ".",
  17. tags = ["automanaged"],
  18. deps = [
  19. "//app/job/main/tv/conf: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. "del_cont.go",
  27. "del_season.go",
  28. "filter.go",
  29. "license.go",
  30. "sea_con.go",
  31. "search_sug.go",
  32. "service.go",
  33. "sync_ep.go",
  34. "sync_mc.go",
  35. "sync_retry.go",
  36. "sync_season.go",
  37. "zone_index.go",
  38. ],
  39. importpath = "go-common/app/job/main/tv/service/pgc",
  40. tags = ["automanaged"],
  41. visibility = ["//visibility:public"],
  42. deps = [
  43. "//app/job/main/tv/conf:go_default_library",
  44. "//app/job/main/tv/dao/app:go_default_library",
  45. "//app/job/main/tv/dao/cms:go_default_library",
  46. "//app/job/main/tv/dao/ftp:go_default_library",
  47. "//app/job/main/tv/dao/lic:go_default_library",
  48. "//app/job/main/tv/dao/playurl:go_default_library",
  49. "//app/job/main/tv/model/common:go_default_library",
  50. "//app/job/main/tv/model/pgc:go_default_library",
  51. "//library/ecode:go_default_library",
  52. "//library/log:go_default_library",
  53. "//library/queue/databus:go_default_library",
  54. "//library/time:go_default_library",
  55. "//library/xstr:go_default_library",
  56. "//vendor/github.com/robfig/cron:go_default_library",
  57. ],
  58. )
  59. filegroup(
  60. name = "package-srcs",
  61. srcs = glob(["**"]),
  62. tags = ["automanaged"],
  63. visibility = ["//visibility:private"],
  64. )
  65. filegroup(
  66. name = "all-srcs",
  67. srcs = [":package-srcs"],
  68. tags = ["automanaged"],
  69. visibility = ["//visibility:public"],
  70. )