BUILD.bazel 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. load("@rules_proto//proto:defs.bzl", "proto_library")
  2. # This is an API workspace, having public visibility by default makes perfect sense.
  3. package(default_visibility = ["//visibility:public"])
  4. ##############################################################################
  5. # Common
  6. ##############################################################################
  7. load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
  8. proto_library(
  9. name = "attestation_proto",
  10. srcs = [
  11. "attestation.proto",
  12. ],
  13. deps = [
  14. "//google/devtools/containeranalysis/v1beta1/common:common_proto",
  15. ],
  16. )
  17. proto_library_with_info(
  18. name = "attestation_proto_with_info",
  19. deps = [":attestation_proto"],
  20. )
  21. ##############################################################################
  22. # Java
  23. ##############################################################################
  24. load(
  25. "@com_google_googleapis_imports//:imports.bzl",
  26. "java_grpc_library",
  27. "java_proto_library",
  28. )
  29. java_proto_library(
  30. name = "attestation_java_proto",
  31. deps = [":attestation_proto"],
  32. )
  33. java_grpc_library(
  34. name = "attestation_java_grpc",
  35. srcs = [":attestation_proto"],
  36. deps = [":attestation_java_proto"],
  37. )
  38. ##############################################################################
  39. # Go
  40. ##############################################################################
  41. load("@com_google_googleapis_imports//:imports.bzl", "go_proto_library")
  42. go_proto_library(
  43. name = "attestation_go_proto",
  44. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  45. importpath = "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/attestation",
  46. protos = [":attestation_proto"],
  47. deps = [
  48. "//google/devtools/containeranalysis/v1beta1/common:common_go_proto",
  49. ],
  50. )