This is normally statically linked in releases. Lua also needs some patching in Linux x86 to fix performance issues related to alignment, will need patching if we want fine-grained threading, and generally has an odd "build it yourself" design, so let's just add embed this one. (note: disable PCH for these files in VC, and don't add lua.c, luac.c, or print.c to the project)
8 lines
179 B
Batchfile
8 lines
179 B
Batchfile
cd src
|
|
cl /O2 /W3 /c /DLUA_BUILD_AS_DLL l*.c
|
|
del lua.obj luac.obj
|
|
link /DLL /out:lua51.dll l*.obj
|
|
cl /O2 /W3 /c /DLUA_BUILD_AS_DLL lua.c
|
|
link /out:lua.exe lua.obj lua51.lib
|
|
cd ..
|