2
0
Эх сурвалжийг харах

Move common protobuf .protos to common area under Examples/Google, improve setup scripts.

Tim Burks 8 жил өмнө
parent
commit
7f5f217d8e

+ 3 - 1
Examples/Google/Datastore/RUNME

@@ -7,7 +7,9 @@
 # protoc-gen-swiftgrpc binaries and assumes that protoc-gen-swift 
 # is installed in $HOME/local/bin.
 
-git clone http://github.com/googleapis/googleapis
+if [ ! -d "googleapis" ]; then
+  git clone http://github.com/googleapis/googleapis
+fi
 
 protoc \
  	googleapis/google/datastore/v1/datastore.proto \

+ 4 - 2
Examples/Google/NaturalLanguage/RUNME

@@ -7,7 +7,9 @@
 # protoc-gen-swiftgrpc binaries and assumes that protoc-gen-swift 
 # is installed in $HOME/local/bin.
 
-git clone http://github.com/googleapis/googleapis
+if [ ! -d "googleapis" ]; then
+  git clone http://github.com/googleapis/googleapis
+fi
 
 protoc \
  	google/cloud/language/v1/language_service.proto \
@@ -15,7 +17,7 @@ protoc \
 	google/api/http.proto \
 	google/protobuf/descriptor.proto \
  	-Igoogleapis \
-	-Iprotoc/include \
+	-I../common/include \
 	--swift_out=googleapis \
 	--swiftgrpc_out=googleapis
 

+ 0 - 0
Examples/Google/NaturalLanguage/protoc/include/google/protobuf/any.proto → Examples/Google/common/include/google/protobuf/any.proto


+ 0 - 0
Examples/Google/NaturalLanguage/protoc/include/google/protobuf/api.proto → Examples/Google/common/include/google/protobuf/api.proto


+ 0 - 0
Examples/Google/NaturalLanguage/protoc/include/google/protobuf/compiler/plugin.proto → Examples/Google/common/include/google/protobuf/compiler/plugin.proto


+ 0 - 0
Examples/Google/NaturalLanguage/protoc/include/google/protobuf/descriptor.proto → Examples/Google/common/include/google/protobuf/descriptor.proto


+ 0 - 0
Examples/Google/NaturalLanguage/protoc/include/google/protobuf/duration.proto → Examples/Google/common/include/google/protobuf/duration.proto


+ 0 - 0
Examples/Google/NaturalLanguage/protoc/include/google/protobuf/empty.proto → Examples/Google/common/include/google/protobuf/empty.proto


+ 0 - 0
Examples/Google/NaturalLanguage/protoc/include/google/protobuf/field_mask.proto → Examples/Google/common/include/google/protobuf/field_mask.proto


+ 0 - 0
Examples/Google/NaturalLanguage/protoc/include/google/protobuf/source_context.proto → Examples/Google/common/include/google/protobuf/source_context.proto


+ 0 - 0
Examples/Google/NaturalLanguage/protoc/include/google/protobuf/struct.proto → Examples/Google/common/include/google/protobuf/struct.proto


+ 0 - 0
Examples/Google/NaturalLanguage/protoc/include/google/protobuf/timestamp.proto → Examples/Google/common/include/google/protobuf/timestamp.proto


+ 0 - 0
Examples/Google/NaturalLanguage/protoc/include/google/protobuf/type.proto → Examples/Google/common/include/google/protobuf/type.proto


+ 0 - 0
Examples/Google/NaturalLanguage/protoc/include/google/protobuf/wrappers.proto → Examples/Google/common/include/google/protobuf/wrappers.proto