Skip to content

Commit 89f9596

Browse files
committed
add protobuf compilation batch script
1 parent 6158320 commit 89f9596

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[submodule "proto/_git/googleapis"]
2+
path = proto/_git/googleapis
3+
url = ../../googleapis/googleapis.git
4+
[submodule "proto/_git/protobuf"]
5+
path = proto/_git/protobuf
6+
url = ../../protocolbuffers/protobuf.git

ProtoBuildPy.bat

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
xcopy /e /Y proto\_git\googleapis\google\api proto\google\api\
2+
xcopy /e /Y proto\_git\protobuf\python\google\protobuf proto\google\protobuf\
3+
xcopy /Y anki_vector\messaging\*.proto proto\anki_vector\messaging\
4+
5+
python -m grpc_tools.protoc -I./proto --python_out=. --grpc_python_out=. ./proto/anki_vector/messaging/alexa.proto
6+
python -m grpc_tools.protoc -I./proto --python_out=. --grpc_python_out=. ./proto/anki_vector/messaging/behavior.proto
7+
python -m grpc_tools.protoc -I./proto --python_out=. --grpc_python_out=. ./proto/anki_vector/messaging/cube.proto
8+
python -m grpc_tools.protoc -I./proto --python_out=. --grpc_python_out=. ./proto/anki_vector/messaging/extensions.proto
9+
python -m grpc_tools.protoc -I./proto --python_out=. --grpc_python_out=. ./proto/anki_vector/messaging/external_interface.proto
10+
python -m grpc_tools.protoc -I./proto --python_out=. --grpc_python_out=. ./proto/anki_vector/messaging/messages.proto
11+
python -m grpc_tools.protoc -I./proto --python_out=. --grpc_python_out=. ./proto/anki_vector/messaging/nav_map.proto
12+
python -m grpc_tools.protoc -I./proto --python_out=. --grpc_python_out=. ./proto/anki_vector/messaging/response_status.proto
13+
python -m grpc_tools.protoc -I./proto --python_out=. --grpc_python_out=. ./proto/anki_vector/messaging/settings.proto
14+
python -m grpc_tools.protoc -I./proto --python_out=. --grpc_python_out=. ./proto/anki_vector/messaging/shared.proto

proto/_git/googleapis

Submodule googleapis added at 01c6815

proto/_git/protobuf

Submodule protobuf added at 723a85f

0 commit comments

Comments
 (0)