BUILD 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_binary",
  5. "go_library",
  6. )
  7. go_binary(
  8. name = "deepcopy-gen",
  9. embed = [":go_default_library"],
  10. tags = ["automanaged"],
  11. )
  12. go_library(
  13. name = "go_default_library",
  14. srcs = ["main.go"],
  15. importpath = "go-common/app/tool/gengo/cmd/deepcopy-gen",
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:public"],
  18. deps = [
  19. "//app/tool/gengo/args:go_default_library",
  20. "//app/tool/gengo/cmd/deepcopy-gen/generators:go_default_library",
  21. "//vendor/github.com/golang/glog:go_default_library",
  22. ],
  23. )
  24. filegroup(
  25. name = "package-srcs",
  26. srcs = glob(["**"]),
  27. tags = ["automanaged"],
  28. visibility = ["//visibility:private"],
  29. )
  30. filegroup(
  31. name = "all-srcs",
  32. srcs = [
  33. ":package-srcs",
  34. "//app/tool/gengo/cmd/deepcopy-gen/examples/api/v1:all-srcs",
  35. "//app/tool/gengo/cmd/deepcopy-gen/examples/model:all-srcs",
  36. "//app/tool/gengo/cmd/deepcopy-gen/examples/tests:all-srcs",
  37. "//app/tool/gengo/cmd/deepcopy-gen/generators:all-srcs",
  38. "//app/tool/gengo/cmd/deepcopy-gen/sets:all-srcs",
  39. ],
  40. tags = ["automanaged"],
  41. visibility = ["//visibility:public"],
  42. )