소스 검색

update build

joe 4 년 전
부모
커밋
cff02d2fa2
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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)))