2
2
version : " 3.6.1-{build}"
3
3
4
4
image :
5
- - Visual Studio 2017
5
+ - Visual Studio 2022
6
6
7
7
# to add several platforms to build matrix
8
8
platform :
@@ -12,13 +12,6 @@ configuration:
12
12
- Release
13
13
14
14
environment :
15
- VISP_OPENCV_MINGW_FILE : opencv-4.1.0-MinGW-build-package.7z
16
- VISP_OPENCV_MINGW_DIR : opencv-4.1.0-MinGW-build-package
17
- VISP_OPENCV_MINGW_PKG : https://github.com/lagadic/visp-dependencies/blob/master/opencv-4.1.0-MinGW-x86_64-7.3.0-release-posix-seh-rt_v5-rev0-build-package.7z?raw=true
18
- VISP_OPENCV_VS2015_2017_FILE : opencv-4.1.0-vc14_vc15.exe
19
- VISP_OPENCV_VS2015_2017_DIR : opencv-4.1.0-vc14_vc15
20
- VISP_OPENCV_VS2015_2017_PKG : https://github.com/opencv/opencv/releases/download/4.1.0/opencv-4.1.0-vc14_vc15.exe
21
-
22
15
matrix :
23
16
- TARGET : mingw
24
17
# - TARGET: msvc
@@ -45,67 +38,27 @@ install:
45
38
# visp_sample
46
39
- git clone --depth 1 https://github.com/lagadic/visp_sample
47
40
48
- # opencv
49
- - ps : >-
50
- if ((${env:TARGET} -imatch "msvc" -or ${env:TARGET} -imatch "visp_sample") -and !(Test-Path ${env:VISP_OPENCV_VS2015_2017_FILE})) {
51
- echo "Downloading OpenCV Visual Studio from ${env:VISP_OPENCV_VS2015_2017_PKG} ..."
52
- appveyor DownloadFile "${env:VISP_OPENCV_VS2015_2017_PKG}" -FileName ${env:VISP_OPENCV_VS2015_2017_FILE} -Timeout 1200000
53
- }
54
-
55
- - ps : >-
56
- if (${env:TARGET} -imatch "msvc" -or ${env:TARGET} -imatch "visp_sample") {
57
- echo "Extracting OpenCV Visual Studio to C:\projects\deps ..."
58
- 7z x ${env:VISP_OPENCV_VS2015_2017_FILE} -y "-o${env:VISP_OPENCV_VS2015_2017_DIR}"
59
- }
60
-
61
- - ps : >-
62
- if (${env:TARGET} -imatch "mingw" -and !(Test-Path ${env:VISP_OPENCV_MINGW_FILE})) {
63
- echo "Downloading OpenCV MinGW from ${env:VISP_OPENCV_MINGW_PKG} ..."
64
- appveyor DownloadFile "${env:VISP_OPENCV_MINGW_PKG}" -FileName ${env:VISP_OPENCV_MINGW_FILE} -Timeout 1200000
65
- }
66
-
67
- - ps : >-
68
- if (${env:TARGET} -imatch "mingw") {
69
- echo "Extracting OpenCV MinGW to C:\projects\deps ..."
70
- 7z x ${env:VISP_OPENCV_MINGW_FILE} -y "-o${env:VISP_OPENCV_MINGW_DIR}"
71
- }
72
-
73
- cache :
74
- - opencv-4.1.0-MinGW-build-package.7z -> appveyor.yml
75
- - opencv-4.1.0-vc14_vc15.exe -> appveyor.yml
76
-
77
41
# visp clone directory
78
42
clone_folder : C:\projects\visp\visp
79
43
80
44
before_build :
81
45
# Setup path for mingw
82
- # Use MinGW-w64 in C:\mingw-w64\x86_64-7.3 .0-posix-seh-rt_v5 -rev0\mingw64\bin
83
- - if "%TARGET%"=="mingw" set MINGW_DIR=C:\mingw-w64\x86_64-7.3 .0-posix-seh-rt_v5 -rev0\mingw64
46
+ # Use MinGW-w64 in C:\mingw-w64\x86_64-8.1 .0-posix-seh-rt_v6 -rev0\mingw64\bin
47
+ - if "%TARGET%"=="mingw" set MINGW_DIR=C:\mingw-w64\x86_64-8.1 .0-posix-seh-rt_v6 -rev0\mingw64
84
48
# Workaround for CMake not wanting sh.exe on PATH for MinGW
85
49
- if "%TARGET%"=="mingw" set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
86
- - if "%TARGET%"=="mingw" set PATH=C:\mingw-w64\x86_64-7.3 .0-posix-seh-rt_v5 -rev0\mingw64\bin;%PATH%
87
- - if "%TARGET%"=="mingw" dir C:\mingw-w64\x86_64-7.3 .0-posix-seh-rt_v5 -rev0\mingw64\bin
50
+ - if "%TARGET%"=="mingw" set PATH=C:\mingw-w64\x86_64-8.1 .0-posix-seh-rt_v6 -rev0\mingw64\bin;%PATH%
51
+ - if "%TARGET%"=="mingw" dir C:\mingw-w64\x86_64-8.1 .0-posix-seh-rt_v6 -rev0\mingw64\bin
88
52
- if "%TARGET%"=="mingw" mingw32-make --version
89
53
90
54
# Setup path for ViSP
91
- - if "%TARGET%"=="msvc" set VISP_DLL_DIR=C:\projects\visp\build\install\%platform%\vc15 \bin
55
+ - if "%TARGET%"=="msvc" set VISP_DLL_DIR=C:\projects\visp\build\install\%platform%\vc17 \bin
92
56
- if "%TARGET%"=="msvc" set PATH=%VISP_DLL_DIR%;%PATH%
93
57
- if "%TARGET%"=="mingw" set VISP_DLL_DIR=C:\projects\visp\build\install\%platform%\mingw\bin
94
58
- if "%TARGET%"=="mingw" set PATH=%VISP_DLL_DIR%;%PATH%
95
- - if "%TARGET%"=="visp_sample" set VISP_DLL_DIR=C:\projects\visp\build\install\%platform%\vc15 \bin
59
+ - if "%TARGET%"=="visp_sample" set VISP_DLL_DIR=C:\projects\visp\build\install\%platform%\vc17 \bin
96
60
- if "%TARGET%"=="visp_sample" set PATH=%VISP_DLL_DIR%;%PATH%
97
61
98
- # Setup path for OpenCV
99
- - if "%TARGET%"=="msvc" set OpenCV_DIR=C:\projects\deps\%VISP_OPENCV_VS2015_2017_DIR%\opencv\build
100
- - if "%TARGET%"=="msvc" set OpenCV_DLL_DIR=%OpenCV_DIR%\%platform%\vc15\bin
101
- - if "%TARGET%"=="msvc" set PATH=%OPENCV_DLL_DIR%;%PATH%
102
- - if "%TARGET%"=="mingw" set OpenCV_DIR=C:\projects\deps\%VISP_OPENCV_MINGW_DIR%\install
103
- - if "%TARGET%"=="mingw" set OpenCV_DLL_DIR=%OpenCV_DIR%\x64\mingw\bin
104
- - if "%TARGET%"=="mingw" set PATH=%OPENCV_DLL_DIR%;%PATH%
105
- - if "%TARGET%"=="visp_sample" set OpenCV_DIR=C:\projects\deps\%VISP_OPENCV_VS2015_2017_DIR%\opencv\build
106
- - if "%TARGET%"=="visp_sample" set OpenCV_DLL_DIR=%OpenCV_DIR%\%platform%\vc15\bin
107
- - if "%TARGET%"=="visp_sample" set PATH=%OPENCV_DLL_DIR%;%PATH%
108
-
109
62
build_script :
110
63
- echo %PATH%
111
64
- dir C:\projects\deps
@@ -114,31 +67,28 @@ build_script:
114
67
- cd C:\projects\visp\build
115
68
116
69
# mingw case
117
- - if "%TARGET%"=="mingw" dir %OpenCV_DLL_DIR%
118
70
- if "%TARGET%"=="mingw" cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=%configuration% ..\visp
119
71
- if "%TARGET%"=="mingw" cmake --build . --config %configuration% --target install -- -j2
120
72
- if "%TARGET%"=="mingw" dir C:\projects\visp\build\install
121
73
- if "%TARGET%"=="mingw" dir %VISP_DLL_DIR%
122
- - if "%TARGET%"=="mingw" ctest --output-on-failure -V
74
+ - if "%TARGET%"=="mingw" ctest --output-on-failure -j2
123
75
124
76
# msvc case
125
- - if "%TARGET%"=="msvc" dir %OpenCV_DLL_DIR%
126
- - if "%TARGET%"=="msvc" cmake -G "Visual Studio 15 2017" -A %platform% ..\visp
77
+ - if "%TARGET%"=="msvc" cmake -G "Visual Studio 17 2022" -A %platform% ..\visp
127
78
- if "%TARGET%"=="msvc" cmake --build . --config %configuration% --target install -- /m:2
128
79
- if "%TARGET%"=="msvc" dir C:\projects\visp\build\install
129
80
- if "%TARGET%"=="msvc" dir %VISP_DLL_DIR%
130
- - if "%TARGET%"=="msvc" ctest --output-on-failure -V
81
+ - if "%TARGET%"=="msvc" ctest --output-on-failure -j2
131
82
132
83
# uwp case
133
- - if "%TARGET%"=="uwp" cmake -G "Visual Studio 15 2017 " -A %platform% -DCMAKE_SYSTEM_NAME="WindowsStore" -DCMAKE_SYSTEM_VERSION="10.0" -DBUILD_DEMOS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -DBUILD_TUTORIALS=OFF ..\visp
84
+ - if "%TARGET%"=="uwp" cmake -G "Visual Studio 17 2022 " -A %platform% -DCMAKE_SYSTEM_NAME="WindowsStore" -DCMAKE_SYSTEM_VERSION="10.0" -DBUILD_DEMOS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -DBUILD_TUTORIALS=OFF ..\visp
134
85
- if "%TARGET%"=="uwp" cmake --build . --config %configuration% -- /m:2
135
86
136
87
# visp_sample case: ViSP as 3rdparty with cmake
137
- - if "%TARGET%"=="visp_sample" dir %OpenCV_DLL_DIR%
138
- - if "%TARGET%"=="visp_sample" cmake -G "Visual Studio 15 2017" -A %platform% -DBUILD_DEMOS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -DBUILD_TUTORIALS=OFF ..\visp
88
+ - if "%TARGET%"=="visp_sample" cmake -G "Visual Studio 17 2022" -A %platform% -DBUILD_DEMOS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -DBUILD_TUTORIALS=OFF ..\visp
139
89
- if "%TARGET%"=="visp_sample" cmake --build . --config %configuration% --target install -- /m:2
140
90
- if "%TARGET%"=="visp_sample" cd C:\projects\deps\visp_sample
141
91
- if "%TARGET%"=="visp_sample" mkdir build
142
92
- if "%TARGET%"=="visp_sample" cd build
143
- - if "%TARGET%"=="visp_sample" cmake -G "Visual Studio 15 2017 " -A %platform% .. -DVISP_DIR=C:\projects\visp\build\install
93
+ - if "%TARGET%"=="visp_sample" cmake -G "Visual Studio 17 2022 " -A %platform% .. -DVISP_DIR=C:\projects\visp\build\install
144
94
- if "%TARGET%"=="visp_sample" cmake --build . --config %configuration% -- /m:2
0 commit comments