BUILD 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 = "warden",
  9. embed = [":go_default_library"],
  10. tags = ["automanaged"],
  11. )
  12. go_library(
  13. name = "go_default_library",
  14. srcs = ["main.go"],
  15. importpath = "go-common/app/tool/warden",
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:public"],
  18. deps = [
  19. "//app/tool/warden/generator:go_default_library",
  20. "//app/tool/warden/goparser:go_default_library",
  21. "//app/tool/warden/types:go_default_library",
  22. ],
  23. )
  24. filegroup(
  25. name = "package-srcs",
  26. srcs = glob(["**"]),
  27. tags = ["automanaged"],
  28. visibility = ["//visibility:private"],
  29. )
  30. filegroup(
  31. name = "all-srcs",
  32. srcs = [
  33. ":package-srcs",
  34. "//app/tool/warden/generator:all-srcs",
  35. "//app/tool/warden/goparser:all-srcs",
  36. "//app/tool/warden/types:all-srcs",
  37. ],
  38. tags = ["automanaged"],
  39. visibility = ["//visibility:public"],
  40. )