forked from microsoft/opencv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildall.bat
67 lines (43 loc) · 1.24 KB
/
buildall.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
@echo off
@echo off
echo./*
echo. * Check VC++ environment...
echo. */
echo.
set FOUND_VC=0
if defined VS120COMNTOOLS (
set VSTOOLS="%VS120COMNTOOLS%"
set VC_VER=120
set FOUND_VC=1
) else if defined VS110COMNTOOLS (
set VSTOOLS="%VS110COMNTOOLS%"
set VC_VER=110
set FOUND_VC=1
)
set VSTOOLS=%VSTOOLS:"=%
set "VSTOOLS=%VSTOOLS:\=/%"
set VSVARS="%VSTOOLS%vsvars32.bat"
if not defined VSVARS (
echo Can't find VC2012 or VC2013 installed!
goto ERROR
)
echo./*
echo. * Building libraries...
echo. */
echo.
call %VSVARS%
if %FOUND_VC%==1 (
msbuild opencv\binWinRT\opencv.sln /p:Configuration="Debug" /p:Platform="Win32" /t:Clean,Build
msbuild opencv\binWinRT\opencv.sln /p:Configuration="Release" /p:Platform="Win32" /t:Clean,Build
msbuild opencv\binWinRT\opencv.sln /p:Configuration="Debug" /p:Platform="ARM" /t:Clean,Build
msbuild opencv\binWinRT\opencv.sln /p:Configuration="Release" /p:Platform="ARM" /t:Clean,Build
msbuild opencv\binWinRT\opencv.sln /p:Configuration="Debug" /p:Platform="x64" /t:Clean,Build
msbuild opencv\binWinRT\opencv.sln /p:Configuration="Release" /p:Platform="x64" /t:Clean,Build
) else (
echo Script error.
goto ERROR
)
goto EOF
:ERROR
pause
:EOF