mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-07 22:03:40 +00:00
Added .proto parsing and convertion to .fbs.
Bug: 15777858 Change-Id: Iabef9b8c8044e593bb89510feebdee00d2f1840b Tested: on Linux and Windows.
This commit is contained in:
@@ -21,6 +21,10 @@ be generated for each file processed:
|
||||
|
||||
- `-j` : Generate Java classes. Skipped for data.
|
||||
|
||||
- `-n` : Generate C# classes. Skipped for data.
|
||||
|
||||
- `-g` : Generate Go classes. Skipped for data.
|
||||
|
||||
- `-b` : If data is contained in this file, generate a
|
||||
`filename.bin` containing the binary flatbuffer.
|
||||
|
||||
@@ -37,10 +41,18 @@ be generated for each file processed:
|
||||
fail (or none are specified) it will try to load relative to the path of
|
||||
the schema file being parsed.
|
||||
|
||||
- `-S` : Generate strict JSON (field names are enclosed in quotes).
|
||||
- `--strict-json` : Generate strict JSON (field names are enclosed in quotes).
|
||||
By default, no quotes are generated.
|
||||
|
||||
- `-P` : Don't prefix enum values in generated C++ by their enum type.
|
||||
- `--no-prefix` : Don't prefix enum values in generated C++ by their enum
|
||||
type.
|
||||
|
||||
- `-H` : Generate include statements for included schemas the generated file
|
||||
depends on (C++).
|
||||
- `--gen-includes` : Generate include statements for included schemas the
|
||||
generated file depends on (C++).
|
||||
|
||||
- `--proto`: Expect input files to be .proto files (protocol buffers).
|
||||
Output the corresponding .fbs file.
|
||||
Currently supports: `package`, `message`, `enum`.
|
||||
Does not support, but will skip without error: `import`, `option`.
|
||||
Does not support, will generate error: `service`, `extend`, `extensions`,
|
||||
`oneof`, `group`, custom options, nested declarations.
|
||||
|
||||
Reference in New Issue
Block a user