diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-05-16 10:58:21 (GMT) |
---|---|---|
committer | Paul Tagliamonte <paultag@fluxbox.org> | 2012-04-07 02:08:41 (GMT) |
commit | 0fa62fe1598c5b04925c0b7b98d0d00d28d10d88 (patch) | |
tree | ccc2dd040a03b294b17abaa4da55ca00ed9b82a7 /libs/lua/etc/luavs.bat | |
parent | 7b6dc2ad72a4c4ecd20eddbfb6f1b4c3bd2a7024 (diff) | |
download | fluxbox_paul-0fa62fe1598c5b04925c0b7b98d0d00d28d10d88.zip fluxbox_paul-0fa62fe1598c5b04925c0b7b98d0d00d28d10d88.tar.bz2 |
Add lua as an internal library in libs/lua
Diffstat (limited to 'libs/lua/etc/luavs.bat')
-rw-r--r-- | libs/lua/etc/luavs.bat | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libs/lua/etc/luavs.bat b/libs/lua/etc/luavs.bat new file mode 100644 index 0000000..08c2bed --- /dev/null +++ b/libs/lua/etc/luavs.bat | |||
@@ -0,0 +1,28 @@ | |||
1 | @rem Script to build Lua under "Visual Studio .NET Command Prompt". | ||
2 | @rem Do not run from this directory; run it from the toplevel: etc\luavs.bat . | ||
3 | @rem It creates lua51.dll, lua51.lib, lua.exe, and luac.exe in src. | ||
4 | @rem (contributed by David Manura and Mike Pall) | ||
5 | |||
6 | @setlocal | ||
7 | @set MYCOMPILE=cl /nologo /MD /O2 /W3 /c /D_CRT_SECURE_NO_DEPRECATE | ||
8 | @set MYLINK=link /nologo | ||
9 | @set MYMT=mt /nologo | ||
10 | |||
11 | cd src | ||
12 | %MYCOMPILE% /DLUA_BUILD_AS_DLL l*.c | ||
13 | del lua.obj luac.obj | ||
14 | %MYLINK% /DLL /out:lua51.dll l*.obj | ||
15 | if exist lua51.dll.manifest^ | ||
16 | %MYMT% -manifest lua51.dll.manifest -outputresource:lua51.dll;2 | ||
17 | %MYCOMPILE% /DLUA_BUILD_AS_DLL lua.c | ||
18 | %MYLINK% /out:lua.exe lua.obj lua51.lib | ||
19 | if exist lua.exe.manifest^ | ||
20 | %MYMT% -manifest lua.exe.manifest -outputresource:lua.exe | ||
21 | %MYCOMPILE% l*.c print.c | ||
22 | del lua.obj linit.obj lbaselib.obj ldblib.obj liolib.obj lmathlib.obj^ | ||
23 | loslib.obj ltablib.obj lstrlib.obj loadlib.obj | ||
24 | %MYLINK% /out:luac.exe *.obj | ||
25 | if exist luac.exe.manifest^ | ||
26 | %MYMT% -manifest luac.exe.manifest -outputresource:luac.exe | ||
27 | del *.obj *.manifest | ||
28 | cd .. | ||