diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-07-11 19:46:46 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-07-11 19:46:46 +0200 |
commit | 1ea726a91809340451c7a05ede34e7be00ba7863 (patch) | |
tree | 936bb6fce5c26b3876a7324ec82ee0bb232875d7 /win32/ext/lua-wdk/build-x64.bat | |
parent | d81619cca95831e2fd444d71cd078201f3db0e39 (diff) | |
parent | 9d9c24c8d347aa44efbd63e8f8c8dfb5b3cddedb (diff) |
Merge branch 'wdk'
Diffstat (limited to 'win32/ext/lua-wdk/build-x64.bat')
-rw-r--r-- | win32/ext/lua-wdk/build-x64.bat | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/win32/ext/lua-wdk/build-x64.bat b/win32/ext/lua-wdk/build-x64.bat new file mode 100644 index 00000000..f51baee1 --- /dev/null +++ b/win32/ext/lua-wdk/build-x64.bat @@ -0,0 +1,55 @@ +@echo off +set WDK_ROOT=c:\WinDDK\7600.16385.1 +set OPATH=%PATH% +set INCLUDE=%WDK_ROOT%\inc\api;%WDK_ROOT%\inc\crt;%WDK_ROOT%\inc\ddk +set LIB=%WDK_ROOT%\lib\wnet\amd64;%WDK_ROOT%\lib\Crt\amd64 +set PATH=%PROGRAMFILES(X86)%\Microsoft Visual Studio 10.0\VC\bin\amd64 +set DEST=..\lua-wdk-5.2.0-x64 + +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:lua52.dll l*.obj +if exist lua52.dll.manifest^ + %MYMT% -manifest lua52.dll.manifest -outputresource:lua52.dll;2 +%MYCOMPILE% /DLUA_BUILD_AS_DLL lua.c +%MYLINK% /out:lua.exe lua.obj lua52.lib +if exist lua.exe.manifest^ + %MYMT% -manifest lua.exe.manifest -outputresource:lua.exe +%MYCOMPILE% luac.c +@rem del lua.obj linit.obj lbaselib.obj ldblib.obj liolib.obj lmathlib.obj^ +@rem loslib.obj ltablib.obj lstrlib.obj loadlib.obj +%MYLINK% /out:luac.exe luac.obj lua52.lib +if exist luac.exe.manifest^ + %MYMT% -manifest luac.exe.manifest -outputresource:luac.exe +del *.obj *.manifest +cd .. + +echo.Press return when ready to install! +pause +set PATH=%OPATH% +rmdir /Q /S %DEST% +mkdir %DEST% +mkdir %DEST%\bin +mkdir %DEST%\lib +mkdir %DEST%\include +copy COPYRIGHT %DEST%\LICENSE.LUA +:: binaries and libraries +copy src\lua.exe %DEST%\bin +copy src\lua52.dll %DEST%\bin +copy src\lua52.exp %DEST%\bin +copy src\luac.exe %DEST%\bin +:: library +copy src\lua52.lib %DEST%\lib +:: api +copy src\lua.h %DEST%\include +copy src\luaconf.h %DEST%\include +copy src\lualib.h %DEST%\include +copy src\lauxlib.h %DEST%\include +copy src\lua.hpp %DEST%\include +echo.Finished! +pause |