@@ -96,10 +96,10 @@ Additional options:
96
96
97
97
- ` --scoped-enums ` : Use C++11 style scoped and strongly typed enums in
98
98
generated C++. This also implies ` --no-prefix ` .
99
-
99
+
100
100
- ` --no-emit-min-max-enum-values ` : Disable generation of MIN and MAX
101
101
enumerated values for scoped enums and prefixed enums.
102
-
102
+
103
103
- ` --gen-includes ` : (deprecated), this is the default behavior.
104
104
If the original behavior is required (no include
105
105
statements) use ` --no-includes. `
@@ -238,5 +238,44 @@ Additional options:
238
238
239
239
- ` --python-typing ` : Generate Python type annotations
240
240
241
+ Additional gRPC options:
242
+
243
+ - ` --grpc-filename-suffix ` : ` [C++] ` An optional suffix for the generated
244
+ files' names. For example, compiling gRPC for C++ with
245
+ ` --grpc-filename-suffix=.fbs ` will generate ` {name}.fbs.h ` and
246
+ ` {name}.fbs.cc ` files.
247
+
248
+ - ` --grpc-additional-header ` : ` [C++] ` Additional headers to include in the
249
+ generated files.
250
+
251
+ - ` --grpc-search-path ` : ` [C++] ` An optional prefix for the gRPC runtime path.
252
+ For example, compiling gRPC for C++ with ` --grpc-search-path=some/path ` will
253
+ generate the following includes:
254
+
255
+ ``` cpp
256
+ #include " some/path/grpcpp/impl/codegen/async_stream.h"
257
+ #include " some/path/grpcpp/impl/codegen/async_unary_call.h"
258
+ #include " some/path/grpcpp/impl/codegen/method_handler.h"
259
+ ...
260
+ ```
261
+
262
+ - `--grpc-use-system-headers`: `[C++]` Whether to generate `#include <header>`
263
+ instead of `#include " header.h" ` for all headers when compiling gRPC for
264
+ C++. For example, compiling gRPC for C++ with `--grpc-use-system-headers`
265
+ will generate the following includes:
266
+
267
+ ```cpp
268
+ #include < some/path/grpcpp/impl/codegen/async_stream.h>
269
+ #include < some/path/grpcpp/impl/codegen/async_unary_call.h>
270
+ #include < some/path/grpcpp/impl/codegen/method_handler.h>
271
+ ...
272
+ ```
273
+
274
+ NOTE: This option can be negated with `--no-grpc-use-system-headers`.
275
+
276
+ - `--grpc-python-typed-handlers`: `[Python]` Whether to generate the typed
277
+ handlers that use the generated Python classes instead of raw bytes for
278
+ requests/responses.
279
+
241
280
NOTE: short -form options for generators are deprecated, use the long form
242
281
whenever possible.
0 commit comments