BUILD.bazel 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. package(default_visibility = ["//visibility:public"])
  2. java_library(
  3. name = "message_generation",
  4. srcs = glob([
  5. "src/main/**/*.java",
  6. ]),
  7. deps = [
  8. "//3rdparty/jvm/com/google/guava",
  9. "//3rdparty/jvm/commons_pool",
  10. "//3rdparty/jvm/io/netty",
  11. "//3rdparty/jvm/org/apache/commons:com_springsource_org_apache_commons_codec",
  12. "//3rdparty/jvm/org/apache/commons:com_springsource_org_apache_commons_io",
  13. "//3rdparty/jvm/org/apache/commons:com_springsource_org_apache_commons_lang",
  14. ],
  15. )
  16. java_test(
  17. name = "ArrayFieldTest",
  18. size = "small",
  19. srcs = ["src/test/java/org/ros/internal/message/field/ArrayFieldTest.java"],
  20. deps = [
  21. ":message_generation",
  22. "//3rdparty/jvm/io/netty",
  23. "//3rdparty/jvm/junit",
  24. ],
  25. )
  26. java_test(
  27. name = "MessageInterfaceBuilderTest",
  28. size = "small",
  29. srcs = ["src/test/java/org/ros/internal/message/MessageInterfaceBuilderTest.java"],
  30. deps = [
  31. ":message_generation",
  32. "//3rdparty/jvm/junit",
  33. ],
  34. )
  35. java_test(
  36. name = "Md5GeneratorTest",
  37. size = "small",
  38. srcs = ["src/test/java/org/ros/internal/message/Md5GeneratorTest.java"],
  39. resources = glob(["src/test/resources/**/*"]),
  40. deps = [
  41. ":message_generation",
  42. "//3rdparty/jvm/junit",
  43. ],
  44. )
  45. java_test(
  46. name = "MessageTest",
  47. size = "small",
  48. srcs = ["src/test/java/org/ros/internal/message/MessageTest.java"],
  49. resources = glob(["src/test/resources/**/*"]),
  50. deps = [
  51. ":message_generation",
  52. "//3rdparty/jvm/com/google/guava",
  53. "//3rdparty/jvm/junit",
  54. ],
  55. )
  56. java_test(
  57. name = "RawMessageSerializationTest",
  58. size = "small",
  59. srcs = ["src/test/java/org/ros/internal/message/RawMessageSerializationTest.java"],
  60. resources = glob(["src/test/resources/**/*"]),
  61. deps = [
  62. ":message_generation",
  63. "//3rdparty/jvm/com/google/guava",
  64. "//3rdparty/jvm/io/netty",
  65. "//3rdparty/jvm/junit",
  66. ],
  67. )
  68. java_test(
  69. name = "ServiceTest",
  70. size = "small",
  71. srcs = ["src/test/java/org/ros/internal/message/ServiceTest.java"],
  72. deps = [
  73. ":message_generation",
  74. "//3rdparty/jvm/junit",
  75. ],
  76. )
  77. java_test(
  78. name = "DurationTest",
  79. size = "small",
  80. srcs = ["src/test/java/org/ros/message/DurationTest.java"],
  81. deps = [
  82. ":message_generation",
  83. "//3rdparty/jvm/junit",
  84. ],
  85. )
  86. java_test(
  87. name = "TimeTest",
  88. size = "small",
  89. srcs = ["src/test/java/org/ros/message/TimeTest.java"],
  90. deps = [
  91. ":message_generation",
  92. "//3rdparty/jvm/junit",
  93. ],
  94. )