forked from analogdevicesinc/aditof_sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
64 lines (54 loc) · 2.08 KB
/
appveyor.yml
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
version: '1.0.{build}'
image:
- Visual Studio 2017
- Visual Studio 2015
cache:
- C:\projects\aditof-sdk\deps -> ci\appveyor\install_glog.bat
- C:\tools\opencv -> ci\appveyor\install_opencv.bat
install:
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (
set generator=Visual Studio 14 2015
) else if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (
set generator=Visual Studio 15 2017
)
#- set generator=%generator:"=%
- if not exist "deps" ( mkdir deps )
- C:\projects\aditof-sdk\ci\appveyor\install_opencv.bat
- cd %APPVEYOR_BUILD_FOLDER%
build_script:
# x64 glog install
- C:\projects\aditof-sdk\ci\appveyor\install_glog.bat "Release" "Win64"
- C:\projects\aditof-sdk\ci\appveyor\install_glog.bat "Debug" "Win64"
# x64
- set PATH=C:\\Python36-x64;C:\\Python36-x64\\Scripts;%PATH%
- mkdir build
- ps: pushd build
- cmake -G "%generator% Win64" -DWITH_PYTHON=on -DOpenCV_DIR="C:\tools\opencv\build\x64\vc15\lib" ..
- cmake --build . --config "Release"
- ps: popd
- mkdir build_debug
- ps: pushd build_debug
- cmake -G "%generator% Win64" -DWITH_PYTHON=on -DOpenCV_DIR="C:\tools\opencv\build\x64\vc15\lib" ..
- cmake --build . --config "Debug"
- ps: popd
# x32 glog install
- C:\projects\aditof-sdk\ci\appveyor\install_glog.bat "Release"
- C:\projects\aditof-sdk\ci\appveyor\install_glog.bat "Debug"
# x32
- set PATH=C:\\Python36;C:\\Python36\\Scripts;%PATH%
- mkdir build_x32
- ps: pushd build_x32
- cmake -G "%generator%" -DWITH_EXAMPLES=off -DWITH_PYTHON=on ..
- cmake --build . --config "Release"
- ps: popd
- mkdir build_debug_x32
- ps: pushd build_debug_x32
- cmake -G "%generator%" -DWITH_EXAMPLES=off -DWITH_PYTHON=on ..
- cmake --build . --config "Debug"
- ps: popd
after_build:
- cinst InnoSetup
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (
C:\projects\aditof-sdk\ci\appveyor\make_installer.bat
)
- C:\projects\aditof-sdk\ci\appveyor\make_zip.bat