BUILD 1000 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. "go_binary",
  5. )
  6. go_library(
  7. name = "go_default_library",
  8. srcs = ["main.go"],
  9. data = ["live-userexp-job-example.toml"],
  10. importpath = "go-common/app/job/live-userexp/cmd",
  11. tags = ["automanaged"],
  12. visibility = ["//visibility:private"],
  13. deps = [
  14. "//app/job/live-userexp/conf:go_default_library",
  15. "//app/job/live-userexp/model:go_default_library",
  16. "//app/job/live-userexp/service:go_default_library",
  17. "//library/log:go_default_library",
  18. "//library/syscall:go_default_library",
  19. ],
  20. )
  21. go_binary(
  22. name = "cmd",
  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. )