John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 1 | load("//tools:environments.bzl", "mcu_cpus") |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame^] | 2 | load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library") |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 3 | load("//aos/build:queues.bzl", "queue_library") |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 4 | |
Brian Silverman | 258b917 | 2015-09-19 14:32:57 -0400 | [diff] [blame] | 5 | filegroup( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 6 | name = "prime_binaries", |
| 7 | srcs = [ |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 8 | "//aos:core", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 9 | "//aos/logging:log_displayer", |
| 10 | "//aos/logging:log_streamer", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 11 | "//aos/starter", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 12 | ], |
| 13 | visibility = ["//visibility:public"], |
Austin Schuh | 1eceeb9 | 2015-11-08 21:16:06 -0800 | [diff] [blame] | 14 | ) |
Austin Schuh | c80dd15 | 2016-02-29 01:47:44 -0800 | [diff] [blame] | 15 | |
| 16 | filegroup( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 17 | name = "prime_start_binaries", |
| 18 | srcs = [ |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 19 | "//aos/logging:binary_log_writer", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 20 | ], |
| 21 | visibility = ["//visibility:public"], |
Austin Schuh | c80dd15 | 2016-02-29 01:47:44 -0800 | [diff] [blame] | 22 | ) |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 23 | |
Austin Schuh | c80dd15 | 2016-02-29 01:47:44 -0800 | [diff] [blame] | 24 | filegroup( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 25 | name = "prime_binaries_stripped", |
| 26 | srcs = [ |
| 27 | # starter is hard coded to look for a non-stripped core... |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 28 | "//aos:core", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 29 | "//aos/logging:log_streamer.stripped", |
| 30 | "//aos/logging:log_displayer.stripped", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 31 | "//aos/starter", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 32 | ], |
| 33 | visibility = ["//visibility:public"], |
| 34 | ) |
| 35 | |
| 36 | filegroup( |
| 37 | name = "prime_start_binaries_stripped", |
| 38 | srcs = [ |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 39 | "//aos/logging:binary_log_writer.stripped", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 40 | ], |
| 41 | visibility = ["//visibility:public"], |
Austin Schuh | c80dd15 | 2016-02-29 01:47:44 -0800 | [diff] [blame] | 42 | ) |
Sabina Davis | 2ed5ea2 | 2017-09-26 22:27:42 -0700 | [diff] [blame] | 43 | |
| 44 | cc_library( |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 45 | name = "math", |
| 46 | hdrs = [ |
| 47 | "commonmath.h", |
| 48 | ], |
| 49 | compatible_with = mcu_cpus, |
| 50 | visibility = ["//visibility:public"], |
| 51 | ) |
| 52 | |
| 53 | cc_library( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 54 | name = "once", |
| 55 | srcs = [ |
| 56 | "once-tmpl.h", |
| 57 | ], |
| 58 | hdrs = [ |
| 59 | "once.h", |
| 60 | ], |
| 61 | visibility = ["//visibility:public"], |
| 62 | deps = [ |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 63 | "//aos:gtest_prod", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 64 | "//aos/type_traits", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 65 | ], |
Sabina Davis | 2ed5ea2 | 2017-09-26 22:27:42 -0700 | [diff] [blame] | 66 | ) |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 67 | |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 68 | cc_library( |
| 69 | name = "byteorder", |
| 70 | hdrs = [ |
| 71 | "byteorder.h", |
| 72 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 73 | visibility = ["//visibility:public"], |
| 74 | ) |
| 75 | |
Sabina Davis | 2ed5ea2 | 2017-09-26 22:27:42 -0700 | [diff] [blame] | 76 | cc_test( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 77 | name = "once_test", |
| 78 | srcs = [ |
| 79 | "once_test.cc", |
| 80 | ], |
| 81 | visibility = ["//visibility:public"], |
| 82 | deps = [ |
| 83 | "//aos:once", |
| 84 | "//aos/testing:googletest", |
| 85 | ], |
| 86 | ) |
| 87 | |
| 88 | py_library( |
| 89 | name = "python_init", |
| 90 | srcs = ["__init__.py"], |
| 91 | visibility = ["//visibility:public"], |
Sabina Davis | 2ed5ea2 | 2017-09-26 22:27:42 -0700 | [diff] [blame] | 92 | ) |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 93 | |
| 94 | cc_library( |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 95 | name = "macros", |
| 96 | hdrs = [ |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 97 | "macros.h", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 98 | ], |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 99 | compatible_with = mcu_cpus, |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 100 | visibility = ["//visibility:public"], |
| 101 | ) |
| 102 | |
| 103 | cc_library( |
| 104 | name = "gtest_prod", |
| 105 | hdrs = [ |
| 106 | "gtest_prod.h", |
| 107 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 108 | visibility = ["//visibility:public"], |
| 109 | ) |
| 110 | |
| 111 | cc_library( |
| 112 | name = "network_port", |
| 113 | hdrs = [ |
| 114 | "network_port.h", |
| 115 | ], |
| 116 | visibility = ["//visibility:public"], |
| 117 | ) |
| 118 | |
| 119 | genrule( |
| 120 | name = "gen_print_field", |
| 121 | outs = ["print_field.cc"], |
| 122 | cmd = "$(location //aos/build/queues:print_field) $@", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 123 | tools = ["//aos/build/queues:print_field"], |
| 124 | visibility = ["//visibility:private"], |
| 125 | ) |
| 126 | |
| 127 | cc_library( |
| 128 | name = "queue_types", |
| 129 | srcs = [ |
| 130 | "print_field_helpers.h", |
| 131 | "queue_types.cc", |
| 132 | ":gen_print_field", |
| 133 | ], |
| 134 | hdrs = [ |
| 135 | "queue_types.h", |
| 136 | ], |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 137 | visibility = ["//visibility:public"], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 138 | deps = [ |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 139 | ":generated_queue_headers", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 140 | "//aos:byteorder", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 141 | "//aos/ipc_lib:core_lib", |
| 142 | "//aos/ipc_lib:shared_mem", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 143 | "//aos/logging:printf_formats", |
| 144 | "//aos/mutex", |
| 145 | "//aos/time", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 146 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 147 | ) |
| 148 | |
| 149 | cc_test( |
| 150 | name = "queue_types_test", |
| 151 | srcs = [ |
| 152 | "queue_types_test.cc", |
| 153 | ], |
| 154 | deps = [ |
| 155 | ":queue_types", |
| 156 | ":test_queue", |
| 157 | "//aos/logging", |
| 158 | "//aos/testing:googletest", |
| 159 | "//aos/testing:test_logging", |
| 160 | ], |
| 161 | ) |
| 162 | |
| 163 | cc_library( |
| 164 | name = "queues", |
| 165 | hdrs = [ |
| 166 | "queue.h", |
| 167 | ], |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 168 | visibility = ["//visibility:public"], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 169 | deps = [ |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 170 | "//aos:queue", |
| 171 | "//aos/ipc_lib:queue", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 172 | "//aos/messages", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 173 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 174 | ) |
| 175 | |
| 176 | queue_library( |
| 177 | name = "test_queue", |
| 178 | srcs = [ |
| 179 | "test_queue.q", |
| 180 | ], |
| 181 | ) |
| 182 | |
| 183 | genrule( |
| 184 | name = "gen_queue_primitives", |
| 185 | outs = ["queue_primitives.h"], |
| 186 | cmd = "$(location //aos/build/queues:queue_primitives) $@", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 187 | tools = ["//aos/build/queues:queue_primitives"], |
| 188 | visibility = ["//visibility:private"], |
| 189 | ) |
| 190 | |
| 191 | cc_library( |
| 192 | name = "generated_queue_headers", |
| 193 | hdrs = [ |
| 194 | ":gen_queue_primitives", |
| 195 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 196 | visibility = ["//aos/logging:__pkg__"], |
| 197 | ) |
| 198 | |
| 199 | cc_test( |
| 200 | name = "queue_test", |
| 201 | srcs = [ |
| 202 | "queue_test.cc", |
| 203 | ], |
| 204 | deps = [ |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 205 | ":test_queue", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 206 | "//aos:die", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 207 | "//aos/testing:googletest", |
| 208 | "//aos/testing:test_shm", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 209 | "//aos/util:thread", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 210 | ], |
| 211 | ) |
| 212 | |
| 213 | cc_library( |
| 214 | name = "unique_malloc_ptr", |
| 215 | hdrs = [ |
| 216 | "unique_malloc_ptr.h", |
| 217 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 218 | visibility = ["//visibility:public"], |
| 219 | ) |
| 220 | |
| 221 | cc_library( |
| 222 | name = "condition", |
| 223 | srcs = [ |
| 224 | "condition.cc", |
| 225 | ], |
| 226 | hdrs = [ |
| 227 | "condition.h", |
| 228 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 229 | visibility = ["//visibility:public"], |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 230 | deps = [ |
| 231 | "//aos/ipc_lib:aos_sync", |
| 232 | "//aos/logging", |
| 233 | "//aos/mutex", |
| 234 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 235 | ) |
| 236 | |
| 237 | cc_test( |
| 238 | name = "condition_test", |
| 239 | srcs = [ |
| 240 | "condition_test.cc", |
| 241 | ], |
| 242 | deps = [ |
| 243 | ":condition", |
| 244 | "//aos:die", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 245 | "//aos/ipc_lib:aos_sync", |
| 246 | "//aos/ipc_lib:core_lib", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 247 | "//aos/logging", |
| 248 | "//aos/mutex", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 249 | "//aos/testing:googletest", |
| 250 | "//aos/testing:prevent_exit", |
| 251 | "//aos/testing:test_shm", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 252 | "//aos/time", |
| 253 | "//aos/util:thread", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 254 | ], |
| 255 | ) |
| 256 | |
| 257 | cc_library( |
| 258 | name = "die", |
| 259 | srcs = [ |
| 260 | "die.cc", |
| 261 | ], |
| 262 | hdrs = [ |
| 263 | "die.h", |
| 264 | ], |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 265 | visibility = ["//visibility:public"], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 266 | deps = [ |
| 267 | "//aos:macros", |
| 268 | "//aos/libc:aos_strerror", |
| 269 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 270 | ) |
| 271 | |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 272 | cc_test( |
| 273 | name = "die_test", |
| 274 | srcs = [ |
| 275 | "die_test.cc", |
| 276 | ], |
| 277 | deps = [ |
| 278 | ":die", |
| 279 | "//aos/testing:googletest", |
| 280 | ], |
| 281 | ) |
| 282 | |
| 283 | cc_library( |
| 284 | name = "event", |
| 285 | srcs = [ |
| 286 | "event.cc", |
| 287 | ], |
| 288 | hdrs = [ |
| 289 | "event.h", |
| 290 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 291 | visibility = ["//visibility:public"], |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 292 | deps = [ |
| 293 | "//aos/ipc_lib:aos_sync", |
| 294 | "//aos/logging", |
| 295 | "//aos/time", |
| 296 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 297 | ) |
| 298 | |
| 299 | cc_test( |
| 300 | name = "event_test", |
| 301 | srcs = [ |
| 302 | "event_test.cc", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 303 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 304 | deps = [ |
| 305 | ":event", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 306 | "//aos/testing:googletest", |
| 307 | "//aos/testing:test_logging", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 308 | "//aos/time", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 309 | ], |
| 310 | ) |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 311 | |
| 312 | cc_binary( |
| 313 | name = "dump_rtprio", |
| 314 | srcs = [ |
| 315 | "dump_rtprio.cc", |
| 316 | ], |
| 317 | deps = [ |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 318 | "//aos/logging", |
| 319 | "//aos/logging:implementations", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 320 | "//aos/time", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 321 | ], |
| 322 | ) |
| 323 | |
| 324 | cc_library( |
| 325 | name = "queue", |
| 326 | hdrs = [ |
| 327 | "queue-tmpl.h", |
| 328 | ], |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 329 | visibility = ["//aos:__pkg__"], |
| 330 | ) |
| 331 | |
| 332 | cc_library( |
| 333 | name = "complex_thread_local", |
| 334 | srcs = [ |
| 335 | "complex_thread_local.cc", |
| 336 | ], |
| 337 | hdrs = [ |
| 338 | "complex_thread_local.h", |
| 339 | ], |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 340 | linkopts = [ |
| 341 | "-lpthread", |
| 342 | ], |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 343 | visibility = ["//visibility:public"], |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 344 | deps = [ |
| 345 | "//aos:die", |
| 346 | "//aos:once", |
| 347 | ], |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 348 | ) |
| 349 | |
| 350 | cc_test( |
| 351 | name = "complex_thread_local_test", |
| 352 | srcs = [ |
| 353 | "complex_thread_local_test.cc", |
| 354 | ], |
| 355 | deps = [ |
| 356 | ":complex_thread_local", |
| 357 | "//aos/logging", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 358 | "//aos/testing:googletest", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 359 | "//aos/util:thread", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 360 | ], |
| 361 | ) |
| 362 | |
| 363 | cc_library( |
| 364 | name = "init", |
| 365 | srcs = [ |
| 366 | "init.cc", |
| 367 | ], |
| 368 | hdrs = [ |
| 369 | "init.h", |
| 370 | ], |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 371 | visibility = ["//visibility:public"], |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 372 | deps = [ |
| 373 | "//aos:die", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 374 | "//aos/ipc_lib:shared_mem", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 375 | "//aos/logging:implementations", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 376 | ], |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 377 | ) |
| 378 | |
| 379 | cc_library( |
| 380 | name = "configuration", |
| 381 | srcs = [ |
| 382 | "configuration.cc", |
| 383 | ], |
| 384 | hdrs = [ |
| 385 | "configuration.h", |
| 386 | ], |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 387 | visibility = ["//visibility:public"], |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 388 | deps = [ |
| 389 | "//aos:once", |
| 390 | "//aos:unique_malloc_ptr", |
| 391 | "//aos/logging", |
| 392 | ], |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 393 | ) |
| 394 | |
| 395 | cc_binary( |
| 396 | name = "core", |
| 397 | srcs = [ |
| 398 | "core.cc", |
| 399 | ], |
| 400 | deps = [ |
| 401 | ":init", |
| 402 | "//aos/util:run_command", |
| 403 | ], |
| 404 | ) |
Brian Silverman | f819b44 | 2019-01-20 16:51:04 -0800 | [diff] [blame] | 405 | |
| 406 | cc_library( |
| 407 | name = "make_unique", |
| 408 | hdrs = [ |
| 409 | "make_unique.h", |
| 410 | ], |
| 411 | visibility = ["//visibility:public"], |
| 412 | ) |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame^] | 413 | |
| 414 | flatbuffer_cc_library( |
| 415 | name = "json_to_flatbuffer_flatbuffer", |
| 416 | srcs = ["json_to_flatbuffer.fbs"], |
| 417 | ) |
| 418 | |
| 419 | cc_library( |
| 420 | name = "json_to_flatbuffer", |
| 421 | srcs = ["json_to_flatbuffer.cc"], |
| 422 | hdrs = ["json_to_flatbuffer.h"], |
| 423 | deps = [ |
| 424 | "//aos/logging", |
| 425 | "@com_github_google_flatbuffers//:flatbuffers", |
| 426 | ], |
| 427 | ) |
| 428 | |
| 429 | cc_test( |
| 430 | name = "json_to_flatbuffer_test", |
| 431 | srcs = [ |
| 432 | "json_to_flatbuffer_test.cc", |
| 433 | ], |
| 434 | deps = [ |
| 435 | ":json_to_flatbuffer", |
| 436 | ":json_to_flatbuffer_flatbuffer", |
| 437 | "//aos/testing:googletest", |
| 438 | ], |
| 439 | ) |