BUILD 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. load("@rules_cc//cc:defs.bzl", "cc_library")
  2. load("@rules_java//java:defs.bzl", "java_library")
  3. load("@rules_proto//proto:defs.bzl", "proto_library")
  4. filegroup(
  5. name = "datasets",
  6. srcs = [
  7. "//benchmarks/datasets/google_message1/proto2:datasets",
  8. "//benchmarks/datasets/google_message1/proto3:datasets",
  9. "//benchmarks/datasets/google_message2:datasets",
  10. "//benchmarks/datasets/google_message3:datasets",
  11. "//benchmarks/datasets/google_message4:datasets",
  12. ],
  13. visibility = [
  14. "//benchmarks:__subpackages__",
  15. ],
  16. )
  17. proto_library(
  18. name = "protos",
  19. visibility = [
  20. "//benchmarks:__subpackages__",
  21. ],
  22. deps = [
  23. "//benchmarks/datasets/google_message1/proto2:benchmark_message1_proto2_proto",
  24. "//benchmarks/datasets/google_message1/proto3:benchmark_message1_proto3_proto",
  25. "//benchmarks/datasets/google_message2:benchmark_message2_proto",
  26. "//benchmarks/datasets/google_message3:benchmark_message3_proto",
  27. "//benchmarks/datasets/google_message4:benchmark_message4_proto",
  28. ],
  29. )
  30. cc_library(
  31. name = "cc_protos",
  32. visibility = [
  33. "//benchmarks:__subpackages__",
  34. ],
  35. deps = [
  36. "//benchmarks/datasets/google_message1/proto2:benchmark_message1_proto2_cc_proto",
  37. "//benchmarks/datasets/google_message1/proto3:benchmark_message1_proto3_cc_proto",
  38. "//benchmarks/datasets/google_message2:benchmark_message2_cc_proto",
  39. "//benchmarks/datasets/google_message3:benchmark_message3_cc_proto",
  40. "//benchmarks/datasets/google_message4:benchmark_message4_cc_proto",
  41. ],
  42. )
  43. java_library(
  44. name = "java_protos",
  45. visibility = [
  46. "//benchmarks:__subpackages__",
  47. ],
  48. exports = [
  49. "//benchmarks/datasets/google_message1/proto2:benchmark_message1_proto2_java_proto",
  50. "//benchmarks/datasets/google_message1/proto3:benchmark_message1_proto3_java_proto",
  51. "//benchmarks/datasets/google_message2:benchmark_message2_java_proto",
  52. "//benchmarks/datasets/google_message3:benchmark_message3_java_proto",
  53. "//benchmarks/datasets/google_message4:benchmark_message4_java_proto",
  54. ],
  55. )