BUILD.bazel 816 B

123456789101112131415161718192021222324252627282930313233
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "lex.go",
  6. "parse.y.go",
  7. "print.go",
  8. "quote.go",
  9. "rewrite.go",
  10. "rule.go",
  11. "syntax.go",
  12. "walk.go",
  13. ],
  14. importmap = "go-common/vendor/github.com/bazelbuild/buildtools/build",
  15. importpath = "github.com/bazelbuild/buildtools/build",
  16. visibility = ["//visibility:public"],
  17. deps = ["//vendor/github.com/bazelbuild/buildtools/tables:go_default_library"],
  18. )
  19. filegroup(
  20. name = "package-srcs",
  21. srcs = glob(["**"]),
  22. tags = ["automanaged"],
  23. visibility = ["//visibility:private"],
  24. )
  25. filegroup(
  26. name = "all-srcs",
  27. srcs = [":package-srcs"],
  28. tags = ["automanaged"],
  29. visibility = ["//visibility:public"],
  30. )