BUILD 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_binary",
  4. "go_library",
  5. )
  6. go_binary(
  7. name = "cmd",
  8. embed = [":go_default_library"],
  9. tags = ["automanaged"],
  10. )
  11. go_library(
  12. name = "go_default_library",
  13. srcs = ["main.go"],
  14. data = [
  15. "app_setting.toml",
  16. "upload_filter.toml",
  17. "video-c.toml",
  18. ],
  19. importpath = "go-common/app/interface/bbq/app-bbq/cmd",
  20. tags = ["automanaged"],
  21. visibility = ["//visibility:public"],
  22. deps = [
  23. "//app/interface/bbq/app-bbq/conf:go_default_library",
  24. "//app/interface/bbq/app-bbq/server/http:go_default_library",
  25. "//library/ecode/tip:go_default_library",
  26. "//library/log:go_default_library",
  27. "//library/net/trace:go_default_library",
  28. ],
  29. )
  30. filegroup(
  31. name = "package-srcs",
  32. srcs = glob(["**"]),
  33. tags = ["automanaged"],
  34. visibility = ["//visibility:private"],
  35. )
  36. filegroup(
  37. name = "all-srcs",
  38. srcs = [":package-srcs"],
  39. tags = ["automanaged"],
  40. visibility = ["//visibility:public"],
  41. )