Skip to content

Commit 3b6f2d7

Browse files
update msvc build script
1 parent 2f2e8ef commit 3b6f2d7

File tree

1 file changed

+64
-18
lines changed

1 file changed

+64
-18
lines changed

build/buildmsvc_ravi_debug.bat

+64-18
Original file line numberDiff line numberDiff line change
@@ -1,143 +1,189 @@
1+
cd nj
2+
rmdir build /s /q
3+
mkdir build
4+
cd build
5+
cmake -DCMAKE_INSTALL_PREFIX=c:/Software/ravi -G "Visual Studio 15 2017 Win64" ..
6+
if %errorlevel% neq 0 exit /b %errorlevel%
7+
cmake --build . --config Release --target INSTALL
8+
if %errorlevel% neq 0 exit /b %errorlevel%
9+
cd ..\..
10+
111
cd ravi-external-libs
212
rmdir build /s /q
313
mkdir build
414
cd build
515
cmake -DCMAKE_INSTALL_PREFIX=c:/Software/ravi -G "Visual Studio 15 2017 Win64" ..
16+
if %errorlevel% neq 0 exit /b %errorlevel%
617
cmake --build . --config Release --target INSTALL
18+
if %errorlevel% neq 0 exit /b %errorlevel%
719
cd ..\..
820

921
cd ravi
1022
rmdir build /s /q
1123
mkdir build
1224
cd build
13-
cmake -DCMAKE_INSTALL_PREFIX=c:/Software/ravi -G "Visual Studio 15 2017 Win64" ..
14-
cmake --build . --config Debug --target INSTALL
25+
cmake -DOMR_JIT=ON -DCMAKE_INSTALL_PREFIX=c:/Software/ravi -G "Visual Studio 15 2017 Win64" ..
26+
if %errorlevel% neq 0 exit /b %errorlevel%
27+
cmake --build . --config Release --target INSTALL
28+
if %errorlevel% neq 0 exit /b %errorlevel%
1529
cd ..\..
1630

1731
cd ravi-ffi
1832
rmdir build /s /q
1933
mkdir build
2034
cd build
2135
cmake -DCMAKE_INSTALL_PREFIX=c:/Software/ravi -G "Visual Studio 15 2017 Win64" ..
22-
cmake --build . --config Debug --target INSTALL
36+
if %errorlevel% neq 0 exit /b %errorlevel%
37+
cmake --build . --config Release --target INSTALL
38+
if %errorlevel% neq 0 exit /b %errorlevel%
2339
cd ..\..
2440

2541
cd ravi-torch-paths
2642
rmdir build /s /q
2743
mkdir build
2844
cd build
2945
cmake -DCMAKE_INSTALL_PREFIX=c:/Software/ravi -G "Visual Studio 15 2017 Win64" ..
30-
cmake --build . --config Debug --target INSTALL
46+
if %errorlevel% neq 0 exit /b %errorlevel%
47+
cmake --build . --config Release --target INSTALL
48+
if %errorlevel% neq 0 exit /b %errorlevel%
3149
cd ..\..
3250

3351
cd ravi-torch7-sys
3452
rmdir build /s /q
3553
mkdir build
3654
cd build
3755
cmake -DCMAKE_INSTALL_PREFIX=c:/Software/ravi -G "Visual Studio 15 2017 Win64" ..
38-
cmake --build . --config Debug --target INSTALL
56+
if %errorlevel% neq 0 exit /b %errorlevel%
57+
cmake --build . --config Release --target INSTALL
58+
if %errorlevel% neq 0 exit /b %errorlevel%
3959
cd ..\..
4060

4161
cd ravi-torch7
4262
rmdir build /s /q
4363
mkdir build
4464
cd build
4565
cmake -DCMAKE_INSTALL_PREFIX=c:/Software/ravi -G "Visual Studio 15 2017 Win64" ..
46-
cmake --build . --config Debug --target INSTALL
66+
if %errorlevel% neq 0 exit /b %errorlevel%
67+
cmake --build . --config Release --target INSTALL
68+
if %errorlevel% neq 0 exit /b %errorlevel%
4769
cd ..\..
4870

4971
cd ravi-torch7-xlua
5072
rmdir build /s /q
5173
mkdir build
5274
cd build
5375
cmake -DCMAKE_INSTALL_PREFIX=c:/Software/ravi -G "Visual Studio 15 2017 Win64" ..
54-
cmake --build . --config Debug --target INSTALL
76+
if %errorlevel% neq 0 exit /b %errorlevel%
77+
cmake --build . --config Release --target INSTALL
78+
if %errorlevel% neq 0 exit /b %errorlevel%
5579
cd ..\..
5680

5781
cd ravi-moses
5882
rmdir build /s /q
5983
mkdir build
6084
cd build
6185
cmake -DCMAKE_INSTALL_PREFIX=c:/Software/ravi -G "Visual Studio 15 2017 Win64" ..
62-
cmake --build . --config Debug --target INSTALL
86+
if %errorlevel% neq 0 exit /b %errorlevel%
87+
cmake --build . --config Release --target INSTALL
88+
if %errorlevel% neq 0 exit /b %errorlevel%
6389
cd ..\..
6490

