BUILD.bazel 964 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "backup.go",
  6. "ea.go",
  7. "file.go",
  8. "fileinfo.go",
  9. "pipe.go",
  10. "privilege.go",
  11. "reparse.go",
  12. "sd.go",
  13. "syscall.go",
  14. "zsyscall_windows.go",
  15. ],
  16. importmap = "go-common/vendor/github.com/Microsoft/go-winio",
  17. importpath = "github.com/Microsoft/go-winio",
  18. visibility = ["//visibility:public"],
  19. deps = select({
  20. "@io_bazel_rules_go//go/platform:windows": [
  21. "//vendor/golang.org/x/sys/windows:go_default_library",
  22. ],
  23. "//conditions:default": [],
  24. }),
  25. )
  26. filegroup(
  27. name = "package-srcs",
  28. srcs = glob(["**"]),
  29. tags = ["automanaged"],
  30. visibility = ["//visibility:private"],
  31. )
  32. filegroup(
  33. name = "all-srcs",
  34. srcs = [":package-srcs"],
  35. tags = ["automanaged"],
  36. visibility = ["//visibility:public"],
  37. )