protoc-gen-lua

{build.bat}

for /f %%i in ('dir /B *.proto') do (
  protoc.exe --lua_out=.\ --plugin=protoc-gen-lua="d:\develop\protoc-gen-lua\plugin\protoc-gen-lua.bat" %%i )

 

====================================================

{pb.def}

LIBRARY pb.dll
DESCRIPTION "ProtocGenLua"
EXPORTS
luaopen_pb

 

=====================================================

环境变量设置

LUA_PATH

;D:\Develop\protoc-gen-lua\protobuf\?.lua;

LUA_CPATH

;D:\Develop\LuaJIT\bin\?.dll;D:\Develop\protoc-gen-lua\protobuf\?.dll;

posted on 2013-07-31 20:39  南原始天  阅读(546)  评论(0编辑  收藏  举报