BUILD.bazel 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 = "grafeas_proto",
  10. srcs = [
  11. "grafeas.proto",
  12. ],
  13. deps = [
  14. "//google/api:annotations_proto",
  15. "//google/api:client_proto",
  16. "//google/devtools/containeranalysis/v1beta1/attestation:attestation_proto",
  17. "//google/devtools/containeranalysis/v1beta1/build:build_proto",
  18. "//google/devtools/containeranalysis/v1beta1/common:common_proto",
  19. "//google/devtools/containeranalysis/v1beta1/deployment:deployment_proto",
  20. "//google/devtools/containeranalysis/v1beta1/discovery:discovery_proto",
  21. "//google/devtools/containeranalysis/v1beta1/image:image_proto",
  22. "//google/devtools/containeranalysis/v1beta1/package:package_proto",
  23. "//google/devtools/containeranalysis/v1beta1/provenance:provenance_proto",
  24. "//google/devtools/containeranalysis/v1beta1/vulnerability:vulnerability_proto",
  25. "//google/rpc:status_proto",
  26. "@com_google_protobuf//:empty_proto",
  27. "@com_google_protobuf//:field_mask_proto",
  28. "@com_google_protobuf//:timestamp_proto",
  29. ],
  30. )
  31. proto_library_with_info(
  32. name = "grafeas_proto_with_info",
  33. deps = [":grafeas_proto"],
  34. )
  35. ##############################################################################
  36. # Java
  37. ##############################################################################
  38. load(
  39. "@com_google_googleapis_imports//:imports.bzl",
  40. "java_grpc_library",
  41. "java_proto_library",
  42. )
  43. java_proto_library(
  44. name = "grafeas_java_proto",
  45. deps = [":grafeas_proto"],
  46. )
  47. java_grpc_library(
  48. name = "grafeas_java_grpc",
  49. srcs = [":grafeas_proto"],
  50. deps = [":grafeas_java_proto"],
  51. )
  52. ##############################################################################
  53. # Go
  54. ##############################################################################
  55. load("@com_google_googleapis_imports//:imports.bzl", "go_proto_library")
  56. go_proto_library(
  57. name = "grafeas_go_proto",
  58. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  59. importpath = "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/grafeas",
  60. protos = [":grafeas_proto"],
  61. deps = [
  62. "//google/api:annotations_go_proto",
  63. "//google/devtools/containeranalysis/v1beta1/attestation:attestation_go_proto",
  64. "//google/devtools/containeranalysis/v1beta1/build:build_go_proto",
  65. "//google/devtools/containeranalysis/v1beta1/common:common_go_proto",
  66. "//google/devtools/containeranalysis/v1beta1/deployment:deployment_go_proto",
  67. "//google/devtools/containeranalysis/v1beta1/discovery:discovery_go_proto",
  68. "//google/devtools/containeranalysis/v1beta1/image:image_go_proto",
  69. "//google/devtools/containeranalysis/v1beta1/package:package_go_proto",
  70. "//google/devtools/containeranalysis/v1beta1/provenance:provenance_go_proto",
  71. "//google/devtools/containeranalysis/v1beta1/vulnerability:vulnerability_go_proto",
  72. ],
  73. )