2018-09-26 05:20:22 +00:00
|
|
|
@echo off
|
|
|
|
set dir=.\gen\go
|
2018-10-09 03:52:51 +00:00
|
|
|
set exe=protoc
|
|
|
|
set gen=protoc-gen-go
|
|
|
|
|
|
|
|
if defined GOPATH set PATH=%PATH%;%GOPATH%\bin
|
|
|
|
|
|
|
|
where /q %exe% || echo missing %exe% && exit /B
|
|
|
|
where /q %gen% || echo missing %gen% && exit /B
|
2018-09-26 05:20:22 +00:00
|
|
|
|
|
|
|
if not exist %dir% mkdir %dir%
|
2019-09-26 10:06:06 +00:00
|
|
|
%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/common.proto
|
|
|
|
%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/error_details.proto
|
|
|
|
%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/tx_ledger.proto
|
2019-11-25 13:23:49 +00:00
|
|
|
%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/query_service.proto
|
2018-09-26 05:20:22 +00:00
|
|
|
|
2018-10-09 03:52:51 +00:00
|
|
|
echo all done
|