forked from HaxeFoundation/hashlink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
71 lines (64 loc) · 3.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
61
62
63
64
65
66
67
68
69
70
71
version: "{build}"
image:
- Visual Studio 2015
platform: Win32
configuration: Release
environment:
global:
HAXELIB_ROOT: C:\projects\haxelib
matrix:
- ARCH: 32
builder: vc
- ARCH: 32
CMAKE_GENERATOR: "Visual Studio 14 2015"
builder: cmake
- ARCH: 64
CMAKE_GENERATOR: "Visual Studio 14 2015 Win64"
builder: cmake
artifacts:
- path: 'bin/hashlink-*.zip'
install:
# install sdl
- appveyor DownloadFile https://www.libsdl.org/release/SDL2-devel-2.0.5-VC.zip
- 7z x SDL2-devel-2.0.5-VC.zip
- move SDL2-2.0.5 include/sdl
# install openal
- appveyor DownloadFile http://openal-soft.org/openal-binaries/openal-soft-1.17.2-bin.zip
- 7z x openal-soft-1.17.2-bin.zip
- move openal-soft-1.17.2-bin include/openal
# install ffmpeg
- appveyor DownloadFile https://ffmpeg.zeranoe.com/builds/win%ARCH%/dev/ffmpeg-3.4.2-win%ARCH%-dev.zip
- 7z x ffmpeg-3.4.2-win%ARCH%-dev.zip
- move ffmpeg-3.4.2-win%ARCH%-dev include/ffmpeg
# install neko and haxe
- ps: Set-Service wuauserv -StartupType Manual
- cinst neko --version 2.2.0 -y
- cinst haxe --prerelease --ignore-dependencies -s 'https://ci.appveyor.com/nuget/haxe' -y
- RefreshEnv
- neko -version
- haxe -version
# setup haxelib
- mkdir "%HAXELIB_ROOT%"
- haxelib setup "%HAXELIB_ROOT%"
- haxelib install hashlink
build_script:
# if "%builder%"=="vc"
- if "%builder%"=="vc" msbuild libhl.vcxproj /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- if "%builder%"=="vc" msbuild hl.vcxproj /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- if "%builder%"=="vc" msbuild libs/directx/directx.vcxproj /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- if "%builder%"=="vc" msbuild libs/fmt/fmt.vcxproj /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- if "%builder%"=="vc" msbuild libs/openal/openal.vcxproj /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- if "%builder%"=="vc" msbuild libs/sdl/sdl.vcxproj /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- if "%builder%"=="vc" msbuild libs/sqlite/sqlite.vcxproj /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- if "%builder%"=="vc" msbuild libs/ssl/ssl.vcxproj /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- if "%builder%"=="vc" msbuild libs/ui/ui.vcxproj /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- if "%builder%"=="vc" msbuild libs/uv/uv.vcxproj /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- if "%builder%"=="vc" msbuild libs/video/video.vcxproj /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
# if "%builder%"=="cmake"
- if "%builder%"=="cmake" cmake -G "%CMAKE_GENERATOR%" .
- if "%builder%"=="cmake" msbuild ALL_BUILD.vcxproj /p:Configuration=Release /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- if "%builder%"=="cmake" msbuild RUN_TESTS.vcxproj /p:Configuration=Release /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- if "%builder%"=="cmake" cpack
test: off
# test_script:
# - if "%builder%"=="cmake" msbuild RUN_TESTS.vcxproj /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"