BUILD.bazel 910 B

12345678910111213141516171819202122232425262728293031323334353637
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_binary")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "mockgen.go",
  6. "parse.go",
  7. "reflect.go",
  8. ],
  9. importmap = "go-common/vendor/github.com/golang/mock/mockgen",
  10. importpath = "github.com/golang/mock/mockgen",
  11. visibility = ["//visibility:private"],
  12. deps = ["//vendor/github.com/golang/mock/mockgen/model:go_default_library"],
  13. )
  14. go_binary(
  15. name = "mockgen",
  16. embed = [":go_default_library"],
  17. visibility = ["//visibility:public"],
  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 = [
  28. ":package-srcs",
  29. "//vendor/github.com/golang/mock/mockgen/model:all-srcs",
  30. ],
  31. tags = ["automanaged"],
  32. visibility = ["//visibility:public"],
  33. )