add setloadfile and setfileexists functions to flatbuffers

to allow for custom file loaders. The targeted use case is android runtime.

(from CL 116980408)

Change-Id: I8785c0acf714fab41d8f6fc9f1c52875423b8f5b
This commit is contained in:
Wouter van Oortmerssen
2016-03-30 17:34:52 -07:00
parent c8c0082413
commit e98b1912b3
4 changed files with 87 additions and 22 deletions

View File

@@ -26,6 +26,7 @@ set(FlatBuffers_Library_SRCS
src/idl_parser.cpp
src/idl_gen_text.cpp
src/reflection.cpp
src/util.cpp
)
set(FlatBuffers_Compiler_SRCS
@@ -68,6 +69,7 @@ set(FlatBuffers_Sample_Text_SRCS
include/flatbuffers/util.h
src/idl_parser.cpp
src/idl_gen_text.cpp
src/util.cpp
samples/sample_text.cpp
# file generated by running compiler on samples/monster.fbs
${CMAKE_CURRENT_BINARY_DIR}/samples/monster_generated.h