Tweak the Ruby code to support Bazel.

* Change how the files load each other so they actually work with
  ruby_binary.
* Add an alternative set of command line flags to the queue compiler
  which aligns with what Bazel wants better.

Change-Id: If20d2bad0f8a07ef1d2c2de8519ff0849ec9b6e2
diff --git a/aos/build/queues/BUILD b/aos/build/queues/BUILD
new file mode 100644
index 0000000..ec51451
--- /dev/null
+++ b/aos/build/queues/BUILD
@@ -0,0 +1,42 @@
+load('/tools/build_rules/ruby', 'ruby_library', 'ruby_binary')
+
+ruby_library(
+  name = 'lib',
+  srcs = [
+    'load.rb',
+    'write_iff_changed.rb',
+  ] + glob(['*/*.rb']),
+)
+
+ruby_binary(
+  name = 'compiler',
+  visibility = ['//visibility:public'],
+  srcs = [
+    'compiler.rb',
+  ],
+  deps = [
+    ':lib',
+  ],
+)
+
+ruby_binary(
+  name = 'queue_primitives',
+  visibility = ['//visibility:public'],
+  srcs = [
+    'queue_primitives.rb',
+  ],
+  deps = [
+    ':lib',
+  ],
+)
+
+ruby_binary(
+  name = 'print_field',
+  visibility = ['//visibility:public'],
+  srcs = [
+    'print_field.rb',
+  ],
+  deps = [
+    ':lib',
+  ],
+)