summaryrefslogtreecommitdiff
path: root/etc/luavs.bat
diff options
context:
space:
mode:
authorKim Kibum <kb0929.kim@samsung.com>2012-05-21 17:45:29 +0900
committerKim Kibum <kb0929.kim@samsung.com>2012-05-21 17:45:29 +0900
commit24e71fcffbe7d3a10d66e42ee1e5975ca7229b5b (patch)
tree448cf8298c9d58fccebbe794826a050647b3356b /etc/luavs.bat
parenta83fc9cd1e8b00df9de50d6285680a8e19d419f1 (diff)
downloadlua-24e71fcffbe7d3a10d66e42ee1e5975ca7229b5b.tar.gz
lua-24e71fcffbe7d3a10d66e42ee1e5975ca7229b5b.tar.bz2
lua-24e71fcffbe7d3a10d66e42ee1e5975ca7229b5b.zip
Upload Tizen:Base source
Diffstat (limited to 'etc/luavs.bat')
-rw-r--r--etc/luavs.bat28
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 ..