• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1@echo off
2
3
4set FOUND_VC=0
5
6if defined VS120COMNTOOLS (
7    set VSTOOLS="%VS120COMNTOOLS%"
8    set VC_VER=120
9    set FOUND_VC=1
10)
11
12set VSTOOLS=%VSTOOLS:"=%
13set "VSTOOLS=%VSTOOLS:\=/%"
14
15set VSVARS="%VSTOOLS%vsvars32.bat"
16
17if not defined VSVARS (
18    echo Can't find VC2013 installed!
19    goto ERROR
20)
21
22
23echo./*
24echo. * Building OpenCV
25echo. */
26echo.
27
28
29call %VSVARS%
30
31if %FOUND_VC%==1 (
32    call:DoMSBuild ..\..\bin\WP\8.1\x86\OpenCV.sln Debug
33    call:DoMSBuild ..\..\bin\WP\8.1\x86\INSTALL.vcxproj Debug
34    call:DoMSBuild ..\..\bin\WP\8.1\x86\OpenCV.sln Release
35    call:DoMSBuild ..\..\bin\WP\8.1\x86\INSTALL.vcxproj Release
36
37    call:DoMSBuild ..\..\bin\WP\8.1\ARM\OpenCV.sln Debug
38    call:DoMSBuild ..\..\bin\WP\8.1\ARM\INSTALL.vcxproj Debug
39    call:DoMSBuild ..\..\bin\WP\8.1\ARM\OpenCV.sln Release
40    call:DoMSBuild ..\..\bin\WP\8.1\ARM\INSTALL.vcxproj Release
41
42    call:DoMSBuild ..\..\bin\WS\8.1\x86\OpenCV.sln Debug
43    call:DoMSBuild ..\..\bin\WS\8.1\x86\INSTALL.vcxproj Debug
44    call:DoMSBuild ..\..\bin\WS\8.1\x86\OpenCV.sln Release
45    call:DoMSBuild ..\..\bin\WS\8.1\x86\INSTALL.vcxproj Release
46
47    call:DoMSBuild ..\..\bin\WS\8.1\ARM\OpenCV.sln Debug
48    call:DoMSBuild ..\..\bin\WS\8.1\ARM\INSTALL.vcxproj Debug
49    call:DoMSBuild ..\..\bin\WS\8.1\ARM\OpenCV.sln Release
50    call:DoMSBuild ..\..\bin\WS\8.1\ARM\INSTALL.vcxproj Release
51
52    call:DoMSBuild ..\..\bin\WP\8.0\x86\OpenCV.sln Debug
53    call:DoMSBuild ..\..\bin\WP\8.0\x86\INSTALL.vcxproj Debug
54    call:DoMSBuild ..\..\bin\WP\8.0\x86\OpenCV.sln Release
55    call:DoMSBuild ..\..\bin\WP\8.0\x86\INSTALL.vcxproj Release
56
57    call:DoMSBuild ..\..\bin\WP\8.0\ARM\OpenCV.sln Debug
58    call:DoMSBuild ..\..\bin\WP\8.0\ARM\INSTALL.vcxproj Debug
59    call:DoMSBuild ..\..\bin\WP\8.0\ARM\OpenCV.sln Release
60    call:DoMSBuild ..\..\bin\WP\8.0\ARM\INSTALL.vcxproj Release
61
62    call:DoMSBuild ..\..\bin\WS\8.0\x86\OpenCV.sln Debug
63    call:DoMSBuild ..\..\bin\WS\8.0\x86\INSTALL.vcxproj Debug
64    call:DoMSBuild ..\..\bin\WS\8.0\x86\OpenCV.sln Release
65    call:DoMSBuild ..\..\bin\WS\8.0\x86\INSTALL.vcxproj Release
66
67    call:DoMSBuild ..\..\bin\WS\8.0\ARM\OpenCV.sln Debug
68    call:DoMSBuild ..\..\bin\WS\8.0\ARM\INSTALL.vcxproj Debug
69    call:DoMSBuild ..\..\bin\WS\8.0\ARM\OpenCV.sln Release
70    call:DoMSBuild ..\..\bin\WS\8.0\ARM\INSTALL.vcxproj Release
71)
72
73echo.&goto:EOF
74
75
76::--------------------------------------------------------
77::-- DoMSBuild
78::--------------------------------------------------------
79:DoMSBuild
80msbuild %~1 /p:Configuration="%~2" /m
81@if errorlevel 1 goto :ERROR
82goto:EOF
83
84:ERROR
85pause
86:EOF