1. 19 Nov, 2015 2 commits
    • Stewart Miles's avatar
      Fixed typo in cmake build rule for Linux. · 6fe65326
      Stewart Miles authored
      Tested:
      Verified it's possible to build generated headers on Linux for Android.
      
      Change-Id: I82249a252cb851b978a177f4a4b92b527cc2bfd9
      6fe65326
    • Stewart Miles's avatar
      Workaround broken gnumake realpath on Windows. · 8212da5d
      Stewart Miles authored
      Also, added missing build scripts for flatc on Windows and fixed
      numerous issues in the flatbuffers/android/jni/include.mk makefile.
      
      Tested:
      Verified dependent project (motive) can generate flatbuffers headers
      with these changes on Android.
      
      Bug: 25780616
      
      Change-Id: I73f0dec8f7a6a7eb4e71951a8f1cd3e0d343a9ff
      8212da5d
  2. 17 Nov, 2015 1 commit
  3. 16 Nov, 2015 3 commits
  4. 14 Nov, 2015 2 commits
    • 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
  5. 13 Nov, 2015 2 commits
    • Stewart Miles's avatar
      Expand local file path to allow users to fix ndk-build · ef53aebf
      Stewart Miles authored
      local-source-file-path does not expand to correct file paths in
      some circumstances so some users override it.  Therefore
      flatbuffers_header_build_rules has been modified to generate rules
      that expand LOCAL_SRC_FILES values with flatbuffers_header_build_rules.
      
      Also, this overrides local-source-file-path to allow nest projects
      to build when NDK_OUT is set.
      
      Tested:
      Verified a dependent project continues to build.
      
      Bug: 25673744
      Change-Id: Ic90186fe96d6e4533f9f3b7ca9ef78084de08a7e
      ef53aebf
    • Stewart Miles's avatar
      Pass job server arguments (-jX) to make. · 4f96603e
      Stewart Miles authored
      When $(MAKE) is expanded via a macro "make" doesn't know whether
      $(MAKE) refers to an instance of the make app and therefore doesn't
      pass job server arguments down.  This change adds the + prefix to the
      command in the receipe in order to indicate $(MAKE) is another instance of
      make.
      
      Tested:
      Verified flatc builds in parallel from Android builds.
      
      Change-Id: I9f2f4f9680b818fdda7420a75a8bfa995b4644db
      4f96603e
  6. 12 Nov, 2015 2 commits
    • rw's avatar
      Python: Improve Builder user interface. · 3232727a
      rw authored
      + Add state to the Builder object to track if we are inside a table,
        and if we are finished building the buffer.
      + Use this data to check that a buffer is being built correctly.
      + Raise an exception if a buffer is not being built correctly.
      + Test that the exceptions happen as expected.
      
      Based on d236dea1.
      3232727a
    • rw's avatar
      Improve Builder user interface. · 2dfff15a
      rw authored
      + Add state to the Builder object to track if we are inside a table,
        and if we are finished building the buffer.
      + Use this data to check that a buffer is being built correctly.
      + Panic if a buffer is not being built correctly.
      + Test that the panics happen as expected.
      
      Based on d236dea1.
      2dfff15a
  7. 11 Nov, 2015 1 commit
  8. 10 Nov, 2015 2 commits
  9. 09 Nov, 2015 1 commit
  10. 07 Nov, 2015 1 commit
  11. 06 Nov, 2015 1 commit
  12. 29 Oct, 2015 2 commits
  13. 28 Oct, 2015 2 commits
  14. 22 Oct, 2015 1 commit
    • Stewart Miles's avatar
      Improved build rule generation for Android flatbuffer headers. · ed88f7de
      Stewart Miles authored
      * Added the ability to create a build target for generated headers.
      * Made it possible for generated header targets to depend upon each
        other or arbitrary build targets.
      
      Tested:
      Verified some pretty complex libraries with numerous flatbuffer schema
      dependencies build using this macro on Linux with the NDK.
      Bug: 25188384
      
      Change-Id: I846855a50808e58c34cdf7086e93e7ea0df69e0d
      ed88f7de
  15. 20 Oct, 2015 3 commits
  16. 19 Oct, 2015 6 commits
  17. 18 Oct, 2015 2 commits
  18. 15 Oct, 2015 6 commits