6591
cd ravi-filesystem
6692
rmdir build /s /q
6793
mkdir build
6894
cd build
6995
cmake -DCMAKE_INSTALL_PREFIX=c:/Software/ravi -G "Visual Studio 15 2017 Win64" ..
70-
cmake --build . --config Debug --target INSTALL
96+
if %errorlevel% neq 0 exit /b %errorlevel%
97+
cmake --build . --config Release --target INSTALL
98+
if %errorlevel% neq 0 exit /b %errorlevel%
7199
cd ..\..
72100

73101
cd ravi-torch7-nn
74102
rmdir build /s /q
75103
mkdir build
76104
cd build
77105
cmake -DCMAKE_INSTALL_PREFIX=c:/Software/ravi -G "Visual Studio 15 2017 Win64" ..
78-
cmake --build . --config Debug --target INSTALL
106+
if %errorlevel% neq 0 exit /b %errorlevel%
107+
cmake --build . --config Release --target INSTALL
108+
if %errorlevel% neq 0 exit /b %errorlevel%
79109
cd ..\..
80110

81111
cd ravi-torch7-optim
82112
rmdir build /s /q
83113
mkdir build
84114
cd build
85115
cmake -DCMAKE_INSTALL_PREFIX=c:/Software/ravi -G "Visual Studio 15 2017 Win64" ..
86-
cmake --build . --config Debug --target INSTALL
116+
if %errorlevel% neq 0 exit /b %errorlevel%
117+
cmake --build . --config Release --target INSTALL
118+
if %errorlevel% neq 0 exit /b %errorlevel%
87119
cd ..\..
88120

89121
cd ravi-torch7-autograd
90122
rmdir build /s /q
91123
mkdir build
92124
cd build
93125
cmake -DCMAKE_INSTALL_PREFIX=c:/Software/ravi -G "Visual Studio 15 2017 Win64" ..
94-
cmake --build . --config Debug --target INSTALL
126+
if %errorlevel% neq 0 exit /b %errorlevel%
127+
cmake --build . --config Release --target INSTALL
128+
if %errorlevel% neq 0 exit /b %errorlevel%
95129
cd ..\..
96130

97131
cd ravi-torch-cephes
98132
rmdir build /s /q
99133
mkdir build
100134
cd build
101135
cmake -DCMAKE_INSTALL_PREFIX=c:/Software/ravi -G "Visual Studio 15 2017 Win64" ..
102-
cmake --build . --config Debug --target INSTALL
136+
if %errorlevel% neq 0 exit /b %errorlevel%
137+
cmake --build . --config Release --target INSTALL
138+
if %errorlevel% neq 0 exit /b %errorlevel%
103139
cd ..\..
104140

105141
cd ravi-penlight
106142
rmdir build /s /q
107143
mkdir build
108144
cd build
109145
cmake -DCMAKE_INSTALL_PREFIX=c:/Software/ravi -G "Visual Studio 15 2017 Win64" ..
110-
cmake --build . --config Debug --target INSTALL
146+
if %errorlevel% neq 0 exit /b %errorlevel%
147+
cmake --build . --config Release --target INSTALL
148+
if %errorlevel% neq 0 exit /b %errorlevel%
111149
cd ..\..
112150

113151
cd ravi-cjson
114152
rmdir build /s /q
115153
mkdir build
116154
cd build
117155
cmake -DCMAKE_INSTALL_PREFIX=c:/Software/ravi -G "Visual Studio 15 2017 Win64" ..
118-
cmake --build . --config Debug --target INSTALL
156+
if %errorlevel% neq 0 exit /b %errorlevel%
157+
cmake --build . --config Release --target INSTALL
158+
if %errorlevel% neq 0 exit /b %errorlevel%
119159
cd ..\..
120160

121161
cd ravi-lpeglabel
122162
rmdir build /s /q
123163
mkdir build
124164
cd build
125165
cmake -DCMAKE_INSTALL_PREFIX=c:/Software/ravi -G "Visual Studio 15 2017 Win64" ..
126-
cmake --build . --config Debug --target INSTALL
166+
if %errorlevel% neq 0 exit /b %errorlevel%
167+
cmake --build . --config Release --target INSTALL
168+
if %errorlevel% neq 0 exit /b %errorlevel%
127169
cd ..\..
128170

129171
cd ravi-luasocket
130172
rmdir build /s /q
131173
mkdir build
132174
cd build
133175
cmake -DCMAKE_INSTALL_PREFIX=c:/Software/ravi -G "Visual Studio 15 2017 Win64" ..
134-
cmake --build . --config Debug --target INSTALL
176+
if %errorlevel% neq 0 exit /b %errorlevel%
177+
cmake --build . --config Release --target INSTALL
178+
if %errorlevel% neq 0 exit /b %errorlevel%
135179
cd ..\..
136180

137181
cd ravi-libuv-luv
138182
rmdir build /s /q
139183
mkdir build
140184
cd build
141185
cmake -DCMAKE_INSTALL_PREFIX=c:/Software/ravi -G "Visual Studio 15 2017 Win64" ..
142-
cmake --build . --config Debug --target INSTALL
186+
if %errorlevel% neq 0 exit /b %errorlevel%
187+
cmake --build . --config Release --target INSTALL
188+
if %errorlevel% neq 0 exit /b %errorlevel%
143189
cd ..\..

0 commit comments

Comments
 (0)