Commit 6866d354 authored by Michael Crouse's avatar Michael Crouse Committed by Commit Bot

Roll src/third_party/flatbuffers/src/ 136d75fa6..6df40a247 (88 commits)

Update flatbuffers to enable pending tflite addition to third_party.

WIP of tflite integration: https://chromium-review.googlesource.com/c/chromium/src/+/2486389

https://chromium.googlesource.com/external/github.com/google/flatbuffers.git/+log/136d75fa6580..6df40a247173

$ git log 136d75fa6..6df40a247 --date=short --no-merges --format='%ad %ae %s'
2020-03-12 aardappel pre-tag version bump for 1.12
2020-03-12 mustii Removes the inner loop in the endtable check written tables (#5803)
2020-03-13 mockbutler Escape characters in jsonschema descriptions (#5644)
2020-03-13 31897320+vglavnyy Remove `noexcept` qualifier copy-ctor of `union` type (#5800) (#5802)
2020-03-13 31897320+vglavnyy Replace 'assert' by 'FLATBUFFERS_ASSERT' inside idl_parser.cpp (#5799)
2020-03-12 jakub Add non-nullable modifier to return type of functions never returning null (#5797)
2020-03-12 qqlddg [C++] Generate code for vector force_align attribute. (#5796)
2020-03-09 25088801+jean-airoldie rust: pub export the VectorIter type (#5736)
2020-03-09 aardappel Fix Python min alignment
2020-03-08 lee.mracek [Rust] Add gen-name-strings for Rust (#5757)
2020-03-05 aardappel Removed assert that wasn't backwards compatible.
2020-03-05 aardappel [C#] add ObjectAPI Serialization Utility (#5785)
2020-03-02 aardappel Fixed docs on how to obtain parser error.
2020-03-02 dbaileychess Added --filename-suffix and --filename-ext to flatc (#5778)
2020-02-27 derekbailey Fixed refractoring issue in reflection/generate_code.sh. Also, mv deletes the original file, so I don't need to clean it up manually in that case. (#5777)
2020-02-24 derekbailey Skip writing reflection_generated.h if not changed (#5776)
2020-02-24 mustii [Swift] Adds GRPC to Swift (#5758)
2020-02-21 paulovictor.pinheiro [Java][FlexBuffers] Abstract buffer access from ByteBuffer (#5743)
2020-02-21 mustii Adds cocoapods and a readme of how to get the package (#5771)
2020-02-13 om26er [snap] Fix versioning (#5727)
2020-02-12 joseph [Python] Fixed potential allignment issue (#5768)
2020-02-12 afonso.tfaria21 Fix memory leak on cpp object api (#5761)
2020-02-11 joseph [Python] Fixed issue #5499 (#5764)
2020-02-10 dpacbach [C++] Use strong enum type for vectors when scoped-enums is on. (#5750)
2020-02-11 51015092+mugisoba [C#] support Json Serialization (#5752)
2020-02-06 aardappel FlexBuffers: C++: scalar-only typed vectors were not aligned.
2020-01-30 rw Bump Rust port to 0.6.1 (#5747)
2020-01-31 51015092+mugisoba [C#] support Object API (#5710)
2020-01-27 mustii Adds min and max, comments, and all of swift's keywords + fix docs (#5737)
2020-01-27 dnfield Use VS 2017 and 2019 on CI, fix cast issue in dart_idl (#5740)
2020-01-25 mustii Creates a flatbuffers validation function + small fix (#5725)
2020-01-24 anders.sjoblom Added the code to embed the binary schema to the source (--bfbs-gen-embed). (#5701)
2020-01-24 paulovictor.pinheiro [Java][FlexBuffers] Deprecate typed vector strings due to design flaw (#5722)
2020-01-24 mustii [Go] Implements a SharedStrings function (#5733)
2020-01-25 vkill.net [Swift] Fix padding function overflow when bufSize is 0 (#5721)
2020-01-24 20694052+PhoebeHui Add vcpkg installation instructions (#5732)
2020-01-23 dnfield [Dart] Fix deprecated field support, inf/nan (#5724)
2020-01-20 max [typescript] Size-prefixed root accessors not taking into account size prefix (#5717)
2020-01-19 max [rust] Add use declarations to Rust-generated bindings for imported FB definitions (#5645)
2020-01-16 somombo [Go] Replace references to hardcoded ”Monster" etc with idiomatic go wherever possible (#5716)
2020-01-17 31897320+vglavnyy [C++] Fix for printing of enum in case output_enum_identifiers=1. (#5706)
2020-01-17 vkill.net [Swift] Support create long string (#5709)
2020-01-13 mustii Added create function for swift (#5707)
2020-01-09 mustii [Swift] Swift implementation 🎉🎉 (#5603)
2020-01-09 aardappel Changed direct calls to strtod to use StringToNumber
2020-01-09 emkornfield Document JSON compatibility guarantees. (#5704)
2020-01-07 31897320+vglavnyy Add CMake 'generated_code' target to simplify resolution of build dependencies (#5697)
2020-01-06 beardsworth (Optionally) add an additional suffix namespace to generated fbs files. (#5698)
2020-01-07 dreifachstein [Java] Replace Table.UTF8_CHARSET with StandardCharsets.UTF_8 (#5696)
2020-01-02 rw Rust: Temporarily disable 2 endianness unit tests (#5695)
2020-01-02 dpacbach [C++17] Add Traits class for Tables and Factory function within it. (#5678)
2020-01-02 aardappel Removed code_generators.cpp from library targets
2019-12-31 max [rust] Make enum names public (#5690)
2019-12-30 beardsworth Correct inverted logic around include prefixes. (#5689)
2019-12-26 47436172+lu-wang-g Optimize Pack method using numpy (#5662)
2019-12-26 AustinSchuh [C++] Add Builder and Table typedefs (#5685)
2019-12-26 aardappel Minor doc updates: FlexBuffers C#, Discord, CppUsage.
2019-12-26 AustinSchuh Upgrade rules_go (#5684)
2019-12-26 AustinSchuh Fix --incompatible_load_cc_rules_from_bzl (#5683)
2019-12-26 AustinSchuh Add support for absl::string_view when available (#5682)
2019-12-26 AustinSchuh [Bazel] Add support for compatible_with and restricted_to (#5681)
2019-12-24 rw CI: New Docker tests for Python with numpy (#5677)
2019-12-23 aardappel Fixed struct initialization error on older versions of C#
2019-12-23 aardappel Fixed warnings in FlexBuffers.java
2019-12-23 aardappel Fixed out of date licenses on gRPC Python files.
2019-12-23 aardappel Removed test proto output.
2019-12-24 31897320+vglavnyy Add flatc '--cpp_std' switch (#5656)
2019-12-23 aardappel Fix for FlexBuffers FBT_VECTOR_STRING size bit-width.
2019-12-23 32997632+stefan301 Added Check to VerifyAlignment (#5675)
2019-12-23 michael.beardsworth Improve import handling for proto conversion (#5673)
2019-12-19 lxrite [Dart] Fix prepare space for writeListInt64 and writeListUint64 (#5654)
2019-12-17 mbrubeck Make Rust constants public (#5659)
2019-12-17 stein Add namespace qualification to union types (#5666)
2019-12-15 max Bugfix for Rust generation of union fields named with language keywords (#5592)
2019-12-14 i wrap multiple statements in do {} while(!IsConstTrue(true)) (#5655)
2019-12-09 gautham.bangalore [gRPC] Uncomment MessageBuilder (#5658)
2019-12-09 bjornharrtell Supress unsigned-integer-overflow for PaddingBytes (#5647)
2019-12-06 stein Add --force-empty-vectors option (#5653)
2019-12-05 aardappel Fixed enum min/max values not properly escaped.
2019-12-02 bttk Split Bazel targets into multiple packages (#5640)
2019-12-02 security-tps Remove a static_assert (#5643)
2019-12-02 47436172+lu-wang-g Flatbuffers Python Object API (#5616)
2019-12-03 chronoxor [Clang 10]: definition of implicit copy constructor for 'TableKeyComparatoris deprecated #5649 (#5650)
2019-12-02 nilsocket [docs]: add missing semicolon (#5648)
2019-11-26 3629062+tigrato [GO] Fix support for enums with underscores and Unions with imported members (#5600)
2019-11-26 31897320+vglavnyy Fix ambiguity of a type deduction in TEST_EQ macro if arguments have `enum class` type. (#5630)
2019-11-26 31897320+vglavnyy Simplify declarations of x-macro FLATBUFFERS_TD (#5638)
2019-11-26 i read vtable size through ReadScalar() (#5636)

Created with:
  roll-dep src/third_party/flatbuffers/src

Bug: 1141211
Change-Id: Ife27c510b6457dc8b1c95bfc0b56372a4de687c9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2490851
Commit-Queue: Michael Crouse <mcrouse@chromium.org>
Reviewed-by: default avatarDominic Battré <battre@chromium.org>
Reviewed-by: default avatarSophie Chang <sophiechang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#820413}
parent 3d23bd65
...@@ -938,7 +938,7 @@ deps = { ...@@ -938,7 +938,7 @@ deps = {
Var('chromium_git') + '/chromium/deps/flac.git' + '@' + 'af862024c8c8fa0ae07ced05e89013d881b00596', Var('chromium_git') + '/chromium/deps/flac.git' + '@' + 'af862024c8c8fa0ae07ced05e89013d881b00596',
'src/third_party/flatbuffers/src': 'src/third_party/flatbuffers/src':
Var('chromium_git') + '/external/github.com/google/flatbuffers.git' + '@' + '136d75fa6580ef87d1b7cbc243e617f21149852e', Var('chromium_git') + '/external/github.com/google/flatbuffers.git' + '@' + '6df40a2471737b27271bdd9b900ab5f3aec746c7',
# Used for embedded builds. CrOS & Linux use the system version. # Used for embedded builds. CrOS & Linux use the system version.
'src/third_party/fontconfig/src': { 'src/third_party/fontconfig/src': {
......
...@@ -11,10 +11,14 @@ config("flatbuffers_config") { ...@@ -11,10 +11,14 @@ config("flatbuffers_config") {
# The part of FlatBuffers that Chrome is interested in. # The part of FlatBuffers that Chrome is interested in.
source_set("flatbuffers") { source_set("flatbuffers") {
sources = [ public = [
"src/include/flatbuffers/base.h", "src/include/flatbuffers/base.h",
"src/include/flatbuffers/flatbuffers.h", "src/include/flatbuffers/flatbuffers.h",
"src/include/flatbuffers/stl_emulation.h", "src/include/flatbuffers/stl_emulation.h",
# Required for tflite.
"src/include/flatbuffers/flexbuffers.h",
"src/include/flatbuffers/util.h",
] ]
if (is_win) { if (is_win) {
...@@ -41,6 +45,8 @@ source_set("compiler_files") { ...@@ -41,6 +45,8 @@ source_set("compiler_files") {
"src/grpc/src/compiler/java_generator.h", "src/grpc/src/compiler/java_generator.h",
"src/grpc/src/compiler/python_generator.cc", "src/grpc/src/compiler/python_generator.cc",
"src/grpc/src/compiler/schema_interface.h", "src/grpc/src/compiler/schema_interface.h",
"src/grpc/src/compiler/swift_generator.cc",
"src/grpc/src/compiler/swift_generator.h",
"src/include/flatbuffers/code_generators.h", "src/include/flatbuffers/code_generators.h",
"src/include/flatbuffers/flatbuffers.h", "src/include/flatbuffers/flatbuffers.h",
"src/include/flatbuffers/flatc.h", "src/include/flatbuffers/flatc.h",
...@@ -70,6 +76,7 @@ source_set("compiler_files") { ...@@ -70,6 +76,7 @@ source_set("compiler_files") {
"src/src/idl_gen_php.cpp", "src/src/idl_gen_php.cpp",
"src/src/idl_gen_python.cpp", "src/src/idl_gen_python.cpp",
"src/src/idl_gen_rust.cpp", "src/src/idl_gen_rust.cpp",
"src/src/idl_gen_swift.cpp",
"src/src/idl_gen_text.cpp", "src/src/idl_gen_text.cpp",
"src/src/idl_parser.cpp", "src/src/idl_parser.cpp",
"src/src/reflection.cpp", "src/src/reflection.cpp",
...@@ -103,6 +110,38 @@ flatbuffer("flatbuffers_samplebuffer") { ...@@ -103,6 +110,38 @@ flatbuffer("flatbuffers_samplebuffer") {
flatc_include_dirs = [ "src/tests/include_test" ] flatc_include_dirs = [ "src/tests/include_test" ]
} }
# This combines sources, "flatbuffers" and "flatbuffers_test", specified in the
# public github repo required to build the unittests. This must be separate
# from ":compiler_files".
source_set("flatbuffers_test_files") {
include_dirs = [ "src/grpc" ]
sources = [
"src/include/flatbuffers/base.h",
"src/include/flatbuffers/code_generators.h",
"src/include/flatbuffers/flatbuffers.h",
"src/include/flatbuffers/flexbuffers.h",
"src/include/flatbuffers/grpc.h",
"src/include/flatbuffers/hash.h",
"src/include/flatbuffers/idl.h",
"src/include/flatbuffers/minireflect.h",
"src/include/flatbuffers/reflection.h",
"src/include/flatbuffers/reflection_generated.h",
"src/include/flatbuffers/registry.h",
"src/include/flatbuffers/stl_emulation.h",
"src/include/flatbuffers/util.h",
"src/src/code_generators.cpp",
"src/src/idl_gen_fbs.cpp",
"src/src/idl_gen_text.cpp",
"src/src/idl_parser.cpp",
"src/src/reflection.cpp",
"src/src/util.cpp",
]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
deps = [ ":flatbuffers" ]
}
test("flatbuffers_unittests") { test("flatbuffers_unittests") {
sources = [ sources = [
"src/tests/native_type_test_impl.cpp", "src/tests/native_type_test_impl.cpp",
...@@ -111,9 +150,9 @@ test("flatbuffers_unittests") { ...@@ -111,9 +150,9 @@ test("flatbuffers_unittests") {
"src/tests/test_builder.cpp", "src/tests/test_builder.cpp",
] ]
deps = [ deps = [
":compiler_files",
":flatbuffers", ":flatbuffers",
":flatbuffers_samplebuffer", ":flatbuffers_samplebuffer",
":flatbuffers_test_files",
] ]
data = [ data = [
"src/tests/", "src/tests/",
......
Name: FlatBuffers Name: FlatBuffers
Short Name: flatbuffers Short Name: flatbuffers
URL: https://github.com/google/flatbuffers URL: https://github.com/google/flatbuffers
Version: 136d75fa6580ef87d1b7cbc243e617f21149852e Version: 6df40a2471737b27271bdd9b900ab5f3aec746c7
Date: 2019-02-25 Date: 2020-10-21
License: Apache 2.0 License: Apache 2.0
License File: LICENSE License File: LICENSE
Security Critical: yes Security Critical: yes
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment