diff options
author | David Seifert <soap@gentoo.org> | 2012-02-17 09:00:00 +0000 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2012-02-17 09:00:00 +0000 |
commit | 008fb1e761e20336d42a19132292183e00909181 (patch) | |
tree | a28e0246f0b0404a5c066b8f2a888db45e30fc44 /etc/luavs.bat | |
download | lua-patches-008fb1e761e20336d42a19132292183e00909181.tar.gz lua-patches-008fb1e761e20336d42a19132292183e00909181.tar.bz2 lua-patches-008fb1e761e20336d42a19132292183e00909181.zip |
Add upstream 5.1.5
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'etc/luavs.bat')
-rw-r--r-- | etc/luavs.bat | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/etc/luavs.bat b/etc/luavs.bat new file mode 100644 index 0000000..08c2bed --- /dev/null +++ b/etc/luavs.bat @@ -0,0 +1,28 @@ +@rem Script to build Lua under "Visual Studio .NET Command Prompt".
+@rem Do not run from this directory; run it from the toplevel: etc\luavs.bat .
+@rem It creates lua51.dll, lua51.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:lua51.dll l*.obj
+if exist lua51.dll.manifest^
+ %MYMT% -manifest lua51.dll.manifest -outputresource:lua51.dll;2
+%MYCOMPILE% /DLUA_BUILD_AS_DLL lua.c
+%MYLINK% /out:lua.exe lua.obj lua51.lib
+if exist lua.exe.manifest^
+ %MYMT% -manifest lua.exe.manifest -outputresource:lua.exe
+%MYCOMPILE% l*.c print.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 ..
|