BUILD.bazel 869 B

123456789101112131415161718192021222324252627282930313233
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "swbemservices.go",
  6. "wmi.go",
  7. ],
  8. importmap = "go-common/vendor/github.com/StackExchange/wmi",
  9. importpath = "github.com/StackExchange/wmi",
  10. visibility = ["//visibility:public"],
  11. deps = select({
  12. "@io_bazel_rules_go//go/platform:windows": [
  13. "//vendor/github.com/go-ole/go-ole:go_default_library",
  14. "//vendor/github.com/go-ole/go-ole/oleutil:go_default_library",
  15. ],
  16. "//conditions:default": [],
  17. }),
  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. )