Ver código fonte

update build

joe 4 anos atrás
pai
commit
cff02d2fa2
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      build

+ 2 - 0
build

@@ -27,6 +27,8 @@ def main():
             if args.golang:
                 print('building ', file, ' golang ...')
                 os.system('protoc -I. --go_opt=paths=source_relative --go_out=. {}'.format(os.path.join(cur,file)))
+                if file[:3] == 'rpc':
+                    os.system('protoc -I. --go-grpc_opt=paths=source_relative --go-grpc_out=. {}'.format(os.path.join(cur, file)))
             if args.python:
                 print('building ', file, ' python ...')
                 os.system('protoc -I. --python_out=. {}'.format(os.path.join(cur, file)))