forked from tudelft3d/3dfier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
74 lines (66 loc) · 3.92 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
71
72
73
74
version: 0.9.8.{build}
branches:
only:
- master
skip_tags: true
image: Visual Studio 2015
configuration:
- Debug
- Release
platform: x64
install:
############################################################################
# All external dependencies are installed in C:\projects\deps
############################################################################
- mkdir C:\deps
- cd C:\deps
############################################################################
# Set boost variables
############################################################################
- set BOOST_ROOT=C:\Libraries\boost_1_60_0
- set BOOST_INCLUDEDIR=C:\Libraries\boost_1_60_0
- set BOOST_LIBRARYDIR=C:\Libraries\boost_1_60_0\lib64-msvc-14.0
############################################################################
# Install YAML-cpp
############################################################################
- appveyor DownloadFile https://github.com/jbeder/yaml-cpp/archive/yaml-cpp-0.5.3.zip -FileName yaml-cpp-0.5.3.zip
- 7z x yaml-cpp-0.5.3.zip -oC:\deps > nul
- set PATH=C:\deps\yaml-cpp-yaml-cpp-0.5.3;%PATH%
- SET YAML-CPP_DIR=C:\deps\yaml-cpp-yaml-cpp-0.5.3
- cd C:\deps\yaml-cpp-yaml-cpp-0.5.3
- mkdir vs_build
- CMake -G "Visual Studio 14 2015 Win64" -H.\ -B.\vs_build
- msbuild "%YAML-CPP_DIR%\vs_build\yaml-cpp.vcxproj" /property:Configuration=Release /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- mkdir "%YAML-CPP_DIR%\vs_build\lib\"
- copy /Y "%YAML-CPP_DIR%\vs_build\Release\libyaml-cppmd.lib" "%YAML-CPP_DIR%\vs_build\lib"
############################################################################
# Install OSGeo4W
############################################################################
- set OSGEO4W_ROOT=C:\OSGeo4W
- appveyor DownloadFile http://download.osgeo.org/osgeo4w/osgeo4w-setup-x86_64.exe -FileName osgeo4w-setup-x86_64.exe
- osgeo4w-setup-x86_64.exe -q -k -r -A -s http://download.osgeo.org/osgeo4w/ -a x86_64 -P liblas-devel,liblas,laszip,gdal -R %OSGEO4W_ROOT% > NUL
- set LIBLAS_ROOT=C:\OSGeo4W
- set LASZIP_ROOT=C:\OSGeo4W
- set PATH=C:\OSGeo4W\bin;%PATH%
############################################################################
# Install CGAL 4.8
############################################################################
- appveyor DownloadFile https://github.com/CGAL/cgal/releases/download/releases/CGAL-4.8/CGAL-4.8.zip -FileName CGAL-4.8.zip
- 7z x CGAL-4.8.zip -oC:\deps > nul
- appveyor DownloadFile https://www.dropbox.com/s/okbl2nvdj36y31i/gmp.zip?dl=1 -FileName gmp.zip
- 7z x gmp.zip -aoa -oC:\deps\CGAL-4.8\auxiliary > nul
- cd C:\deps\CGAL-4.8
- cmake -G "Visual Studio 14 2015 Win64" -H.\ -B.\ -DBUILD_SHARED_LIBS=OFF -DBoost_USE_STATIC_LIBS=ON
- set PATH=C:\deps\CGAL-4.8;%PATH%
- set CGAL_DIR=C:\deps\CGAL-4.8\
- msbuild "%CGAL_DIR%\src\CGAL_Core\CGAL_Core.vcxproj" /property:Configuration=Release /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- copy /Y "%CGAL_DIR%\lib\Release\libCGAL_Core-vc140-mt-4.8.lib" "%CGAL_DIR%\lib"
- msbuild "%CGAL_DIR%\src\CGAL_Core\CGAL_Core.vcxproj" /property:Configuration=Debug /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- copy /Y "%CGAL_DIR%\lib\Debug\libCGAL_Core-vc140-mt-gd-4.8.lib" "%CGAL_DIR%\lib"
- msbuild "%CGAL_DIR%\src\CGAL\CGAL.vcxproj" /property:Configuration=Release /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- copy /Y "%CGAL_DIR%\lib\Release\libCGAL-vc140-mt-4.8.lib" "%CGAL_DIR%\lib"
- msbuild "%CGAL_DIR%\src\CGAL\CGAL.vcxproj" /property:Configuration=Debug /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- copy /Y "%CGAL_DIR%\lib\Debug\libCGAL-vc140-mt-gd-4.8.lib" "%CGAL_DIR%\lib"
build:
project: vs_build\3dfier.sln
verbosity: minimal