2018-09-26 05:20:22 +00:00
|
|
|
@echo off
|
2020-03-14 13:48:59 +00:00
|
|
|
cd /d "%~dp0.."
|
2018-09-26 05:20:22 +00:00
|
|
|
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
|
2020-03-07 05:53:11 +00:00
|
|
|
%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/node.proto
|
2020-01-08 02:03:39 +00:00
|
|
|
%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/ledger.proto
|
|
|
|
%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/query.proto
|
2018-09-26 05:20:22 +00:00
|
|
|
|
2018-10-09 03:52:51 +00:00
|
|
|
echo all done
|