Home
last modified time | relevance | path

Searched full:flatc (Results 1 – 25 of 86) sorted by relevance

1234

/external/flatbuffers/android/jni/
Drun_flatc.py22 # Paths to search for flatc relative to the current working directory.
26 """Script that finds and runs flatc built from source."""
31 flatc = ''
35 'flatc' + EXECUTABLE_EXTENSION)
37 flatc = current
39 if not flatc:
40 sys.stderr.write('flatc not found\n')
42 command = [flatc] + sys.argv[2:]
Dinclude.mk28 # has a dependency on the flatc compiler which will be built if necessary.
63 $(wildcard $(FLATBUFFERS_FLATC_PATH)/*/flatc.exe) \
64 $(wildcard $(FLATBUFFERS_FLATC_PATH)/flatc.exe))
68 FLATBUFFERS_FLATC := $(FLATBUFFERS_FLATC_PATH)/flatc
73 $(wildcard $(FLATBUFFERS_FLATC_PATH)/*/flatc) \
74 $(wildcard $(FLATBUFFERS_FLATC_PATH)/flatc))
117 $(MAKE) flatc
123 xcodebuild -target flatc
128 $(error flatc binary not found!)
132 # Generate a build rule for flatc.
/external/flatbuffers/tests/
Dgenerate_code.sh18 ../flatc --cpp --java --csharp --dart --go --binary --lobster --lua --python --js --ts --php --rust…
19 ../flatc --cpp --java --csharp --dart --go --binary --lobster --lua --python --js --ts --php --rust…
20 ../flatc --cpp --java --js --ts --php --gen-mutable --reflect-names --gen-object-api --gen-compare …
21 ../flatc -b --schema --bfbs-comments --bfbs-builtins -I include_test monster_test.fbs
22 ../flatc --jsonschema --schema -I include_test monster_test.fbs
23 ../flatc --cpp --java --csharp --python --gen-mutable --reflect-names --gen-object-api --gen-compar…
25 ../flatc --cpp --lobster --gen-mutable --reflect-names --gen-object-api --gen-compare --cpp-ptr-typ…
26 ../flatc -b --schema --bfbs-comments --bfbs-builtins monster.fbs
Dgenerate_code.bat18 ..\%buildtype%\flatc.exe --cpp --java --csharp --go --binary --python --lobster --lua --js --rust -…
19 ..\%buildtype%\flatc.exe --cpp --java --csharp --go --binary --python --lobster --lua --js --rust -…
20 ..\%buildtype%\flatc.exe --cpp --java --js --ts --php --gen-mutable --reflect-names --gen-object-ap…
21 ..\%buildtype%\flatc.exe -b --schema --bfbs-comments --bfbs-builtins -I include_test monster_test.f…
22 ..\%buildtype%\flatc.exe --jsonschema --schema -I include_test monster_test.fbs || goto FAIL
26 …..\%buildtype%\flatc.exe --cpp --java --csharp --python --gen-mutable --reflect-names --gen-object…
32 ..\%buildtype%\flatc.exe --cpp --lobster --gen-mutable --reflect-names --gen-object-api --gen-compa…
33 ..\%buildtype%\flatc.exe -b --schema --bfbs-comments --bfbs-builtins monster.fbs || goto FAIL
DTypeScriptTest.sh21 ../flatc --ts --no-fb-import --gen-mutable -o ts -I include_test monster_test.fbs
22 ../flatc -b -I include_test monster_test.fbs unicode_test.json
26 ../flatc --ts --js --no-fb-import -o ts union_vector/union_vector.fbs
/external/flatbuffers/samples/
Dphp_sample.sh18 # and `flatc` to be built (using `cmake` in the root directory).
30 # Run `flatc`. Note: This requires you to compile using `cmake` from the
32 if [ -e ../flatc ]; then
33 ../flatc --php monster.fbs
34 elif [ -e ../Debug/flatc ]; then
35 ../Debug/flatc --php monster.fbs
37 echo 'flatc' could not be found. Make sure to build FlatBuffers from the \
Djavascript_sample.sh18 # and `flatc` to be built (using `cmake` in the root directory).
30 # Run `flatc`. Note: This requires you to compile using `cmake` from the
32 if [ -e ../flatc ]; then
33 ../flatc --js monster.fbs
34 elif [ -e ../Debug/flatc ]; then
35 ../Debug/flatc --js monster.fbs
37 echo 'flatc' could not be found. Make sure to build FlatBuffers from the \
Dpython_sample.sh18 # and `flatc` to be built (using `cmake` in the root directory).
30 # Run `flatc`. Note: This requires you to compile using `cmake` from the
32 if [ -e ../flatc ]; then
33 ../flatc --python monster.fbs
34 elif [ -e ../Debug/flatc ]; then
35 ../Debug/flatc --python monster.fbs
37 echo 'flatc' could not be found. Make sure to build FlatBuffers from the \
Ddart_sample.sh18 # and `flatc` to be built (using `cmake` in the root directory).
32 # Run `flatc`. Note: This requires you to compile using `cmake` from the
34 if [ -e ../../flatc ]; then
35 ../../flatc --dart ../../samples/monster.fbs
36 elif [ -e ../../Debug/flatc ]; then
37 ../../Debug/flatc --dart ../../samples/monster.fbs
39 echo 'flatc' could not be found. Make sure to build FlatBuffers from the \
Dcsharp_sample.sh18 # and `flatc` to be built (using `cmake` in the root directory).
30 # Run `flatc`. Note: This requires you to compile using `cmake` from the
32 if [ -e ../flatc ]; then
33 ../flatc --csharp --gen-mutable monster.fbs
34 elif [ -e ../Debug/flatc ]; then
35 ../Debug/flatc --csharp --gen-mutable monster.fbs
37 echo 'flatc' could not be found. Make sure to build FlatBuffers from the \
Djava_sample.sh18 # and `flatc` to be built (using `cmake` in the root directory).
30 # Run `flatc`. Note: This requires you to compile using `cmake` from the
32 if [ -e ../flatc ]; then
33 ../flatc --java --gen-mutable monster.fbs
34 elif [ -e ../Debug/flatc ]; then
35 ../Debug/flatc --java --gen-mutable monster.fbs
37 echo 'flatc' could not be found. Make sure to build FlatBuffers from the \
Dgo_sample.sh18 # and 'flatc' to be built (using `cmake` in the root directory).
30 # Run `flatc`. Note: This requires you to compile using `cmake` from the
32 if [ -e ../flatc ]; then
33 ../flatc --go monster.fbs
34 elif [ -e ../Debug/flatc ]; then
35 ../Debug/flatc --go monster.fbs
37 echo 'flatc' could not be found. Make sure to build FlatBuffers from the \
/external/flatbuffers/src/
Dflatc_main.cpp17 #include "flatbuffers/flatc.h"
21 static void Warn(const flatbuffers::FlatCompiler *flatc, in Warn() argument
23 (void)flatc; in Warn()
28 static void Error(const flatbuffers::FlatCompiler *flatc, in Error() argument
32 if (usage) { printf("%s", flatc->GetUsageString(g_program_name).c_str()); } in Error()
100 flatbuffers::FlatCompiler flatc(params); in main() local
101 return flatc.Compile(argc - 1, argv + 1); in main()
/external/flatbuffers/CMake/
DBuildFlatBuffers.cmake21 # passed to flatc via the -I parameter.
61 set(FLATC ${FLATBUFFERS_FLATC_EXECUTABLE}) variable
63 set(FLATC_TARGET flatc)
64 set(FLATC flatc) variable
98 COMMAND ${FLATC} ${FLATC_SCHEMA_ARGS}
111 COMMAND ${FLATC} -b --schema
/external/flatbuffers/
DCMakeLists.txt24 "Add '-fsanitize' flags to 'flattests' and 'flatc' targets."
90 src/flatc.cpp
266 add_executable(flatc ${FlatBuffers_Compiler_SRCS}) target
267 target_compile_options(flatc PRIVATE "${FLATBUFFERS_PRIVATE_CXX_FLAGS}")
269 add_fsanitize_to_target(flatc ${FLATBUFFERS_CODE_SANITIZE})
272 set(FLATBUFFERS_FLATC_EXECUTABLE $<TARGET_FILE:flatc>)
275 # Make flatc.exe not depend on runtime dlls for easy distribution.
276 target_compile_options(flatc PUBLIC $<$<CONFIG:Release>:/MT>)
309 DEPENDS flatc)
319 DEPENDS flatc)
[all …]
DBUILD17 # Public flatc library to compile flatbuffer files at runtime.
52 # Public flatc compiler library.
57 "src/flatc.cpp",
64 "include/flatbuffers/flatc.h",
73 # Public flatc compiler.
75 name = "flatc",
Dbuild_defs.bzl4 flatc_path = "@com_github_google_flatbuffers//:flatc"
38 outs: Output files from flatc.
44 flatc_args: Optional, list of additional arguments to pass to flatc.
140 flatc_args: Optional list of additional arguments to pass to flatc
157 ** Because the genrule used to call flatc does not have any trivial way of
159 --gen-includes (the default) being defined for flatc, the --gen-includes
161 to the flatbuffer_cc_library defined alongside the flatc included Fileset.
Dconanfile.py62 self.copy(pattern="flatc*", dst="bin", src="bin")
72 """Collect built libraries names and solve flatc path.
75 self.user_info.flatc = os.path.join(self.package_folder, "bin", "flatc")
/external/tensorflow/tensorflow/lite/schema/
Dupgrade_schema.py55 # RAII Temporary Directory, because flatc doesn't allow direct use of tempfiles.
81 "../../../../flatbuffers/flatc", # not bazel
82 "../../../../external/flatbuffers/flatc" # bazel
109 If `input_file` is in bin, then we must use flatc to convert the schema
121 RuntimeError: When flatc cannot be invoked.
132 # Convert to json using flatc
140 raise RuntimeError("flatc failed to convert from binary to json.")
159 RuntimeError: When flatc fails to convert json data to binary.
174 raise RuntimeError("flatc failed to convert upgraded json to binary.")
/external/tensorflow/tensorflow/lite/
Dbuild_def.bzl187 flatc = "@flatbuffers//:flatc"
197 (src, flatc, schema, out),
198 tools = [flatc],
210 flatc = "@flatbuffers//:flatc"
220 (src, flatc, schema, out),
221 tools = [flatc],
/external/flatbuffers/docs/source/
DRustUsage.md21 compiler (e.g. `flatc --rust mygame.fbs` or via helpers listed in "Useful
38 This test file requires `flatc` to be present. To review how to build the project,
56 schema with the `--rust` option to `flatc`. Then you can import both FlatBuffers
169 * [flatc-rust](https://github.com/frol/flatc-rust) - FlatBuffers compiler
170 (flatc) as API for transparent `.fbs` to `.rs` code-generation via Cargo
DTutorial.md11 - Use the `flatc` FlatBuffer compiler.
261 [these instructions](@ref flatbuffers_guide_building) to build `flatc`, the
264 Once `flatc` is built successfully, compile the schema for your language:
271 Please be aware of the difference between `flatc` and `flatcc` tools.
278 ./../flatc --cpp monster.fbs
284 ./../flatc --java monster.fbs
290 ./../flatc --csharp monster.fbs
296 ./../flatc --go monster.fbs
302 ./../flatc --python monster.fbs
308 ./../flatc --js monster.fbs
[all …]
/external/flatbuffers/tests/docker/languages/
DDockerfile.testing.node.10_13_04 RUN cp flatc_debian_stretch flatc
7 RUN ../flatc -b -I include_test monster_test.fbs unicode_test.json
DDockerfile.testing.node.11_2_04 RUN cp flatc_debian_stretch flatc
7 RUN ../flatc -b -I include_test monster_test.fbs unicode_test.json
/external/flatbuffers/tests/docker/
DDockerfile.testing.build_flatc_debian_stretch8 RUN make flatc
9 RUN ls flatc

1234