prerequisite
- vs2015
- Lua source code for v5.3.6
Building
In command prompt,
cd %VS_INTALL_DIR%\VC (like D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC )
cd %Lua_Source_Code_Dir% (like c:\Desktop\lua-5.3.6\src)
cl /MD /O2 /c /DLUA_BUILD_AS_DLL *.c
rename lua.obj to lua.o
rename luac.obj to luac.o
link /DLL /IMPLIB:lua5.3.lib /OUT:lua5.3.dll *.obj
link /OUT:lua.exe lua.o lua5.3.lib
lib /OUT:lua5.3-static.lib *.obj
link /OUT:luac.exe luac.o lua5.3-static.lib
after above operations, needed .exe and .dll are there.