mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-20 21:17:31 +00:00
Adds windows swift support (#8622)
Adding support for windows requires the code generations to add a compiler statement to completely ignore GRPC code generation on windows Cleanup the project to use the main Package.swift to run tests instead of having it separate and includes the imports for GRPC within it. Adds windows swift ci
This commit is contained in:
@@ -394,6 +394,8 @@ grpc::string Generate(grpc_generator::File *file,
|
||||
GenerateClientClass(&*printer, &vars);
|
||||
printer->Print("\n");
|
||||
GenerateServerProtocol(service, &*printer, &vars);
|
||||
printer->Print("\n");
|
||||
printer->Print("#endif\n");
|
||||
return output;
|
||||
}
|
||||
|
||||
@@ -409,6 +411,7 @@ grpc::string GenerateHeader() {
|
||||
code += "// swiftlint:disable all\n";
|
||||
code += "// swiftformat:disable all\n";
|
||||
code += "\n";
|
||||
code += "#if !os(Windows)\n";
|
||||
code += "import Foundation\n";
|
||||
code += "import GRPC\n";
|
||||
code += "import NIO\n";
|
||||
|
||||
Reference in New Issue
Block a user