BUILD 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. "go_test",
  6. )
  7. go_library(
  8. name = "go_default_library",
  9. srcs = [
  10. "default_generator.go",
  11. "default_package.go",
  12. "doc.go",
  13. "error_tracker.go",
  14. "execute.go",
  15. "generator.go",
  16. "import_tracker.go",
  17. "snippet_writer.go",
  18. ],
  19. importpath = "go-common/app/tool/gengo/generator",
  20. tags = ["automanaged"],
  21. visibility = ["//visibility:public"],
  22. deps = [
  23. "//app/tool/gengo/namer:go_default_library",
  24. "//app/tool/gengo/parser:go_default_library",
  25. "//app/tool/gengo/types:go_default_library",
  26. "//vendor/github.com/golang/glog:go_default_library",
  27. "//vendor/golang.org/x/tools/imports:go_default_library",
  28. ],
  29. )
  30. go_test(
  31. name = "go_default_xtest",
  32. srcs = ["snippet_writer_test.go"],
  33. tags = ["automanaged"],
  34. deps = [
  35. "//app/tool/gengo/generator:go_default_library",
  36. "//app/tool/gengo/namer:go_default_library",
  37. "//app/tool/gengo/parser:go_default_library",
  38. ],
  39. )
  40. filegroup(
  41. name = "package-srcs",
  42. srcs = glob(["**"]),
  43. tags = ["automanaged"],
  44. visibility = ["//visibility:private"],
  45. )
  46. filegroup(
  47. name = "all-srcs",
  48. srcs = [":package-srcs"],
  49. tags = ["automanaged"],
  50. visibility = ["//visibility:public"],
  51. )