BUILD.bazel 987 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_binary")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "config.go",
  6. "diff.go",
  7. "fileinfo.go",
  8. "generator.go",
  9. "kazel.go",
  10. "proto.go",
  11. "sourcerer.go",
  12. ],
  13. importmap = "go-common/vendor/github.com/hawkingrei/kazel",
  14. importpath = "github.com/hawkingrei/kazel",
  15. visibility = ["//visibility:private"],
  16. deps = [
  17. "//vendor/github.com/bazelbuild/buildtools/build:go_default_library",
  18. "//vendor/github.com/golang/glog:go_default_library",
  19. ],
  20. )
  21. go_binary(
  22. name = "kazel",
  23. embed = [":go_default_library"],
  24. visibility = ["//visibility:public"],
  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. )