summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-05-14[Python] Add flatbuffers python packagingtizen_7.0_m2_releasetizen_6.5.m2_releasesubmit/tizen_6.5/20211028.163401submit/tizen/20210604.065820accepted/tizen/unified/20210604.120728accepted/tizen/7.0/unified/hotfix/20221116.110752accepted/tizen/7.0/unified/20221110.063757accepted/tizen/6.5/unified/20211029.012718tizen_7.0_hotfixtizen_7.0tizen_6.5sandbox/sangjung/v2.0.0_backupsandbox/gichan/v2.0.0accepted/tizen_7.0_unified_hotfixaccepted/tizen_7.0_unifiedaccepted/tizen_6.5_unifiedGichan Jang1-1/+28
Add flatbuffers python packaging Change-Id: Idb93e673facd7c8eb91dad731547fec13af68101 Signed-off-by: Gichan Jang <gichan2.jang@samsung.com>
2021-05-13Bump to flatbuffers 2.0.0Gichan Jang3-2/+11
Bump to flatbuffers 2.0.0 Change-Id: I5f229796cccfdb60cd15c29996aff57f75bc5cdb Signed-off-by: Gichan Jang <gichan2.jang@samsung.com>
2021-05-13[Dist/Debian] Include .pc file in the dev-kit packageWook Song4-3/+15
This patch revises the packaging files for Debian/Ubuntu to include .pc file in the development kit package. Change-Id: Ib94702ace3a970cfe5ab435c34795ac03296e02e Signed-off-by: Wook Song <wook16.song@samsung.com>
2021-05-13[Dist/Tizen] Revise the rpm spec file to include .pc in the dev packageWook Song1-1/+11
This patch revises the rpm spec file to include the .pc file in the dev-kit package. Change-Id: I456b1fa494a38cd9cd1724863028a9b69ac7df4b Signed-off-by: Wook Song <wook16.song@samsung.com>
2021-05-13[PkgConfig] Add a template for .pc file generationWook Song1-0/+5
This patch adds a template file to use .pc file generation. Change-Id: Ia4841a6c4bcf3560e1156a606a85f0d2103ffebd Signed-off-by: Wook Song <wook16.song@samsung.com>
2021-05-13[Dist/Debian] Fix unmet dependency on libgcc-s1 in the PPA packageWook Song2-1/+8
Since PPA tries to use the latest gcc, the package released via PPA has an issue related to the unmet dependency on libgcc-s1. To fix it, this patch adds explicit build dependencies on gcc << 10. Change-Id: If76cde33d9b6aaeb051894b55c22f256bddc9a36 Signed-off-by: Wook Song <wook16.song@samsung.com>
2021-05-13Bump to flatbuffers 1.12.0Geunsik Lim2-2/+13
Change-Id: I228241b006edf9850e035a96b69fc6c305905280 Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
2021-05-13Add -fno-lto for creating static librarySemun Lee1-0/+3
When -flto option is used, static library doesn't contain symbol names in it. It may leads "undefined symbol" problem in some applications. Change-Id: I3ab5f644b72e504d9390311e4ce945d9ac28527e Signed-off-by: Semun Lee <semun.lee@samsung.com>
2021-05-13[Dist/Debian] Initial debianization for v1.11.0Wook Song8-0/+112
Initial debianization for v1.11.0. Change-Id: Ie27a37855e782277c60908ebea9b363d296d34a3 Signed-off-by: Wook Song <wook16.song@samsung.com>
2021-05-13Re-ported build-error workaround from 1.6.0MyungJoo Ham1-3/+6
There was a build-error fix in flatbuffers-1.6.0, which was in bash build script. They appear to lose it when they abandoned the bash build script. The following is the commit message of the workaround of flatbuffers 1.6.0 mainline: Work around flatbuffers flaky build The flatbuffers build ocasionally fails with the following error: /flatbuffers/flatbuffers-1.6.0/src/idl_parser.cpp /mnt/source/flatbuffers/flatbuffers-1.6.0/samples/sample_binary.cpp:19:17: error: 'MyGame' has not been declared using namespace MyGame::Sample; ^ /mnt/source/flatbuffers/flatbuffers-1.6.0/samples/sample_binary.cpp:19:25: error: 'Sample' is not a namespace-name using namespace MyGame::Sample; ^ /mnt/source/flatbuffers/flatbuffers-1.6.0/samples/sample_binary.cpp:19:31: error: expected namespace-name before ';' token using namespace MyGame::Sample; ^ /mnt/source/flatbuffers/flatbuffers-1.6.0/samples/sample_binary.cpp: In function 'int main(int, const char**)': /mnt/source/flatbuffers/flatbuffers-1.6.0/samples/sample_binary.cpp:25:3: error: 'flatbuffers' has not been declared flatbuffers::FlatBufferBuilder builder; ^ /mnt/source/flatbuffers/flatbuffers-1.6.0/samples/sample_binary.cpp:28:26: error: 'builder' was not declared in this scope auto weapon_one_name = builder.CreateString("Sword"); ^ ... Disabling the BUILD_TESTS target removes the flakiness and makes the compilation faster. Reviewed-on: http://gerrit.cloudera.org:8080/12886 Reviewed-by: Tim Armstrong <tarmstrong@cloudera.com> Tested-by: Tim Armstrong <tarmstrong@cloudera.com> Change-Id: Ica8300d7edad7d10adad311cc22c18b8987b1f9b Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
2021-05-13[Dist/Tizen] Add rpm spec and manifest files to support GBSParichay Kapoor2-0/+71
This PR provides tizen packages, flatbuffers and flatbuffers-devel. Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
2021-05-10More missing version changesHEADv2.0.0masterWouter van Oortmerssen5-13/+13
2021-05-10Dart generated code updateWouter van Oortmerssen1-2/+95
Change-Id: I317d731d17d733088cad608364b614bff8151c36
2021-05-10Swift/Kotlin generated code version updatesWouter van Oortmerssen11-30/+30
Change-Id: I035163cb5edd087a190bb518e686c79887241383
2021-05-10C++/Rust version changesWouter van Oortmerssen6-10/+10
2021-05-10C#/Java generated code version updatesWouter van Oortmerssen40-40/+40
2021-05-10Updated main version numbers to 2.0Wouter van Oortmerssen18-21/+21
2021-05-10[Go] Add missing namespace when using Object API (#6633)mogemimi1-1/+3
2021-05-10Fix reverse iterators for Vector and Array (#6626)Vladimir Glavnyy2-8/+84
This commit fixes two serious issues connected with reverse iterators: 1. Vector's rbegin/rend was incompatible with std::reverse_iterator::base(); 2. Array's rend() was incorrect, it based on end() instead of begin().
2021-05-07[Lua] manipulate byte array as string (#6624)罗泽轩5-0/+84
* [Lua] manipulate byte array as string Sometimes it would be more effective than reading byte by byte * change according to the review * update
2021-05-06[C++] Fix union copy constructor to work with nested structs (#6552) (#6607)Piotr Dziwiński1-1/+2
2021-05-06Updates swift generated monster sample file (#6616)mustiikhalil5-22/+28
Updates swift generated monster sample file Adds frozen attribute
2021-05-05[Lua] Avoid infinite loop when creating empty string (#6614)罗泽轩2-1/+20
* [Lua] Avoid infinite loop when creating empty string * [Lua] Check empty string output
2021-05-05Added support for Lua 5.1, 5.2 and 5.4 (#6606)Derek Bailey4-14/+38
This adds basic support for different Lua versions. For Lua 5.2 and Lua 5.3, both the Bit32 and Compat53 Lua modules must be installed for it to work. You can typically get these on Linux using apt install lua-compat53 lua-bit32 For Lua 5.4, it should work as is, as it is a clean superset of Lua 5.3, which is what the original Lua Flatbuffers supported.
2021-05-03[TS] Remove wrong and obsolete NS prefix use (#6604)Björn Harrtell8-3/+391
2021-05-03Fixed LuaJIT when not compiled with COMPAT mode (#6605)Derek Bailey4-15/+29
LuaJIT as installed by apt doesn't include the COMPAT mode for using Lua5.2 features. So this change just makes the flatbuffer code use a common implementation.
2021-05-03removed unneeded type prefixing (#6601)Kamil Rojewski2-21/+5
2021-05-02Bump Rust to 0.9.0 (#6610)Casper1-1/+1
Co-authored-by: Casper Neo <cneo@google.com>
2021-04-30[Lua] Add LuaJIT support (#6584)罗泽轩9-26/+253
* [Lua] Add LuaJIT support Here is the output of LuaTest.sh: Run with LuaJIT: built 100 512-byte flatbuffers in 0.16sec: 0.63/msec, 0.31MB/sec built 1000 512-byte flatbuffers in 0.08sec: 12.06/msec, 5.89MB/sec built 10000 512-byte flatbuffers in 0.80sec: 12.44/msec, 6.07MB/sec built 10000 512-byte flatbuffers in 0.33sec: 30.58/msec, 14.93MB/sec traversed 100 592-byte flatbuffers in 0.04sec: 2.51/msec, 1.42MB/sec traversed 1000 592-byte flatbuffers in 0.03sec: 31.52/msec, 17.79MB/sec traversed 10000 592-byte flatbuffers in 0.21sec: 48.77/msec, 27.53MB/sec Run with Lua 5.3: built 100 512-byte flatbuffers in 0.02sec: 5.44/msec, 2.66MB/sec built 1000 512-byte flatbuffers in 0.17sec: 5.74/msec, 2.80MB/sec built 10000 512-byte flatbuffers in 1.75sec: 5.72/msec, 2.79MB/sec built 10000 512-byte flatbuffers in 1.38sec: 7.26/msec, 3.55MB/sec traversed 100 592-byte flatbuffers in 0.00sec: 27.64/msec, 15.60MB/sec traversed 1000 592-byte flatbuffers in 0.03sec: 30.46/msec, 17.20MB/sec traversed 10000 592-byte flatbuffers in 0.34sec: 29.62/msec, 16.72MB/sec * [Lua] Better usage description * update according to the review
2021-04-29Introduce new_from_vec in Rust (also fix formatting) (#6599)Casper3-15/+30
* Introduce new_from_vec in Rust (also fix formatting) Also, rename `new_with_capacity` to `with_capacity` to match how `Vec` does it. * bump rust version * mut_finished_buffer Co-authored-by: Casper Neo <cneo@google.com>
2021-04-29fix typo in CppUsage.md (#6595)shiyuge1-1/+1
Thanks!
2021-04-27[Lua] GetRootAs can accept strings. Made Luatest Benchmarks optional (#6593)Derek Bailey13-0/+71
2021-04-27Add advance feature indicators to reflection (#6546)Casper5-15/+88
* Add advance feature indicators to reflection * deserialize too * model advanced features as bitflags * use uint64_t instead of AdvancedFeatures * git clang format * initialize advanced_features_ * remove whitespace Co-authored-by: Casper Neo <cneo@google.com>
2021-04-26Rust Remove SafeSliceAccess for Arrays, and fix miri. (#6592)Casper5-21/+17
* Fix Miri flag passing and bump Rust version. * Fix Miri problems from Arrays PR. SafeSliceAccess was removed for Arrays. It's kind of unsound. It has two properties: 1. EndianSafe 2. Alignment 1 We only need 1. in create_vector_direct to memcpy data. We both 1. and 2. for accessing things with slices as buffers are built on &[u8] which is unaligned. Conditional compilation implements SafeSliceAccess for >1byte scalars (like f32) on LittleEndian machines which is wrong since they don't satisfy 2. This UB is still accessible for Vectors (though not exercised our tests) as it implements SafeSliceAccess. I'll fix this later by splitting SafeSliceAccess into its 2 properties. Co-authored-by: Casper Neo <cneo@google.com>
2021-04-26Mark endian_scalar as unsafe. (#6588)Casper20-100/+134
* Mark endian_scalar as unsafe. Also - removed the deprecated flexbuffer slice from example - fixed some cargo warnings * Assertions and read_scalar made unsafe * Clippy lints * Add to Safety Co-authored-by: Casper Neo <cneo@google.com>
2021-04-24[swift] Implements union strings (#6589)mustiikhalil19-281/+397
2021-04-22[Rust] Fix small mistyping (#6585)Alexander Zaitsev1-1/+1
Hi! Just a veeeeeery small fix in the Rust sample. No functionality is affected. That's not important at all but annoying for my eyes :)
2021-04-22[TS] Commit the generated tests code (#6579)罗泽轩2-0/+173
* [TS] Ignore generated monster_test_grpc files * [TS] Commit the generated tests code
2021-04-19chore: ensure bash is used to generate code (#6577)罗泽轩1-1/+1
In some platforms, like Ubuntu, `sh` is linked to `dash` but not `bash`.
2021-04-19[Lua] Fix EnforceNumberAndPack for bool type (#6576)罗泽轩2-1/+2
2021-04-19[TS] Remove duplicated build-ts ci (#6575)罗泽轩1-12/+0
Now we already have a real build-ts ci job, let's remove the commented one.
2021-04-19[Rust] Specify Minimum Supported Rust Version (#6573)Ádám Lippai1-0/+1
Related to #6572
2021-04-16[Rust] Add support for fixed size arrays (#6548)Eddie Linder25-77/+1442
* Add support for fixed size arrays * clang-format * Update rust image to 1.51 to support const generics * Handle correctly big endian * Add fuzz tests and clean code * Add struct fuzz test and optimize struct arrays for api * Bump flatbuffers crate version
2021-04-15[Kotlin][FlexBuffers] Add support for Kotlin-iOS (#6564)Paulo Pinheiro1-0/+17
With this change, Flexbuffers for Kotlin now supports iOS(arm32, arm64, X64). WatchOS and tvOS not supported.
2021-04-15silenced clippy warning (#6565)Kamil Rojewski8-0/+15
2021-04-12[Kotlin] Bump kotlinx.benchmark dependency to 0.3.0 (#6560)Paulo Pinheiro3-7/+3
Kotlinx.benchmark project just abandoned bintray and moving to maven central, removing the artifacts from bintray and causing missing dependencies in our build. So we are updating the dependency to point to the new version on maven central. More information in: https://github.com/Kotlin/kotlinx-benchmark/commit/53ee45d0d914ceff111d3581ba3f5897fa897adc#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
2021-04-12[TS] Add Build TS to CI jobs (#6524)Björn Harrtell77-9040/+2908
* Add Build TS to CI jobs * Add npm compile step * Fix syntax * Add required code gen for TS * Exit on failure * Make TS code gen identical to test run * Remove duplicate TS code gen artifacts * Remove bad gitignore * Forgot parts of generate_code and make sure same settings for test run * Don't forget about the bat * Try and fix flatc args * Another attempt to fix args * Fix typo * Commit up to date code gen * Another attempt to fix sh/bat * Move -o param to after -I * Commit missing code gen file * Fix grpc code gen and test * Another grpc code gen fix * Rework to not use ts folder * Fix env vars in bat and make less churn * Move TS code gen to dedicated folder * Fix transpilation output folder and module paths * Fixes to code gen * Include generated js * Moved ts code gen * Remove test ts code gen folder
2021-04-12[Kotlin][FlexBuffers] Add support for Kotlin-JS (#6554)Paulo Pinheiro9-101/+195
Flexbuffers for Kotlin currently supports JVM and MacOS. This change introduces support to JS as well.
2021-04-06Default-empty vectors of enums (#6505)Casper12-28/+238
* disable clippy * Vector of enum default * swift and tests * git clang format * Rewrite enum parser checks * Remove Voids from more_defaults * vector enum swift * remove vector accessor from swift * clang format Co-authored-by: Casper Neo <cneo@google.com>
2021-04-05[CI] fixes buildkite (#6544)mustiikhalil3-4/+4