forked from isl-org/Open3D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
70 lines (68 loc) · 1.97 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
65
66
67
68
69
70
version: 1.0.{build}
image:
- Visual Studio 2017
- Visual Studio 2015
test: off
build:
parallel: true
platform:
- x64
environment:
matrix:
- PYTHON: 36
CPP: 14
CONFIG: Release
SHARED: OFF
- PYTHON: 36
CPP: 14
CONFIG: Release
SHARED: ON
- PYTHON: 36
CPP: latest
CONFIG: Release
SHARED: OFF
- PYTHON: 36
CPP: latest
CONFIG: Release
SHARED: ON
matrix:
exclude:
- image: Visual Studio 2015
CPP: latest
- image: Visual Studio 2017
CPP: 14
install:
- ps: |
if ($env:PLATFORM -eq "x64") {
$env:CMAKE_ARCH = "x64"
$env:CMAKE_INSTALL_PREFIX = "C:\Program Files\Open3D"
} else {
$env:CMAKE_INSTALL_PREFIX = "C:\Program Files (x86)\Open3D"
}
if ($env:APPVEYOR_JOB_NAME -like "*Visual Studio 2017*") {
$env:CMAKE_GENERATOR = "Visual Studio 15 2017"
} else {
$env:CMAKE_GENERATOR = "Visual Studio 14 2015"
}
if ($env:PYTHON) {
if ($env:PLATFORM -eq "x64") { $env:PYTHON = "$env:PYTHON-x64" }
$env:PATH = "C:\Python$env:PYTHON\;C:\Python$env:PYTHON\Scripts\;$env:PATH"
}
build_script:
- git submodule update --init --recursive
- mkdir build
- cd build
- cmake -G "%CMAKE_GENERATOR%" -A "%CMAKE_ARCH%" -DCMAKE_INSTALL_PREFIX="%CMAKE_INSTALL_PREFIX%" -DBUILD_SHARED_LIBS=%SHARED% -DBUILD_EIGEN3=ON -DBUILD_GLEW=ON -DBUILD_GLFW=ON -DBUILD_JPEG=ON -DBUILD_JSONCPP=ON -DBUILD_PNG=ON ..
- cmake --build . --parallel %NUMBER_OF_PROCESSORS% --config %CONFIG% --target INSTALL
# Test cmake install
- cd ..\docs\_static\C++
- mkdir build
- cd build
- cmake -G "%CMAKE_GENERATOR%" -A "%CMAKE_ARCH%" -DCMAKE_INSTALL_PREFIX="%CMAKE_INSTALL_PREFIX%" -DBUILD_SHARED_LIBS=%SHARED% ..
- cmake --build . --config %CONFIG%
- Release\TestVisualizer
# The following script has issues on SHARED = "ON"
# - cd lib/Release/Tutorial/Basic && python file_io.py
artifacts:
# Archive the generated packages in the ci.appveyor.com build report.
- path: build\lib\Release\open3d.cp36-win_amd64.pyd