generated from root/miduo_server
17 lines
452 B
Batchfile
17 lines
452 B
Batchfile
@echo off
|
|
|
|
set cdy=%cd%
|
|
|
|
set protocExe=%cdy%\tools\protoc-2.5.0-win32\protoc.exe
|
|
set protocGenLua=%cdy%\tools\protoc-gen-lua\plugin\protoc-gen-lua.bat
|
|
set protoluaOut=%cdy%\lua_out
|
|
set _protoSrc=C:\ljsd_msy\protocol_jieling\protos\
|
|
|
|
|
|
cd C:\ljsd_msy\protocol_jieling\protos
|
|
|
|
for /r %%i in (*.proto)do (
|
|
%protocExe% --proto_path=%_protoSrc% --plugin=protoc-gen-lua=%protocGenLua% --lua_out=%protoluaOut% %%i
|
|
echo %protoluaOut%\%%~ni.lua--ok!
|
|
)
|
|
pause |