| /third_party/flatbuffers/scripts/ |
| D | generate_code.py | 23 from util import flatc, root_path, tests_path, args, flatc_path 36 flatc( 63 # flatc options that are shared 113 flatc( 131 flatc( 137 flatc( 143 flatc( 151 flatc( 157 flatc( 164 flatc( [all …]
|
| D | util.py | 22 "--flatc", 46 # Get the location of the flatc executable, reading from the first command line 49 ("flatc" if not platform.system() == "Windows" else "flatc.exe") 50 if not args.flatc 51 else args.flatc 54 # Find and assert flatc compiler is present. 58 assert flatc_path.exists(), "Cannot find the flatc compiler " + str(flatc_path) 60 # Execute the flatc compiler with the specified parameters 61 def flatc(options, schema, prefix=None, include=None, data=None, cwd=tests_path): function
|
| D | generate_grpc_examples.py | 17 from util import flatc, root_path 32 flatc( 41 flatc( 50 flatc( 60 flatc(
|
| /third_party/flatbuffers/src/ |
| D | flatc_main.cpp | 24 #include "flatbuffers/flatc.h" 45 static void Warn(const flatbuffers::FlatCompiler *flatc, in Warn() argument 47 (void)flatc; in Warn() 52 static void Error(const flatbuffers::FlatCompiler *flatc, in Error() argument 55 if (usage && flatc) { in Error() 56 fprintf(stderr, "%s\n", flatc->GetShortUsageString(g_program_name).c_str()); in Error() 81 flatbuffers::FlatCompiler flatc(params); in main() local 83 flatc.RegisterCodeGenerator( in main() 89 flatc.RegisterCodeGenerator( in main() 94 flatc.RegisterCodeGenerator( in main() [all …]
|
| /third_party/flatbuffers/CMake/ |
| D | BuildFlatBuffers.cmake | 21 # passed to flatc via the -I parameter. 61 set(FLATC ${FLATBUFFERS_FLATC_EXECUTABLE}) variable 62 elseif(TARGET flatbuffers::flatc) 63 set(FLATC_TARGET flatbuffers::flatc) 64 set(FLATC flatbuffers::flatc) variable 66 set(FLATC_TARGET flatc) 67 set(FLATC flatc) variable 101 COMMAND ${FLATC} ${FLATC_SCHEMA_ARGS} 114 COMMAND ${FLATC} -b --schema 160 # other flagc flags using the FLAGS option to change the behavior of the flatc [all …]
|
| /third_party/mindspore/mindspore-src/source/cmake/external_libs/ |
| D | flatbuffers.cmake | 7 set(FLATC "${native_flatbuffer_path}/bin") variable 47 EXE flatc 56 EXE flatc 65 EXE flatc 76 add_executable(mindspore::flatc ALIAS flatbuffers::flatc) 91 set(FLATC mindspore::flatc) variable 102 COMMAND ${FLATC} --gen-mutable 106 DEPENDS ${FLATC} ${schema} 140 COMMAND ${FLATC} --template ${FLATBUFFER_TEMPALTE} --cpp 143 DEPENDS ${FLATC} ${schema} [all …]
|
| /third_party/flatbuffers/tests/flatc/ |
| D | flatc_cpp_tests.py | 21 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 …]
|
| D | flatc_test.py | 22 "--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
|
| D | flatc_ts_tests.py | 22 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"])
|
| /third_party/flatbuffers/tests/prototest/ |
| D | GenerateProtoGoldens.sh | 19 ./../../flatc --proto test.proto && mv test.fbs test_include.golden.fbs 20 ./../../flatc --proto --gen-all test.proto && mv test.fbs test.golden.fbs 21 ./../../flatc --proto --oneof-union test.proto && mv test.fbs test_union_include.golden.fbs 22 ./../../flatc --proto --gen-all --oneof-union test.proto && mv test.fbs test_union.golden.fbs 23 ./../../flatc --proto --gen-all --proto-namespace-suffix test_namespace_suffix test.proto && mv tes… 24 ./../../flatc --proto --gen-all --proto-namespace-suffix test_namespace_suffix --oneof-union test.p… 26 ./../../flatc --proto --keep-proto-id test.proto && mv test.fbs test_include_id.golden.fbs 27 ./../../flatc --proto --keep-proto-id --gen-all test.proto && mv test.fbs test_id.golden.fbs 28 ./../../flatc --proto --keep-proto-id --oneof-union test.proto && mv test.fbs test_union_include_id… 29 ./../../flatc --proto --keep-proto-id --gen-all --oneof-union test.proto && mv test.fbs test_union_… [all …]
|
| /third_party/flatbuffers/tests/ts/ |
| D | TypeScriptTest.py | 33 # 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 47 print("Invoking flatc on schema " + str(schema)) 69 flatc( 76 flatc( 83 flatc( [all …]
|
| /third_party/flatbuffers/samples/ |
| D | javascript_sample.sh | 18 # 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 \
|
| D | python_sample.sh | 18 # 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 \
|
| D | php_sample.sh | 18 # 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 \
|
| D | dart_sample.sh | 19 # 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 \
|
| D | csharp_sample.sh | 18 # 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 \
|
| D | java_sample.sh | 18 # 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 \
|
| D | go_sample.sh | 18 # 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 \
|
| D | kotlin_sample.sh | 18 # 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 34 ../flatc --kotlin --gen-mutable monster.fbs 35 elif [ -e ../Debug/flatc ]; then 36 ../Debug/flatc --kotlin --gen-mutable monster.fbs 38 echo 'flatc' could not be found. Make sure to build FlatBuffers from the \
|
| /third_party/flatbuffers/tests/ |
| D | DartTest.sh | 22 ../flatc --dart --gen-object-api -I include_test -o ../dart/test monster_test.fbs 23 ../flatc --dart --gen-object-api -I include_test/sub -o ../dart/test include_test/include_test1.fbs 24 ../flatc --dart --gen-object-api -I include_test -o ../dart/test include_test/sub/include_test2.fbs 31 ../flatc --dart --gen-object-api -o ./test ./test/list_of_enums.fbs 32 ../flatc --dart --gen-object-api -o ./test ./test/bool_structs.fbs
|
| /third_party/flatbuffers/ |
| D | BUILD.bazel | 54 # Public flatc library to compile flatbuffer files at runtime. 99 # Public flatc compiler library. 108 # Public flatc compiler. 110 name = "flatc", 113 "//src:flatc", 120 "include/flatbuffers/flatc.h",
|
| /third_party/flatbuffers/goldens/ |
| D | golden_utils.py | 17 from scripts.util import flatc 21 # wrap the generic flatc call with specifis for these goldens. 22 flatc( 28 # Run flatc from this location.
|
| /third_party/flatbuffers/tests/annotated_binary/ |
| D | generate_annotations.py | 28 # Get the location of the flatc executable, reading from the first command line 31 ("flatc" if not platform.system() == "Windows" else "flatc.exe") 34 # Find and assert flatc compiler is present. 38 assert flatc_path.exists(), "Cannot find the flatc compiler " + str(flatc_path)
|
| /third_party/flatbuffers/snap/ |
| D | snapcraft.yaml | 3 adopt-info: flatc 21 flatc: 45 flatc: 46 command: bin/flatc
|
| /third_party/flatbuffers/docs/source/ |
| D | IntermediateRepresentation.md | 4 as our intermediate representation. `flatc` parses `.fbs` files, checks them for 17 may be specified in flatc with `--bfbs-filenames=$PROJECT_ROOT`, or it will be 24 flatc -b --schema ${your_fbs_files} 35 TODO(cneo): Tutorial for building a flatc plugin.
|