15 lines
267 B
Batchfile
15 lines
267 B
Batchfile
@echo off
|
|
|
|
set _proto_src=proto
|
|
set _proto_cpp=lua54
|
|
|
|
set p=%~dp0
|
|
|
|
for /R "%_proto_src%" %%i in (*) do (
|
|
if "%%~xi" == ".proto" (
|
|
protoc --plugin=protoc-gen-lua="plugin\protoc-gen-lua54.bat" --proto_path=%p%\%_proto_src% --lua_out=%_proto_cpp% %%~fi
|
|
)
|
|
)
|
|
|
|
|
|
pause |