diff options
author | berkeviktor@aol.com <berkeviktor@aol.com> | 2010-08-16 13:19:54 +0200 |
---|---|---|
committer | berkeviktor@aol.com <berkeviktor@aol.com> | 2010-08-16 13:19:54 +0200 |
commit | d194c520e7888ffa650b319c42cd30db3c53ddfb (patch) | |
tree | 3f04a6fd7d7bf41dc2d19b1663425b46e0b937ac /ext/lua-wdk | |
parent | 7eeccd2ce2b62f5ef37cb201c0f62bc4bf4e9650 (diff) |
add patch and build files of external dependencies
Diffstat (limited to 'ext/lua-wdk')
-rw-r--r-- | ext/lua-wdk/build-x64.bat | 17 | ||||
-rw-r--r-- | ext/lua-wdk/build-x86.bat | 17 | ||||
-rw-r--r-- | ext/lua-wdk/lua-wdk.patch | 46 |
3 files changed, 80 insertions, 0 deletions
diff --git a/ext/lua-wdk/build-x64.bat b/ext/lua-wdk/build-x64.bat new file mode 100644 index 00000000..32c8b7b7 --- /dev/null +++ b/ext/lua-wdk/build-x64.bat @@ -0,0 +1,17 @@ +@echo off +set OPATH=%PATH% +set INCLUDE=c:\WinDDK\7600.16385.1\inc\api;c:\WinDDK\7600.16385.1\inc\crt;c:\WinDDK\7600.16385.1\inc\ddk +set LIB=c:\WinDDK\7600.16385.1\lib\wnet\amd64;c:\WinDDK\7600.16385.1\lib\Crt\amd64 +set PATH=c:\WinDDK\7600.16385.1\bin\x86\amd64;c:\WinDDK\7600.16385.1\bin\x86;c:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin;c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin +set DEST=..\lua-5.1.4-2-wdk-x64 +call etc\luavs-x64.bat +@echo off +echo.Press return when ready to install! +pause +set PATH=%OPATH% +rmdir /Q /S %DEST% +xcopy /S /I src %DEST% +xcopy COPYRIGHT %DEST% +del %DEST%\Makefile +echo.Finished! +pause diff --git a/ext/lua-wdk/build-x86.bat b/ext/lua-wdk/build-x86.bat new file mode 100644 index 00000000..a5cebfd9 --- /dev/null +++ b/ext/lua-wdk/build-x86.bat @@ -0,0 +1,17 @@ +@echo off +set OPATH=%PATH% +set INCLUDE=c:\WinDDK\7600.16385.1\inc\api;c:\WinDDK\7600.16385.1\inc\crt;c:\WinDDK\7600.16385.1\inc\ddk +set LIB=c:\WinDDK\7600.16385.1\lib\wxp\i386;c:\WinDDK\7600.16385.1\lib\Crt\i386 +set PATH=c:\WinDDK\7600.16385.1\bin\x86\x86;c:\WinDDK\7600.16385.1\bin\x86;c:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin;c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin +set DEST=..\lua-5.1.4-2-wdk-x86 +call etc\luavs.bat +@echo off +echo.Press return when ready to install! +pause +set PATH=%OPATH% +rmdir /Q /S %DEST% +xcopy /S /I src %DEST% +xcopy COPYRIGHT %DEST% +del %DEST%\Makefile +echo.Finished! +pause 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 |