Home
last modified time | relevance | path

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

12345678910>>...18

/aosp_15_r20/external/flatbuffers/scripts/
H A Dgenerate_code.py28 "--flatc",
51 # Get the location of the flatc executable, reading from the first command line
54 ("flatc" if not platform.system() == "Windows" else "flatc.exe")
55 if not args.flatc
56 else args.flatc
59 # Find and assert flatc compiler is present.
63 assert flatc_path.exists(), "Cannot find the flatc compiler " + str(flatc_path)
71 # Execute the flatc compiler with the specified parameters
72 def flatc(options, schema, prefix=None, include=None, data=None, cwd=tests_path): function
88 flatc(
[all …]
H A Dutil.py26 # Get the location of the flatc executable, reading from the first command line
28 flatc_exe = Path("flatc" if not platform.system() == "Windows" else "flatc.exe")
30 # Find and assert flatc compiler is present.
34 assert flatc_path.exists(), "Cannot find the flatc compiler " + str(flatc_path)
36 # Execute the flatc compiler with the specified parameters
37 def flatc(options, schema, prefix=None, include=None, data=None, cwd=root_path): function
/aosp_15_r20/external/flatbuffers/.github/workflows/
H A Dbuild.yml37 - name: make flatc executable
39 chmod +x flatc
40 ./flatc --version
41 - name: flatc tests
42 run: python3 tests/flatc/main.py
46 name: Linux flatc binary ${{ matrix.cxx }}
47 path: flatc
51 run: zip Linux.flatc.binary.${{ matrix.cxx }}.zip flatc
56 files: Linux.flatc.binary.${{ matrix.cxx }}.zip
60 …run: echo "::set-output name=hashes::$(sha256sum Linux.flatc.binary.${{ matrix.cxx }}.zip | base64…
[all …]
/aosp_15_r20/out/soong/.intermediates/external/flatbuffers/flatc/linux_glibc_x86_64/
Dflatc.rsp1flatc/linux_glibc_x86_64/obj/external/flatbuffers/src/annotated_binary_text_gen.o out/soong/.inter…
/aosp_15_r20/external/flatbuffers/tests/flatc/
H A Dflatc_cpp_tests.py21 flatc(["--cpp", "foo.fbs"])
28 flatc(["--cpp", make_absolute("foo.fbs")])
35 flatc(["--cpp", "bar/bar.fbs"])
42 flatc(["--cpp", "-o", ".tmp", "foo.fbs"])
49 flatc(["--cpp", "-o", "../.tmp", "foo.fbs"])
58 flatc(["--cpp", "-o", ".tmp", "bar/bar.fbs"])
65 flatc(["--cpp", "--keep-prefix", "foo.fbs"])
71 flatc(["--cpp", "--keep-prefix", make_absolute("foo.fbs")])
77 flatc(["--cpp", "--keep-prefix", "bar/bar.fbs"])
83 flatc(["--cpp", "--keep-prefix", "-o", ".tmp", "foo.fbs"])
[all …]
H A Dflatc_test.py22 "--flatc", help="path of the Flat C compiler relative to the root directory"
34 # Get the location of the flatc executable, reading from the first command line
37 ("flatc" if not platform.system() == "Windows" else "flatc.exe")
38 if not args.flatc
39 else args.flatc
42 # Find and assert flatc compiler is present.
46 assert flatc_path.exists(), "Cannot find the flatc compiler " + str(flatc_path)
48 # Execute the flatc compiler with the specified parameters
49 def flatc(options, cwd=script_path): function
H A Dflatc_ts_tests.py22 flatc(["--ts", "foo.fbs"])
42 flatc(["--ts", "foo.fbs", "bar/bar.fbs"])
62 flatc(["--ts", "foo_with_ns.fbs"])
89 flatc(["--ts", "--gen-all", "foo.fbs"])
130 flatc(["--ts", "--ts-flat-files", "foo.fbs"])
147 flatc(["--ts", "--ts-flat-files", "foo_with_ns.fbs"])
164 flatc(["--ts", "--ts-flat-files", "foo.fbs", "bar/bar.fbs"])
192 flatc(["--ts", "--ts-flat-files", "--gen-all", "foo.fbs"])
218 flatc(["--ts", "--ts-flat-files", "--gen-all", "foo_with_ns.fbs"])
/aosp_15_r20/external/libtextclassifier/native/
H A DFlatBufferHeaders.bp21 tools: ["flatc"],
29 tools: ["flatc"],
41 tools: ["flatc"],
55 tools: ["flatc"],
63 tools: ["flatc"],
74 tools: ["flatc"],
82 tools: ["flatc"],
90 tools: ["flatc"],
101 tools: ["flatc"],
109 tools: ["flatc"],
[all …]
/aosp_15_r20/external/flatbuffers/CMake/
H A 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
157 # other flagc flags using the FLAGS option to change the behavior of the flatc
171 # to flatc.
206 set(FLATC ${FLATBUFFERS_FLATC_EXECUTABLE}) variable
208 set(FLATC_TARGET flatc)
[all …]
H A DCMakeLists_legacy.cmake.in51 "Add '-fsanitize' flags to 'flattests' and 'flatc' targets."
67 "Enable precompile headers support for 'flatbuffers' and 'flatc'. \"
158 src/flatc.cpp
414 add_executable(flatc ${FlatBuffers_Compiler_SRCS}) target
416 add_pch_to_target(flatc include/flatbuffers/pch/flatc_pch.h)
418 target_compile_options(flatc PRIVATE "${FLATBUFFERS_PRIVATE_CXX_FLAGS}")
420 add_fsanitize_to_target(flatc ${FLATBUFFERS_CODE_SANITIZE})
423 set(FLATBUFFERS_FLATC_EXECUTABLE $<TARGET_FILE:flatc>)
426 # Make flatc.exe not depend on runtime dlls for easy distribution.
427 target_compile_options(flatc PUBLIC $<$<CONFIG:Release>:/MT>)
[all …]
/aosp_15_r20/external/flatbuffers/tests/
H A DTypeScriptTest.py33 # Get the location of the flatc executable
34 flatc_exe = Path("flatc.exe" if is_windows else "flatc")
36 # Find and assert flatc compiler is present.
40 assert flatc_path.exists(), "Cannot find the flatc compiler " + str(flatc_path)
45 # Execute the flatc compiler with the specified parameters
46 def flatc(options, schema, prefix=None, include=None, data=None, cwd=tests_path): function
62 print("Invoking flatc...")
63 flatc(
69 flatc(
76 flatc(
[all …]
/aosp_15_r20/external/armnn/src/armnnDeserializer/
H A DCMakeLists.txt7 # flatc being found and used.
8 find_program(FLATC flatc
11 DOC "Path to 'flatc', the flatbuffers compiler")
13 if (NOT FLATC)
14 …message(SEND_ERROR "flatc not found. Specify the full path of the flatc executable with -DFLATC=<f…
16 message("Using flatc was from: ${FLATC}")
22 …COMMAND ${FLATC} -o ${CMAKE_CURRENT_SOURCE_DIR}/../../generated --cpp ${CMAKE_CURRENT_SOURCE_DIR}/…
/aosp_15_r20/external/armnn/src/armnnSerializer/
H A DCMakeLists.txt7 # flatc being found and used.
8 find_program(FLATC flatc
11 DOC "Path to 'flatc', the flatbuffers compiler")
13 if (NOT FLATC)
14 …message(SEND_ERROR "flatc not found. Specify the full path of the flatc executable with -DFLATC=<f…
16 message("Using flatc was from: ${FLATC}")
22 …COMMAND ${FLATC} -o ${CMAKE_CURRENT_SOURCE_DIR}/../../generated --cpp ${CMAKE_CURRENT_SOURCE_DIR}/…
/aosp_15_r20/external/executorch/build/
H A Dinstall_flatc.sh8 # This file builds the `flatc` commandline tool from the
20 readonly BUILT_FLATC="${BUILD_DIR}/flatc"
54 flatc_path="$(which flatc 2>/dev/null || echo '')"
56 # A flatc is already on the PATH.
58 echo -e "${GREEN}A compatible version of flatc is on the PATH" \
62 echo -e "${RED}WARNING: An incompatible version of flatc" \
64 echo -e " Required version: flatc version ${flatbuffers_version}"
83 echo "Building flatc under ${FLATBUFFERS_PATH}..."
87 (cd "${FLATBUFFERS_PATH}" && cmake --build "${BUILD_DIR}" --target flatc -j9)
93 echo -e "***** Run the following commands to add a compatible flatc"\
/aosp_15_r20/external/executorch/exir/_serialize/
H A Dbindings.cpp9 #include <flatbuffers/flatc.h> // @manual=fbsource//third-party/flatbuffers:flatc_library
17 const flatbuffers::FlatCompiler* /* flatc */, in Warn()
20 printf("flatc compiler warning: %s\n", warn.c_str()); in Warn()
24 const flatbuffers::FlatCompiler* /* flatc */, in Error()
28 throw std::runtime_error("Caught error in flatc compiler: " + err); in Error()
56 flatbuffers::FlatCompiler flatc(params); in PYBIND11_MODULE() local
63 return flatc.Compile(argv.size(), argv.data()); in PYBIND11_MODULE()
87 flatbuffers::FlatCompiler flatc(params); in PYBIND11_MODULE() local
98 return flatc.Compile(argv.size(), argv.data()); in PYBIND11_MODULE()
/aosp_15_r20/external/flatbuffers/
H A DCMakeLists.txt54 "Add '-fsanitize' flags to 'flattests' and 'flatc' targets."
70 "Enable precompile headers support for 'flatbuffers' and 'flatc'. \"
169 src/flatc.cpp
445 add_executable(flatc ${FlatBuffers_Compiler_SRCS}) target
447 add_pch_to_target(flatc include/flatbuffers/pch/flatc_pch.h)
450 target_link_libraries(flatc PRIVATE $<BUILD_INTERFACE:ProjectConfig>)
451 target_compile_options(flatc
459 add_fsanitize_to_target(flatc ${FLATBUFFERS_CODE_SANITIZE})
462 set(FLATBUFFERS_FLATC_EXECUTABLE $<TARGET_FILE:flatc>)
465 target_link_libraries(flatc PRIVATE -static)
[all …]
/aosp_15_r20/external/armnn/src/backends/cl/
H A DCMakeLists.txt7 find_program(FLATC flatc
9 DOC "Path to 'flatc', the flatbuffers compiler")
10 if (NOT FLATC)
11 …message(WARNING "flatc not found. Specify the full path of the flatc executable with -DFLATC=<flat…
16 …COMMAND ${FLATC} -o ${CMAKE_CURRENT_BINARY_DIR} --cpp ${CMAKE_CURRENT_SOURCE_DIR}/ClContextSchema.…
/aosp_15_r20/external/tensorflow/third_party/flatbuffers/
H A DBUILD.system8 # Public flatc library to compile flatbuffer files at runtime.
15 # Public flatc compiler library.
24 outs = ["flatc.bin"],
25 cmd = "ln -s $$(which flatc) $@",
28 # Public flatc compiler.
30 name = "flatc",
31 srcs = ["flatc.bin"],
/aosp_15_r20/external/flatbuffers/samples/
H A 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 \
H A 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 \
H A 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 \
H A 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 \
H A Ddart_sample.sh19 # and `flatc` to be built (using `cmake` in the root directory).
31 # Run `flatc`. Note: This requires you to compile using `cmake` from the
33 if [ -e ../flatc ]; then
34 ../flatc --dart -o ../dart/example/ monster.fbs
35 elif [ -e ../Debug/flatc ]; then
36 ../Debug/flatc --dart -o ../dart/example/ monster.fbs
38 echo 'flatc' could not be found. Make sure to build FlatBuffers from the \
H A 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 \
/aosp_15_r20/external/flatbuffers/docs/source/
H A DTutorial.md11 - Use the `flatc` FlatBuffer compiler.
272 [these instructions](@ref flatbuffers_guide_building) to build `flatc`, the
275 Once `flatc` is built successfully, compile the schema for your language:
282 Please be aware of the difference between `flatc` and `flatcc` tools.
288 ./../flatc --cpp monster.fbs
294 ./../flatc --java monster.fbs
300 ./../flatc --kotlin monster.fbs
306 ./../flatc --csharp monster.fbs
312 ./../flatc --go monster.fbs
318 ./../flatc --python monster.fbs
[all …]

12345678910>>...18