Skip to content
Snippets Groups Projects
  1. Aug 24, 2016
  2. Jul 26, 2016
    • Jason Sanmiya's avatar
      Fix Mac build. · 30c07f4e
      Jason Sanmiya authored
      The new line in the set(CMAKE_CXX_FLAGS...) line was getting insert
      verbatim into the Makefile. Makefiles don't like new lines in their
      assignment operators.
      
      The newline escape fix works for CMake 3.0 and above, but since
      we support 2.x, we need to use the legacy solution, which is to
      split into two separate statements.
      
      Tested: cmake -G"Unix Makefiles" works now on Mac.
      Change-Id: I6f4655981b85087c4760c3d26ed0c97c4469ba93
      30c07f4e
  3. Jul 22, 2016
  4. Jul 20, 2016
  5. Jul 01, 2016
  6. Jun 29, 2016
  7. May 01, 2016
  8. Apr 13, 2016
  9. Apr 04, 2016
  10. Apr 02, 2016
  11. Mar 14, 2016
  12. Mar 03, 2016
  13. Feb 11, 2016
  14. Jan 19, 2016
  15. Dec 21, 2015
  16. Dec 02, 2015
  17. Dec 01, 2015
  18. Nov 26, 2015
  19. Nov 17, 2015
    • Johan Euphrosine's avatar
      flatbuffers/cmake: move build_flatbuffers to a standalone file · 331d2d83
      Johan Euphrosine authored
      So that it could be included from both flatbuffers CMakeLists.txt and
      FindFlatBuffers.cmake.
      
      Change-Id: Ie16a879beef9367cd6fd9b2d2157044841a7cdbc
      331d2d83
    • Shuhei Taunma's avatar
      (PHP) add experimental support for PHP language. · 5ce86826
      Shuhei Taunma authored
      * codegen for all basic features: WIP (probably implemented all basic feature)
      * JSON parsing: NO
      * Simple mutation: NO
      * Reflection: NO
      * Buffer verifier: NO (will be add later)
      * Testing: basic: Yes
      * Testing: fuzz: Yes
      * Performance: Not bad
      * Platform: Supported Linux, OS X, Windows (has 32bit integer limitation)
      * Engine Unity: No
      
      flatc --php monster_test.fbs
      
        <?php
        //include neccessary files.
        $fbb = new Google\FlatBuffers\FlatBufferBuilder(1);
        $str = $fbb->createString("monster");
        \MyGame\Example\Monster::startMonster($fbb);
        \MyGame\Example\Monster::addHp($fbb, 80);
        \MyGame\Example\Monster::addName($fbb, $str);
        $mon = \MyGame\Example\Monster::endMonster($fbb);
        $fbb->finish($mon);
        echo $fbb->sizedByteArray();
      
      PHP 5.4 higher
      
      Currently, we do not register this library to packagist as still experimental and versioning problem.
      If you intended to use flatbuffers with composer. add repostiories section to composer.json like below.
      
        "repositories": [{
          "type": "vcs",
          "url": "https://github.com/google/flatbuffers"
        }],
      
       and just put google/flatbuffers.
      
        "require": {
          "google/flatbuffers": "*"
        }
      
      * PHP's integer is platform dependant. we strongly recommend use 64bit machine
        and don't use uint, ulong types as prevent overflow issue.
        ref: http://php.net/manual/en/language.types.integer.php
      
      * php don't support float type. floating point numbers are always parsed as double precision internally.
        ref: http://php.net/manual/en/language.types.float.php
      
      * ByteBuffer is little bit slow implemnentation due to many chr/ord function calls. Especially encoding objects.
        This is expected performance as PHP5 has parsing arguments overhead. probably we'll add C-extension.
      
      Basically, PHP implementation respects Java and C# implementation.
      
      Note: ByteBuffer and FlatBuffersBuilder class are not intended to use other purposes.
            we may change internal API foreseeable future.
      
      PSR-2, PSR-4 standards.
      
      Implemented simple assertion class (respect JavaScript testcase implementation) as we prefer small code base.
      this also keeps CI iteration speed.
      
      we'll choose phpunit or something when the test cases grown.
      5ce86826
  20. Nov 14, 2015
    • Jon Simantov's avatar
      Store the dirs you pass into build_flatbuffers as properties. · 65c9b355
      Jon Simantov authored
      This allows you to query the generated target for those properties
      later, so dependent modules can refer to the directories to, for example,
      add them to the include_directories.
      
      Change-Id: I7a6bd34c5c1d08e2ea69b5ad845223297cad1159
      65c9b355
    • Jon Simantov's avatar
      Added build_flatbuffers function to CMake. · f2949c3f
      Jon Simantov authored
      This function is designed to be called by projects that use FlatBuffers.
      It takes a list of FlatBuffers schemas and a list of schema include
      directories, and generates build rules to create generated headers
      and/or binary schemas for those files, as well as optionally copying
      all of the text schemas into a directory for your use (for example if
      you need to parse text schemas within your app).
      
      See function comments for more details.
      
      Change-Id: I181684b916e91d965e14849d8f83ec2c83e9a4a4
      f2949c3f
  21. Oct 15, 2015
    • Evan Wallace's avatar
      Add support for JavaScript code generation · 224e33ed
      Evan Wallace authored
      This adds a JavaScript language target. The generated JavaScript uses Google
      Closure Compiler type annotations and can be compiled using the advanced
      compilation mode, which performs type checking and optimizations such as
      inlining and dead code elimination. The generated JavaScript also exports all
      generated symbols for use with Node.js and RequireJS. This export behavior
      can be turned off with the --no-js-exports flag for use with Google Closure
      Compiler.
      224e33ed
  22. Aug 03, 2015
  23. Jul 22, 2015
  24. Jun 16, 2015
  25. Jun 15, 2015
  26. May 28, 2015
  27. May 12, 2015
    • rw's avatar
      Port FlatBuffers to Python. · 48dfc69e
      rw authored
      Implement code generation and self-contained runtime library for Python.
      
      The test suite verifies:
        - Correctness of generated Python code by comparing output to that of
          the other language ports.
        - The exact bytes in the Builder buffer during many scenarios.
        - Vtable deduplication correctness.
        - Edge cases for table construction, via a fuzzer derived from the Go
          implementation.
        - All code is simultaneously valid in Python 2.6, 2.7, and 3.4.
      
      The test suite includes benchmarks for:
        - Building 'gold' data.
        - Parsing 'gold' data.
        - Deduplicating vtables.
      
      All tests pass on this author's system for the following Python
      implementations:
        - CPython 2.6.7
        - CPython 2.7.8
        - CPython 3.4.2
        - PyPy 2.5.0 (CPython 2.7.8 compatible)
      48dfc69e
  28. May 04, 2015
  29. Apr 28, 2015
  30. Apr 15, 2015
  31. Apr 02, 2015
    • Advay Mengle's avatar
      Generate appropriate schema doc comments from .proto files · 3ad85363
      Advay Mengle authored
      - Add parse handling of .proto struct and field doc comments (enums and
      their values were already handled)
      - Add FBS generation handling of doc comments for structs, their
      fields, enums, and their values (requires linking idl_gen_general in
      the test binary build)
      - Tested using test.proto|golden with doc comments added.  Xcode run of
      flattest passes.
      
      Change-Id: Idff64dd8064afba227174ab77d2c7be22d006628
      3ad85363
  32. Feb 17, 2015
    • Alex Ames's avatar
      Added the hash attribute to ints and longs. · d575321e
      Alex Ames authored
      FlatBuffer schema files can now optionally specify a hash attribute that
      will allow someone writing json files to enter a string to be hashed
      rather than a specific value. The hashing algorithm to use is specified
      by the schema.
      
      Currently the only algorithms are fnv1 and fnv1a. There are 32 bit and
      64 variatns for each. Additionally, a hashing command line tool was
      added so that you can see what a string will hash to without needing to
      inspect the flatbuffer binary blob.
      
      Change-Id: I0cb359d0e2dc7d2dc1874b446dc19a17cc77109d
      d575321e
  33. Feb 09, 2015
  34. Jan 07, 2015
  35. Oct 24, 2014
Loading