BUILD 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 = ["http_test.go"],
  10. embed = [":go_default_library"],
  11. rundir = ".",
  12. tags = ["automanaged"],
  13. deps = ["//app/interface/main/dm2/model:go_default_library"],
  14. )
  15. go_library(
  16. name = "go_default_library",
  17. srcs = [
  18. "dm.go",
  19. "filter.go",
  20. "history.go",
  21. "http.go",
  22. "manage.go",
  23. "mask.go",
  24. "member.go",
  25. "subtitle.go",
  26. "thumbup.go",
  27. "view.go",
  28. ],
  29. importpath = "go-common/app/interface/main/dm2/http",
  30. tags = ["automanaged"],
  31. visibility = ["//visibility:public"],
  32. deps = [
  33. "//app/interface/main/dm2/conf:go_default_library",
  34. "//app/interface/main/dm2/model:go_default_library",
  35. "//app/interface/main/dm2/model/oplog:go_default_library",
  36. "//app/interface/main/dm2/service:go_default_library",
  37. "//library/ecode:go_default_library",
  38. "//library/log:go_default_library",
  39. "//library/net/http/blademaster:go_default_library",
  40. "//library/net/http/blademaster/binding:go_default_library",
  41. "//library/net/http/blademaster/middleware/antispam:go_default_library",
  42. "//library/net/http/blademaster/middleware/auth:go_default_library",
  43. "//library/net/http/blademaster/middleware/verify:go_default_library",
  44. "//library/net/ip:go_default_library",
  45. "//library/net/metadata:go_default_library",
  46. "//library/time:go_default_library",
  47. "//library/xstr:go_default_library",
  48. ],
  49. )
  50. filegroup(
  51. name = "package-srcs",
  52. srcs = glob(["**"]),
  53. tags = ["automanaged"],
  54. visibility = ["//visibility:private"],
  55. )
  56. filegroup(
  57. name = "all-srcs",
  58. srcs = [":package-srcs"],
  59. tags = ["automanaged"],
  60. visibility = ["//visibility:public"],
  61. )