Support multiple fbs files & no root types in static flatbuffers
In order to improve parity with the existing flatbuffer bazel rules, add
support for:
* Multiple srcs files.
* Generating code for files where no root_type has been specified.
Change-Id: I77d909978fd0bf5125b9e789162c7b629d0fe00d
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/aos/flatbuffers/test_dir/BUILD b/aos/flatbuffers/test_dir/BUILD
index 7015cc2..76f5fb4 100644
--- a/aos/flatbuffers/test_dir/BUILD
+++ b/aos/flatbuffers/test_dir/BUILD
@@ -2,13 +2,13 @@
static_flatbuffer(
name = "include_fbs",
- src = "include.fbs",
+ srcs = ["include.fbs"],
visibility = ["//visibility:public"],
)
static_flatbuffer(
name = "type_coverage_fbs",
- src = "type_coverage.fbs",
+ srcs = ["type_coverage.fbs"],
visibility = ["//visibility:public"],
)
diff --git a/aos/flatbuffers/test_dir/include.fbs b/aos/flatbuffers/test_dir/include.fbs
index 533db2b..df34259 100644
--- a/aos/flatbuffers/test_dir/include.fbs
+++ b/aos/flatbuffers/test_dir/include.fbs
@@ -8,5 +8,3 @@
foo:TestEnum (id: 0);
}
-root_type IncludedTable;
-