BUILD 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_binary",
  5. "go_library",
  6. )
  7. go_binary(
  8. name = "cmd",
  9. embed = [":go_default_library"],
  10. tags = ["automanaged"],
  11. )
  12. go_library(
  13. name = "go_default_library",
  14. srcs = ["main.go"],
  15. data = [
  16. "app-resource-example.toml",
  17. "app-resource-test.toml",
  18. ],
  19. importpath = "go-common/app/interface/main/app-resource/cmd",
  20. tags = ["automanaged"],
  21. visibility = ["//visibility:public"],
  22. deps = [
  23. "//app/interface/main/app-resource/conf:go_default_library",
  24. "//app/interface/main/app-resource/grpc:go_default_library",
  25. "//app/interface/main/app-resource/http:go_default_library",
  26. "//app/interface/main/app-resource/service/abtest:go_default_library",
  27. "//app/interface/main/app-resource/service/audit:go_default_library",
  28. "//app/interface/main/app-resource/service/broadcast:go_default_library",
  29. "//app/interface/main/app-resource/service/domain:go_default_library",
  30. "//app/interface/main/app-resource/service/guide:go_default_library",
  31. "//app/interface/main/app-resource/service/module:go_default_library",
  32. "//app/interface/main/app-resource/service/notice:go_default_library",
  33. "//app/interface/main/app-resource/service/param:go_default_library",
  34. "//app/interface/main/app-resource/service/ping:go_default_library",
  35. "//app/interface/main/app-resource/service/plugin:go_default_library",
  36. "//app/interface/main/app-resource/service/show:go_default_library",
  37. "//app/interface/main/app-resource/service/sidebar:go_default_library",
  38. "//app/interface/main/app-resource/service/splash:go_default_library",
  39. "//app/interface/main/app-resource/service/static:go_default_library",
  40. "//app/interface/main/app-resource/service/version:go_default_library",
  41. "//app/interface/main/app-resource/service/white:go_default_library",
  42. "//library/ecode/tip:go_default_library",
  43. "//library/log:go_default_library",
  44. "//library/net/http/blademaster/middleware/auth:go_default_library",
  45. "//library/net/trace:go_default_library",
  46. ],
  47. )
  48. filegroup(
  49. name = "package-srcs",
  50. srcs = glob(["**"]),
  51. tags = ["automanaged"],
  52. visibility = ["//visibility:private"],
  53. )
  54. filegroup(
  55. name = "all-srcs",
  56. srcs = [":package-srcs"],
  57. tags = ["automanaged"],
  58. visibility = ["//visibility:public"],
  59. )