Bladeren bron

Explicitly specify protoc plugin in Plugin test target

This change explicitly specifies the swift grpc ptotoc plugin in the
`Plugin` directory, so users without `.` in the path can run the test
target.

Also add some build artifacts from the Plugin directory to .gitignore.
Andy Chou 8 jaren geleden
bovenliggende
commit
c8394bd370
2 gewijzigde bestanden met toevoegingen van 3 en 1 verwijderingen
  1. 2 0
      .gitignore
  2. 1 1
      Plugin/Makefile

+ 2 - 0
.gitignore

@@ -3,3 +3,5 @@ project.xcworkspace
 xcuserdata
 .build
 third_party/**
+Plugin/Packages/**
+Plugin/protoc-*

+ 1 - 1
Plugin/Makefile

@@ -9,7 +9,7 @@ build:  clear
 	cp .build/debug/protoc-gen-swift .
 
 test:	build
-	protoc ../Examples/Echo/echo.proto --proto_path=../Examples/Echo --swiftgrpc_out=. 
+	protoc ../Examples/Echo/echo.proto --proto_path=../Examples/Echo --plugin=./protoc-gen-swiftgrpc --swiftgrpc_out=. 
 	diff echo.client.pb.swift ../Examples/Echo/Generated/echo.client.pb.swift
 	diff echo.server.pb.swift ../Examples/Echo/Generated/echo.server.pb.swift