File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,7 @@ project.xcworkspace
33xcuserdata
44.build
55third_party /**
6+ Plugin /Packages /**
7+ Plugin /protoc- *
8+ Plugin /swiftgrpc.log
9+ Plugin /echo. * .swift
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ build: clear
99 cp .build/debug/protoc-gen-swift .
1010
1111test : build
12- protoc ../Examples/Echo/echo.proto --proto_path=../Examples/Echo --swiftgrpc_out=.
12+ protoc ../Examples/Echo/echo.proto --proto_path=../Examples/Echo --plugin=./protoc-gen-swiftgrpc -- swiftgrpc_out=.
1313 diff echo.client.pb.swift ../Examples/Echo/Generated/echo.client.pb.swift
1414 diff echo.server.pb.swift ../Examples/Echo/Generated/echo.server.pb.swift
1515
Original file line number Diff line number Diff line change @@ -6,11 +6,15 @@ the Protocol Buffer Compiler.
66It is built with the Swift Package Manager and the included
77Makefile. The resulting binary is named ` protoc-gen-swiftgrpc `
88and can be called from ` protoc ` by adding the ` --swiftgrpc_out `
9- command-line option. For example, here's an invocation from
10- the Makefile:
9+ command-line option and ` --plugin ` option . For example, here's an
10+ invocation from the Makefile:
1111
12- protoc ../Examples/Echo/echo.proto --proto_path=../Examples/Echo --swiftgrpc_out=.
12+ protoc ../Examples/Echo/echo.proto --proto_path=../Examples/Echo --plugin=./protoc-gen-swiftgrpc --swiftgrpc_out=.
1313
1414The plugin uses template files in the [ Templates] ( Templates ) directory.
1515These files are compiled into the ` protoc-gen-swiftgrpc ` plugin executable.
1616
17+ The Swift gRPC plugin can be installed by placing the
18+ ` protoc-gen-swiftgrpc ` binary into one of the directories in your
19+ path. Specifying ` --swiftgrpc_out ` to ` protoc ` will automatically
20+ search the ` PATH ` environment variable for this binary.
You can’t perform that action at this time.
0 commit comments