瀏覽代碼

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)))