-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.msvc.bat
92 lines (68 loc) · 1.28 KB
/
make.msvc.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
@ECHO OFF
if defined LOKI_TMP (
goto STARTCOMPILING
)
:: Viual C++ 7.1
if defined VS71COMNTOOLS (
if exist "%VS71COMNTOOLS%\vsvars32.bat" (
echo -
echo - Visual C++ 7.1 found.
echo -
call "%VS71COMNTOOLS%\vsvars32.bat"
set LOKI_TMP=true
goto STARTCOMPILING
)
)
:: Viual C++ 8.0
if defined VS80COMNTOOLS (
if exist "%VS80COMNTOOLS%\vsvars32.bat" (
echo -
echo - Visual C++ 8.0 found.
echo -
call "%VS80COMNTOOLS%\vsvars32.bat"
set LOKI_TMP=true
goto STARTCOMPILING
)
)
:: Toolkit 2003
if defined VCToolkitInstallDir (
if exist "%VCToolkitInstallDir%\vcvars32.bat" (
echo -
echo - VC 7.1 Toolkit found.
echo -
call "%VCToolkitInstallDir%\vcvars32.bat"
set LOKI_TMP=true
set LOKI_MSVC_NOLIB=true
goto STARTCOMPILING
)
)
echo -
echo - No Visual C++ found, please set the enviroment variable
echo -
echo - VCToolkitInstallDir or VS71COMNTOOLS or VS80COMNTOOLS
echo -
echo - to your Visual Studio folder which contains vsvars32.bat.
echo -
echo - Or call the vsvars32.bat.
echo -
goto ERROR
:STARTCOMPILING
:: buid process
if defined LOKI_TMP (
@ECHO ON
cd src
call make.msvc.bat
call make.msvc.dll.bat
cd ..
cd test
call make.msvc.bat
cd ..
goto LEAVE
)
:ERROR
echo -
echo -
echo - An error occured. Compiling aborted.
echo -
pause
:LEAVE