diff options
author | sjoblom65 <anders.sjoblom@gmail.com> | 2020-01-24 17:55:34 -0500 |
---|---|---|
committer | Wouter van Oortmerssen <aardappel@gmail.com> | 2020-01-24 14:55:34 -0800 |
commit | 47026ea6ba0e3ea8c4f4ab47de880cb5665ee1b6 (patch) | |
tree | f9101bbe1ba10ba14f17d52f9a89a3ea9520c262 /tests/BUILD | |
parent | 3f677f241417e5797c1b786010616e63d6de5d55 (diff) | |
download | flatbuffers-47026ea6ba0e3ea8c4f4ab47de880cb5665ee1b6.tar.gz flatbuffers-47026ea6ba0e3ea8c4f4ab47de880cb5665ee1b6.tar.bz2 flatbuffers-47026ea6ba0e3ea8c4f4ab47de880cb5665ee1b6.zip |
Added the code to embed the binary schema to the source (--bfbs-gen-embed). (#5701)
* Added the code to embed the binary schema to the source.
This is pulled forward from a old PR #5162 that will be closed.
* Update idl_gen_cpp.cpp
Added a small comment to trigger a new build. The build was failing in a strange location and doesn't look like it has anything to do with the code.
* Moved the EscapeAndWrapBuffer to util.cpp and did some formating.
* One more camelCases removed and renamed some variables.
* wrapped_line_xxx should have been passed as a const reference in the first place.
* Moved the bfbs embed sample to it's own file.
* Missed moving the namespace back.
* Moved the embedded bfbs to test.cpp instead of using a sample.
* Missed adding the generation of embedded bfbs to the build.
* See if this makes the build happier.
* Fixed a in-compatable cpp output of the generated header.
* Did some changes to reflect the code review comments.
1. Update the EscapeAndWrapBuffer to BufferToHexText and fixed a variable name.
2. Moved the include of the embedded binary schema to all the other includes.
* Moved some code to inline the instead of using a local variable.
* Moved the BufferToHexText back to be a inline function in util.h
Diffstat (limited to 'tests/BUILD')
-rw-r--r-- | tests/BUILD | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/BUILD b/tests/BUILD index b61824c7..97ef6748 100644 --- a/tests/BUILD +++ b/tests/BUILD @@ -19,6 +19,7 @@ cc_test( "test_builder.cpp", "test_builder.h", "union_vector/union_vector_generated.h", + "monster_test_bfbs_generated.h", ], copts = [ "-DFLATBUFFERS_TRACK_VERIFIER_BUFFER_SIZE", |