-
Notifications
You must be signed in to change notification settings - Fork 61
/
appveyor.yml
70 lines (54 loc) · 2.38 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: 0.0.1.{build}
image:
- Visual Studio 2017
- Visual Studio 2015
- Visual Studio 2019
environment:
GLFW_URL: https://github.com/glfw/glfw.git
GLFW_ROOT: c:\projects\dep\glfw
GLFW_TAG: 3.3.2
BULLET_URL: https://github.com/bulletphysics/bullet3.git
BULLET_ROOT: c:\projects\dep\bullet
BULLET_TAG: 2.86.1
install:
- ps: >-
$GEN=""
if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2015") { $GEN="Visual Studio 14 2015 Win64"}
if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2017") { $GEN="Visual Studio 15 2017 Win64"}
if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2019") { $GEN="Visual Studio 16 2019"}
if (-Not (Test-Path $env:GLFW_ROOT)) {
git clone --depth 1 -b $env:GLFW_TAG $env:GLFW_URL
cd glfw
mkdir build
cd build
cmake -G $GEN -D GLFW_INSTALL=ON -D GLFW_BUILD_EXAMPLES=OFF -D GLFW_BUILD_DOCS=OFF -D GLFW_BUILD_TESTS=OFF -D CMAKE_INSTALL_PREFIX=$env:GLFW_ROOT ..
cmake --build . --config Release --target ALL_BUILD
cmake --build . --config Release --target INSTALL
cd $env:APPVEYOR_BUILD_FOLDER
}
if (-Not (Test-Path $env:BULLET_ROOT)) {
git clone --depth 1 -b $env:BULLET_TAG $env:BULLET_URL
cd bullet3
mkdir build
cd build
cmake -G $GEN -D INSTALL_LIBS=ON -D USE_MSVC_RUNTIME_LIBRARY_DLL=ON -D BUILD_CPU_DEMOS=OFF -D BUILD_OPENGL3_DEMOS=OFF -D BUILD_BULLET2_DEMOS=OFF -D BUILD_UNIT_TESTS=OFF -D CMAKE_INSTALL_PREFIX=$env:BULLET_ROOT ..
cmake --build . --config Release --target ALL_BUILD
cmake --build . --config Release --target INSTALL
cd $env:APPVEYOR_BUILD_FOLDER
}
cache:
- c:\projects\dep\glfw -> appveyor.yml
- c:\projects\dep\bullet -> appveyor.yml
build_script:
- ps: >-
$GEN=""
if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2015") { $GEN="Visual Studio 14 2015 Win64"}
if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2017") { $GEN="Visual Studio 15 2017 Win64"}
if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2019") { $GEN="Visual Studio 16 2019"}
mkdir build
cd build
cmake -G $GEN -D SABA_INSTALL=ON -D SABA_BULLET_ROOT=$env:BULLET_ROOT -D SABA_GLFW_ROOT=$env:GLFW_ROOT -D CMAKE_INSTALL_PREFIX=../output ..
cmake --build . --config Release --target ALL_BUILD
cmake --build . --config Release --target INSTALL
artifacts:
- path: .\output