Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/lua-5.1.3/etc/luavs.bat @ 54

Last change on this file since 54 was 28, checked in by landauf, 17 years ago
File size: 1.1 KB
RevLine 
[28]1@rem Script to build Lua under "Visual Studio .NET Command Prompt".
2@rem Do not run from this directory; run it from the toplevel: etc\luavs.bat .
3@rem It creates lua5.1.dll, lua5.1.lib, lua5.1.exe, and luac5.1.exe in src.
4@rem (contributed by David Manura and Mike Pall)
5
6@setlocal
7@set MYCOMPILE=cl /nologo /MD /O2 /W3 /c /D_CRT_SECURE_NO_DEPRECATE
8@set MYLINK=link /nologo
9@set MYMT=mt /nologo
10
11cd src
12%MYCOMPILE% /DLUA_BUILD_AS_DLL l*.c
13del lua.obj luac.obj
14%MYLINK% /DLL /out:lua5.1.dll l*.obj
15if exist lua5.1.dll.manifest^
16  %MYMT% -manifest lua5.1.dll.manifest -outputresource:lua5.1.dll;2
17%MYCOMPILE% /DLUA_BUILD_AS_DLL lua.c
18%MYLINK% /out:lua5.1.exe lua.obj lua5.1.lib
19if exist lua5.1.exe.manifest^
20  %MYMT% -manifest lua5.1.exe.manifest -outputresource:lua5.1.exe
21%MYCOMPILE% l*.c print.c
22del lua.obj linit.obj lbaselib.obj ldblib.obj liolib.obj lmathlib.obj^
23    loslib.obj ltablib.obj lstrlib.obj loadlib.obj
24%MYLINK% /out:luac5.1.exe *.obj
25if exist luac5.1.exe.manifest^
26  %MYMT% -manifest luac5.1.exe.manifest -outputresource:luac5.1.exe
27del *.obj *.manifest
28cd ..
Note: See TracBrowser for help on using the repository browser.