BUILD 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. "go_test",
  6. )
  7. go_library(
  8. name = "go_default_library",
  9. srcs = [
  10. "hotword.go",
  11. "label.go",
  12. "playurl.go",
  13. "service.go",
  14. "splash.go",
  15. "upgrade.go",
  16. ],
  17. importpath = "go-common/app/interface/main/tv/service/goblin",
  18. tags = ["automanaged"],
  19. visibility = ["//visibility:public"],
  20. deps = [
  21. "//app/interface/main/tv/conf:go_default_library",
  22. "//app/interface/main/tv/dao/account:go_default_library",
  23. "//app/interface/main/tv/dao/archive:go_default_library",
  24. "//app/interface/main/tv/dao/goblin:go_default_library",
  25. "//app/interface/main/tv/model:go_default_library",
  26. "//app/interface/main/tv/model/goblin:go_default_library",
  27. "//app/service/main/archive/api:go_default_library",
  28. "//app/service/main/tv/api:go_default_library",
  29. "//library/ecode:go_default_library",
  30. "//library/log:go_default_library",
  31. ],
  32. )
  33. filegroup(
  34. name = "package-srcs",
  35. srcs = glob(["**"]),
  36. tags = ["automanaged"],
  37. visibility = ["//visibility:private"],
  38. )
  39. filegroup(
  40. name = "all-srcs",
  41. srcs = [":package-srcs"],
  42. tags = ["automanaged"],
  43. visibility = ["//visibility:public"],
  44. )
  45. go_test(
  46. name = "go_default_test",
  47. srcs = ["service_test.go"],
  48. embed = [":go_default_library"],
  49. tags = ["automanaged"],
  50. deps = [
  51. "//app/interface/main/tv/conf:go_default_library",
  52. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  53. ],
  54. )