aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/luajit-2.0/src/msvcbuild.bat
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-01-13 21:08:31 +1000
committerDavid Walter Seikel2014-01-13 21:08:31 +1000
commit637177eb1397ef1800027bccd50dbdc1af29a15b (patch)
tree3670a48303d05fceb8bf3ec4ee2901b72fe62d4d /libraries/luajit-2.0/src/msvcbuild.bat
parentUpdate Irrlicht to 1.8.1. Include actual change markers this time. lol (diff)
downloadSledjHamr-637177eb1397ef1800027bccd50dbdc1af29a15b.zip
SledjHamr-637177eb1397ef1800027bccd50dbdc1af29a15b.tar.gz
SledjHamr-637177eb1397ef1800027bccd50dbdc1af29a15b.tar.bz2
SledjHamr-637177eb1397ef1800027bccd50dbdc1af29a15b.tar.xz
Remove LuaJIT source, we can use packaged LuaJIT 2.0 release now.
Also some cleanups related to the other library removals.
Diffstat (limited to '')
-rw-r--r--libraries/luajit-2.0/src/msvcbuild.bat101
1 files changed, 0 insertions, 101 deletions
diff --git a/libraries/luajit-2.0/src/msvcbuild.bat b/libraries/luajit-2.0/src/msvcbuild.bat
deleted file mode 100644
index 422d165..0000000
--- a/libraries/luajit-2.0/src/msvcbuild.bat
+++ /dev/null
@@ -1,101 +0,0 @@
1@rem Script to build LuaJIT with MSVC.
2@rem Copyright (C) 2005-2011 Mike Pall. See Copyright Notice in luajit.h
3@rem
4@rem Either open a "Visual Studio .NET Command Prompt"
5@rem (Note that the Express Edition does not contain an x64 compiler)
6@rem -or-
7@rem Open a "Windows SDK Command Shell" and set the compiler environment:
8@rem setenv /release /x86
9@rem -or-
10@rem setenv /release /x64
11@rem
12@rem Then cd to this directory and run this script.
13
14@if not defined INCLUDE goto :FAIL
15
16@setlocal
17@set LJCOMPILE=cl /nologo /c /MD /O2 /W3 /D_CRT_SECURE_NO_DEPRECATE
18@set LJLINK=link /nologo
19@set LJMT=mt /nologo
20@set LJLIB=lib /nologo
21@set DASMDIR=..\dynasm
22@set DASM=lua %DASMDIR%\dynasm.lua
23@set ALL_LIB=lib_base.c lib_math.c lib_bit.c lib_string.c lib_table.c lib_io.c lib_os.c lib_package.c lib_debug.c lib_jit.c lib_ffi.c
24
25if not exist buildvm_x86.h^
26 %DASM% -LN -o buildvm_x86.h buildvm_x86.dasc
27@if errorlevel 1 goto :BAD
28if not exist buildvm_x64win.h^
29 %DASM% -LN -D X64 -D X64WIN -o buildvm_x64win.h buildvm_x86.dasc
30@if errorlevel 1 goto :BAD
31
32%LJCOMPILE% /I "." /I %DASMDIR% buildvm*.c
33@if errorlevel 1 goto :BAD
34%LJLINK% /out:buildvm.exe buildvm*.obj
35@if errorlevel 1 goto :BAD
36if exist buildvm.exe.manifest^
37 %LJMT% -manifest buildvm.exe.manifest -outputresource:buildvm.exe
38
39buildvm -m peobj -o lj_vm.obj
40@if errorlevel 1 goto :BAD
41buildvm -m bcdef -o lj_bcdef.h %ALL_LIB%
42@if errorlevel 1 goto :BAD
43buildvm -m ffdef -o lj_ffdef.h %ALL_LIB%
44@if errorlevel 1 goto :BAD
45buildvm -m libdef -o lj_libdef.h %ALL_LIB%
46@if errorlevel 1 goto :BAD
47buildvm -m recdef -o lj_recdef.h %ALL_LIB%
48@if errorlevel 1 goto :BAD
49buildvm -m vmdef -o ..\lib\vmdef.lua %ALL_LIB%
50@if errorlevel 1 goto :BAD
51buildvm -m folddef -o lj_folddef.h lj_opt_fold.c
52@if errorlevel 1 goto :BAD
53
54@if "%1" neq "debug" goto :NODEBUG
55@shift
56@set LJCOMPILE=%LJCOMPILE% /Zi
57@set LJLINK=%LJLINK% /debug
58:NODEBUG
59@if "%1"=="amalg" goto :AMALGDLL
60@if "%1"=="static" goto :STATIC
61%LJCOMPILE% /DLUA_BUILD_AS_DLL lj_*.c lib_*.c
62@if errorlevel 1 goto :BAD
63%LJLINK% /DLL /out:lua51.dll lj_*.obj lib_*.obj
64@if errorlevel 1 goto :BAD
65@goto :MTDLL
66:STATIC
67%LJCOMPILE% /DLUA_BUILD_AS_DLL lj_*.c lib_*.c
68@if errorlevel 1 goto :BAD
69%LJLIB% /OUT:lua51.lib lj_*.obj lib_*.obj
70@if errorlevel 1 goto :BAD
71@goto :MTDLL
72:AMALGDLL
73%LJCOMPILE% /DLUA_BUILD_AS_DLL ljamalg.c
74@if errorlevel 1 goto :BAD
75%LJLINK% /DLL /out:lua51.dll ljamalg.obj lj_vm.obj
76@if errorlevel 1 goto :BAD
77:MTDLL
78if exist lua51.dll.manifest^
79 %LJMT% -manifest lua51.dll.manifest -outputresource:lua51.dll;2
80
81%LJCOMPILE% luajit.c
82@if errorlevel 1 goto :BAD
83%LJLINK% /out:luajit.exe luajit.obj lua51.lib
84@if errorlevel 1 goto :BAD
85if exist luajit.exe.manifest^
86 %LJMT% -manifest luajit.exe.manifest -outputresource:luajit.exe
87
88@del *.obj *.manifest buildvm.exe
89@echo.
90@echo === Successfully built LuaJIT ===
91
92@goto :END
93:BAD
94@echo.
95@echo *******************************************************
96@echo *** Build FAILED -- Please check the error messages ***
97@echo *******************************************************
98@goto :END
99:FAIL
100@echo You must open a "Visual Studio .NET Command Prompt" to run this script
101:END