James Kuszmaul | 590e33e | 2024-01-14 17:54:00 -0800 | [diff] [blame^] | 1 | load("//aos/flatbuffers:generate.bzl", "static_flatbuffer") |
| 2 | |
| 3 | static_flatbuffer( |
| 4 | name = "matrix_fbs", |
| 5 | srcs = ["matrix.fbs"], |
| 6 | visibility = ["//visibility:public"], |
| 7 | ) |
| 8 | |
| 9 | cc_library( |
| 10 | name = "flatbuffers_matrix", |
| 11 | hdrs = ["flatbuffers_matrix.h"], |
| 12 | visibility = ["//visibility:public"], |
| 13 | deps = [ |
| 14 | ":matrix_fbs", |
| 15 | "//aos:json_to_flatbuffer", |
| 16 | "@com_github_google_glog//:glog", |
| 17 | "@com_github_tartanllama_expected", |
| 18 | "@org_tuxfamily_eigen//:eigen", |
| 19 | ], |
| 20 | ) |
| 21 | |
| 22 | cc_test( |
| 23 | name = "flatbuffers_matrix_test", |
| 24 | srcs = ["flatbuffers_matrix_test.cc"], |
| 25 | deps = [ |
| 26 | ":flatbuffers_matrix", |
| 27 | "//aos/testing:googletest", |
| 28 | ], |
| 29 | ) |