-
Notifications
You must be signed in to change notification settings - Fork 15
/
.appveyor.yml
60 lines (51 loc) · 1.74 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
os: Visual Studio 2015
platform:
- x86
branches:
only:
- master
environment:
BASEDIR: c:\mylibs
INCLUDEDIR: c:\mylibs\include\SDL2
LIBDIR: c:\mylibs\lib
install:
- cmake --version
- mkdir %INCLUDEDIR%
- mkdir %LIBDIR%
- cd %TEMP%
# Download SDL2
- appveyor DownloadFile https://www.libsdl.org/release/SDL2-devel-2.30.3-VC.zip
- appveyor DownloadFile https://www.libsdl.org/projects/SDL_image/release/SDL2_image-devel-2.8.2-VC.zip
- appveyor DownloadFile https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-devel-2.8.0-VC.zip
- appveyor DownloadFile https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-devel-2.22.0-VC.zip
# Extract files
- 7z x SDL2-devel-2.30.3-VC.zip > nul
- 7z x SDL2_image-devel-2.8.2-VC.zip > nul
- 7z x SDL2_mixer-devel-2.8.0-VC.zip > nul
- 7z x SDL2_ttf-devel-2.22.0-VC.zip > nul
# Set up includes
- copy SDL2-2.30.3\include\* %INCLUDEDIR% > nul
- copy SDL2_image-2.8.2\include\* %INCLUDEDIR% > nul
- copy SDL2_mixer-2.8.0\include\* %INCLUDEDIR% > nul
- copy SDL2_ttf-2.22.0\include\* %INCLUDEDIR% > nul
# Set up libs
- copy SDL2-2.30.3\lib\x86\* %LIBDIR% > nul
- copy SDL2_image-2.8.2\lib\x86\* %LIBDIR% > nul
- copy SDL2_mixer-2.8.0\lib\x86\* %LIBDIR% > nul
- copy SDL2_ttf-2.22.0\lib\x86\* %LIBDIR% > nul
before_build:
- cd %APPVEYOR_BUILD_FOLDER%
- git submodule update --init
build_script:
- cmake
-DCMAKE_PREFIX_PATH=%BASEDIR%
-DCMAKE_CXX_FLAGS="/I%BASEDIR%\include"
-DCMAKE_BUILD_TYPE=Release
-DINSTALL_PORTABLE=ON
-DENABLE_LOCALES=OFF
-DCMAKE_INSTALL_PREFIX=openblok_portable
-DCMAKE_VERBOSE_MAKEFILE=ON
-G "Visual Studio 14 2015" .
- cmake --build . --config Release
artifacts:
- path: src\Release\openblok.exe