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/y2014/queues/BUILD b/y2014/queues/BUILD
index 182ab7d..dba212d 100644
--- a/y2014/queues/BUILD
+++ b/y2014/queues/BUILD
@@ -1,24 +1,19 @@
-package(default_visibility = ['//visibility:public'])
+package(default_visibility = ["//visibility:public"])
-load('//aos/build:queues.bzl', 'queue_library')
+load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library")
-queue_library(
- name = 'profile_params',
- srcs = [
- 'profile_params.q',
- ],
+flatbuffer_cc_library(
+ name = "auto_mode_fbs",
+ srcs = [
+ "auto_mode.fbs",
+ ],
+ gen_reflections = 1,
)
-queue_library(
- name = 'hot_goal',
- srcs = [
- 'hot_goal.q',
- ],
-)
-
-queue_library(
- name = 'auto_mode',
- srcs = [
- 'auto_mode.q',
- ],
+flatbuffer_cc_library(
+ name = "hot_goal_fbs",
+ srcs = [
+ "hot_goal.fbs",
+ ],
+ gen_reflections = 1,
)