summary refs log tree commit diff stats
path: root/ext/lua-wdk/lua-wdk.patch
diff options
context:
space:
mode:
authorberkeviktor@aol.com <berkeviktor@aol.com>2011-05-30 22:54:08 +0200
committerberkeviktor@aol.com <berkeviktor@aol.com>2011-05-30 22:54:08 +0200
commitbd0728f03b9a3742d50db68ac77f1c4ea042f0a2 (patch)
tree52d4e619cc049b91c89a03865ec9b8b6c4a5b5a4 /ext/lua-wdk/lua-wdk.patch
parent67e3ef79bddff056459914a51bea128ed619c5ed (diff)
parent24ac838543bc99ea8d289925b4c5418107d5ae1f (diff)
Merge with default
Diffstat (limited to 'ext/lua-wdk/lua-wdk.patch')
-rw-r--r--ext/lua-wdk/lua-wdk.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/ext/lua-wdk/lua-wdk.patch b/ext/lua-wdk/lua-wdk.patch
new file mode 100644
index 00000000..8173d951
--- /dev/null
+++ b/ext/lua-wdk/lua-wdk.patch
@@ -0,0 +1,46 @@
+diff -ruN --strip-trailing-cr lua-5.1.4.orig/etc/luavs-x64.bat lua-5.1.4/etc/luavs-x64.bat
+--- lua-5.1.4.orig/etc/luavs-x64.bat	1970-01-01 01:00:00 +0100
++++ lua-5.1.4/etc/luavs-x64.bat	2010-08-16 13:02:08 +0200
+@@ -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
++@set MYLINK=link /nologo msvcrt_win2003.obj
++@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 ..
+diff -ruN --strip-trailing-cr lua-5.1.4.orig/etc/luavs.bat lua-5.1.4/etc/luavs.bat
+--- lua-5.1.4.orig/etc/luavs.bat	2008-01-20 17:40:10 +0100
++++ lua-5.1.4/etc/luavs.bat	2010-08-16 13:02:18 +0200
+@@ -4,8 +4,8 @@
+ @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 MYCOMPILE=cl /nologo /MD /O2 /W3 /c
++@set MYLINK=link /nologo msvcrt_winxp.obj
+ @set MYMT=mt /nologo
+ 
+ cd src