[gRPC] Add new options to control the gRPC code generation. (#8298)

The new options are:

-  `--grpc-filename-suffix` controls the suffix of the generated files;
-  `--grpc-use-system-headers` controls the type of C++ includes generated;
-  `--grpc-search-path` controls the directory that contains gRPC runtime;
-  `--grpc-additional-header` allows to provide additional dependencies for the generated code.
This commit is contained in:
Anton Bobukh
2024-05-15 08:17:40 -07:00
committed by GitHub
parent c696275eaf
commit 150644d7f4
5 changed files with 73 additions and 12 deletions

View File

@@ -35,6 +35,8 @@ struct Parameters {
bool generate_mock_code;
// By default, use "_generated.h"
std::string message_header_extension;
// Default: ".grpc.fb.h"
std::string service_header_extension;
};
// Return the prologue of the generated header file.