Convert aos over to flatbuffers
Everything builds, and all the tests pass. I suspect that some entries
are missing from the config files, but those will be found pretty
quickly on startup.
There is no logging or live introspection of queue messages.
Change-Id: I496ee01ed68f202c7851bed7e8786cee30df29f5
diff --git a/aos/actions/BUILD b/aos/actions/BUILD
index 25cc6e3..fe79a4a 100644
--- a/aos/actions/BUILD
+++ b/aos/actions/BUILD
@@ -1,6 +1,6 @@
package(default_visibility = ["//visibility:public"])
-load("//aos/build:queues.bzl", "queue_library")
+load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library")
cc_library(
name = "action_lib",
@@ -13,30 +13,22 @@
"actor.h",
],
deps = [
- "//aos:queues",
+ ":actions_fbs",
"//aos/controls:control_loop",
"//aos/logging",
- "//aos/logging:queue_logging",
"//aos/time",
"//aos/util:phased_loop",
],
)
-queue_library(
- name = "action_queue",
- srcs = [
- "actions.q",
- ],
+flatbuffer_cc_library(
+ name = "actions_fbs",
+ srcs = ["actions.fbs"],
)
-queue_library(
- name = "test_action_queue",
- srcs = [
- "test_action.q",
- ],
- deps = [
- ":action_queue",
- ],
+flatbuffer_cc_library(
+ name = "test_action_fbs",
+ srcs = ["test_action.fbs"],
)
cc_test(
@@ -44,15 +36,14 @@
srcs = [
"action_test.cc",
],
+ data = ["action_test_config.json"],
deps = [
":action_lib",
- ":action_queue",
- ":test_action_queue",
+ ":actions_fbs",
+ ":test_action_fbs",
"//aos:event",
- "//aos:queues",
"//aos/events:simulated_event_loop",
"//aos/logging",
- "//aos/logging:queue_logging",
"//aos/testing:googletest",
"//aos/testing:test_shm",
"//aos/time",