Improve import handling for proto conversion (#5673)

* Keep include prefix when converting from proto.

This change preserves the include prefix when generating flatbuffers
from proto (with FBS_GEN_INCLUDES) defined.

* Improve handling of imports in proto conversion.

Previously, there was no runtime flag to make proto->fbs conversion keep
the import structure of a collection of files. This change makes proto
conversion respect the --no-gen-includes flag and skip the output of
"generated" symbols.
This commit is contained in:
Michael Beardsworth
2019-12-23 08:50:29 -08:00
committed by Wouter van Oortmerssen
parent ce3a1c43a2
commit 13c05f4da3
5 changed files with 195 additions and 4 deletions

View File

@@ -44,7 +44,9 @@ cc_test(
":prototest/imported.proto",
":prototest/test.golden",
":prototest/test.proto",
":prototest/test_include.golden",
":prototest/test_union.golden",
":prototest/test_union_include.golden",
":unicode_test.json",
":union_vector/union_vector.fbs",
":union_vector/union_vector.json",