lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I zipped my lua folder structure and my VC10 cmd files.

i modified the sources to preload lfs and lpeg. It should be easy for you, to remove the references to the added lib-files.

i hope it helps.

Ulrich.

Am 10.01.2014 19:18, schrieb Luiz Henrique de Figueiredo:
We'd rather have the simplest luavs.bat possible. Here is what is at
http://www.lua.org/extras/5.2/luavs.bat. What is the simplest .bat that
does the same thing but wihout variables and ideally without the manifest
stuff, if at all possible? In particular, what compilation options are
really needed? Thanks for your Windows expertise.

*** luavs.bat from http://www.lua.org/extras/5.2/luavs.bat

@rem Script to build Lua 5.2 under "Visual Studio .NET Command Prompt".
@rem Do not run from this directory; run it from the toplevel: etc\luavs.bat .
@rem It creates lua52.dll, lua52.lib, lua.exe, and luac.exe in src.
@rem (contributed by David Manura and Mike Pall)

@setlocal
@set MYCOMPILE=cl /nologo /MD /O2 /W3 /c /D_CRT_SECURE_NO_DEPRECATE
@set MYLINK=link /nologo
@set MYMT=mt /nologo

cd src
%MYCOMPILE% /DLUA_BUILD_AS_DLL l*.c
del lua.obj luac.obj
%MYLINK% /DLL /out:lua52.dll l*.obj
if exist lua52.dll.manifest^
   %MYMT% -manifest lua52.dll.manifest -outputresource:lua52.dll;2
%MYCOMPILE% /DLUA_BUILD_AS_DLL lua.c
%MYLINK% /out:lua.exe lua.obj lua52.lib
if exist lua.exe.manifest^
   %MYMT% -manifest lua.exe.manifest -outputresource:lua.exe
%MYCOMPILE% l*.c
del lua.obj linit.obj lbaselib.obj ldblib.obj liolib.obj lmathlib.obj^
     loslib.obj ltablib.obj lstrlib.obj loadlib.obj
%MYLINK% /out:luac.exe *.obj
if exist luac.exe.manifest^
   %MYMT% -manifest luac.exe.manifest -outputresource:luac.exe
del *.obj *.manifest
cd ..

Attachment: lua.zip
Description: Zip compressed data