forked from mmatyas/supermariowar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
79 lines (71 loc) · 2.53 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
75
76
77
78
79
os: Visual Studio 2015
platform:
- x86
branches:
only:
- master
environment:
BASEDIR: c:\mylibs
ZLIB_IDIR: c:\mylibs\include
SDL1_IDIR: c:\mylibs\include\SDL
SDL2_IDIR: c:\mylibs\include\SDL2
LIBDIR: c:\mylibs\lib
matrix:
- SDL_VER: 1
- SDL_VER: 2
install:
- git submodule update --init --recursive
- cmake --version
- mkdir %ZLIB_IDIR%
- mkdir %SDL1_IDIR%
- mkdir %SDL2_IDIR%
- mkdir %LIBDIR%
- cd %TEMP%
# Download zlib
- appveyor DownloadFile http://zlib.net/zlib128-dll.zip
- 7z x zlib128-dll.zip > nul
- copy include\* %ZLIB_IDIR% > nul
- copy lib\* %LIBDIR% > nul
# Download SDL1
- appveyor DownloadFile https://www.libsdl.org/release/SDL-devel-1.2.15-VC.zip
- appveyor DownloadFile https://www.libsdl.org/projects/SDL_image/release/SDL_image-devel-1.2.12-VC.zip
- appveyor DownloadFile https://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-devel-1.2.12-VC.zip
# Extract files
- 7z x SDL-devel-1.2.15-VC.zip > nul
- 7z x SDL_image-devel-1.2.12-VC.zip > nul
- 7z x SDL_mixer-devel-1.2.12-VC.zip > nul
# Set up includes
- copy SDL-1.2.15\include\* %SDL1_IDIR% > nul
- copy SDL_image-1.2.12\include\* %SDL1_IDIR% > nul
- copy SDL_mixer-1.2.12\include\* %SDL1_IDIR% > nul
# Set up libs
- copy SDL-1.2.15\lib\x86\* %LIBDIR% > nul
- copy SDL_image-1.2.12\lib\x86\* %LIBDIR% > nul
- copy SDL_mixer-1.2.12\lib\x86\* %LIBDIR% > nul
# Download SDL2
- appveyor DownloadFile https://www.libsdl.org/release/SDL2-devel-2.0.5-VC.zip
- appveyor DownloadFile https://www.libsdl.org/projects/SDL_image/release/SDL2_image-devel-2.0.1-VC.zip
- appveyor DownloadFile https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-devel-2.0.1-VC.zip
# Extract files
- 7z x SDL2-devel-2.0.5-VC.zip > nul
- 7z x SDL2_image-devel-2.0.1-VC.zip > nul
- 7z x SDL2_mixer-devel-2.0.1-VC.zip > nul
# Set up includes
- copy SDL2-2.0.5\include\* %SDL2_IDIR% > nul
- copy SDL2_image-2.0.1\include\* %SDL2_IDIR% > nul
- copy SDL2_mixer-2.0.1\include\* %SDL2_IDIR% > nul
# Set up libs
- copy SDL2-2.0.5\lib\x86\* %LIBDIR% > nul
- copy SDL2_image-2.0.1\lib\x86\* %LIBDIR% > nul
- copy SDL2_mixer-2.0.1\lib\x86\* %LIBDIR% > nul
build_script:
- cd %APPVEYOR_BUILD_FOLDER%
- if [%SDL_VER%]==[1] (set USE_SDL2_LIBS=OFF) else (set USE_SDL2_LIBS=ON)
- cmake
-DCMAKE_PREFIX_PATH=%BASEDIR%
-DCMAKE_BUILD_TYPE=Release
-DUSE_SDL2_LIBS=%USE_SDL2_LIBS%
-G "Visual Studio 14 2015" .
- cmake --build . --config Release
artifacts:
- path: Binaries\Release\Release\*.exe