-
Notifications
You must be signed in to change notification settings - Fork 17
/
.appveyor.yml
180 lines (174 loc) · 7.13 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
version: 1.4.{build}
environment:
global:
PLATFORMTOOLSET: "v140"
CMAKEPREFIXPATH: "."
VLC_PLUGIN: OFF
WINMM_DRIVER: OFF
PACKAGE_TYPE: SDK
BUILD_SHARED: ON
BUILD_STATIC: ON
BUILD_MIDIPLAY: ON
VLC_TARBALL_x32: "https://mirror.yandex.ru/mirrors/ftp.videolan.org/vlc/3.0.4/win32/vlc-3.0.4-win32.7z"
VLC_TARBALL_x64: "https://mirror.yandex.ru/mirrors/ftp.videolan.org/vlc/3.0.4/win64/vlc-3.0.4-win64.7z"
SEVENZIP: "C:\\Program Files\\7-Zip\\7z.exe"
WGET_BIN: "C:\\msys64\\usr\\bin\\wget.exe"
VLC_DIR: "vlc-3.0.4"
matrix:
- BUILD_TYPE: MinSizeRel
COMPILER: MinGW
PACKAGE_TYPE: WINMMDRIVERS
COMPILER_FAMILY: MinGW
GENERATOR: "Ninja"
PLATFORM: WinAll
- BUILD_TYPE: Release
COMPILER: MinGW-w32
COMPILER_FAMILY: MinGW
GENERATOR: "MinGW Makefiles"
PLATFORM: Win32
CMAKEPREFIXPATH: "C:/mingw-w64/i686-6.3.0-posix-dwarf-rt_v5-rev1/mingw32"
TOOLCHAIN_BIN: "C:\\mingw-w64\\i686-6.3.0-posix-dwarf-rt_v5-rev1\\mingw32\\bin"
VLC_PLUGIN: ON
PACKAGE_TYPE: VLCPLUGIN
BUILD_SHARED: OFF
BUILD_MIDIPLAY: OFF
VLC_TARBALL: ${VLC_TARBALL_x32}
- BUILD_TYPE: Release
COMPILER: MinGW-w64
COMPILER_FAMILY: MinGW
GENERATOR: "MinGW Makefiles"
PLATFORM: x64
CMAKEPREFIXPATH: "C:/mingw-w64/x86_64-6.3.0-posix-seh-rt_v5-rev1/mingw64"
TOOLCHAIN_BIN: "C:\\mingw-w64\\x86_64-6.3.0-posix-seh-rt_v5-rev1\\mingw64\\bin"
VLC_PLUGIN: ON
PACKAGE_TYPE: VLCPLUGIN
BUILD_SHARED: OFF
BUILD_MIDIPLAY: OFF
VLC_TARBALL: ${VLC_TARBALL_x64}
- BUILD_TYPE: Debug
COMPILER: MinGW
COMPILER_FAMILY: MinGW
GENERATOR: "MinGW Makefiles"
PLATFORM: Win32
CMAKEPREFIXPATH: "C:/MinGW"
TOOLCHAIN_BIN: "C:\\MinGW\\bin"
- BUILD_TYPE: Release
COMPILER: MinGW
COMPILER_FAMILY: MinGW
GENERATOR: "MinGW Makefiles"
PLATFORM: Win32
CMAKEPREFIXPATH: "C:/MinGW"
TOOLCHAIN_BIN: "C:\\MinGW\\bin"
- BUILD_TYPE: Debug
COMPILER: MinGW-w32
COMPILER_FAMILY: MinGW
GENERATOR: "MinGW Makefiles"
PLATFORM: Win32
CMAKEPREFIXPATH: "C:/mingw-w64/i686-6.3.0-posix-dwarf-rt_v5-rev1/mingw32"
TOOLCHAIN_BIN: "C:\\mingw-w64\\i686-6.3.0-posix-dwarf-rt_v5-rev1\\mingw32\\bin"
- BUILD_TYPE: Release
COMPILER: MinGW-w32
COMPILER_FAMILY: MinGW
GENERATOR: "MinGW Makefiles"
PLATFORM: Win32
CMAKEPREFIXPATH: "C:/mingw-w64/i686-6.3.0-posix-dwarf-rt_v5-rev1/mingw32"
TOOLCHAIN_BIN: "C:\\mingw-w64\\i686-6.3.0-posix-dwarf-rt_v5-rev1\\mingw32\\bin"
- BUILD_TYPE: Debug
COMPILER: MinGW-w64
COMPILER_FAMILY: MinGW
GENERATOR: "MinGW Makefiles"
PLATFORM: x64
CMAKEPREFIXPATH: "C:/mingw-w64/x86_64-6.3.0-posix-seh-rt_v5-rev1/mingw64"
TOOLCHAIN_BIN: "C:\\mingw-w64\\x86_64-6.3.0-posix-seh-rt_v5-rev1\\mingw64\\bin"
- BUILD_TYPE: Release
COMPILER: MinGW-w64
COMPILER_FAMILY: MinGW
GENERATOR: "MinGW Makefiles"
PLATFORM: x64
CMAKEPREFIXPATH: "C:/mingw-w64/x86_64-6.3.0-posix-seh-rt_v5-rev1/mingw64"
TOOLCHAIN_BIN: "C:\\mingw-w64\\x86_64-6.3.0-posix-seh-rt_v5-rev1\\mingw64\\bin"
- BUILD_TYPE: Debug
COMPILER: MSVC15
COMPILER_FAMILY: MSVC
GENERATOR: "Visual Studio 14 2015 Win64"
APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2015"
PLATFORM: x64
PLATFORMTOOLSET: "v140_xp"
- BUILD_TYPE: Release
COMPILER: MSVC15
COMPILER_FAMILY: MSVC
GENERATOR: "Visual Studio 14 2015 Win64"
APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2015"
PLATFORM: x64
PLATFORMTOOLSET: "v140_xp"
- BUILD_TYPE: Debug
COMPILER: MSVC15
COMPILER_FAMILY: MSVC
GENERATOR: "Visual Studio 14 2015"
APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2015"
PLATFORM: Win32
PLATFORMTOOLSET: "v140_xp"
- BUILD_TYPE: Release
COMPILER: MSVC15
COMPILER_FAMILY: MSVC
GENERATOR: "Visual Studio 14 2015"
APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2015"
PLATFORM: Win32
PLATFORMTOOLSET: "v140_xp"
- BUILD_TYPE: Debug
COMPILER: MSVC17
COMPILER_FAMILY: MSVC
GENERATOR: "Visual Studio 15 2017 Win64"
APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2017"
PLATFORM: x64
PLATFORMTOOLSET: "v141_xp"
- BUILD_TYPE: Release
COMPILER: MSVC17
COMPILER_FAMILY: MSVC
GENERATOR: "Visual Studio 15 2017 Win64"
APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2017"
PLATFORM: x64
PLATFORMTOOLSET: "v141_xp"
- BUILD_TYPE: Debug
COMPILER: MSVC17
COMPILER_FAMILY: MSVC
GENERATOR: "Visual Studio 15 2017"
APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2017"
PLATFORM: Win32
PLATFORMTOOLSET: "v141_xp"
- BUILD_TYPE: Release
COMPILER: MSVC17
COMPILER_FAMILY: MSVC
GENERATOR: "Visual Studio 15 2017"
APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2017"
PLATFORM: Win32
PLATFORMTOOLSET: "v141_xp"
build_script:
- if [%PACKAGE_TYPE%]==[VLCPLUGIN] cmake\win-ci\vlc-plugin.cmd
- if [%PACKAGE_TYPE%]==[SDK] cmake\win-ci\lib-sdk.cmd
- if [%PACKAGE_TYPE%]==[WINMMDRIVERS] cmake\win-ci\winmm-drivers.cmd
# - if [%VLC_PLUGIN%]==[ON] md C:\vlc-temp
# - if [%VLC_PLUGIN%]==[ON] "%WGET_BIN%" --quiet %VLC_TARBALL% -O C:\vlc-temp\vlcsdk.7z
# - if [%VLC_PLUGIN%]==[ON] "%SEVENZIP%" x C:\vlc-temp\vlcsdk.7z -oC:\vlc-temp
# - if [%VLC_PLUGIN%]==[ON] xcopy /S /E /Y "C:\vlc-temp\%VLC_DIR%\sdk\*" "%TOOLCHAIN_BIN%\.."
# - md build-%COMPILER%-%BUILD_TYPE%-%PLATFORM%
# - cd build-%COMPILER%-%BUILD_TYPE%-%PLATFORM%
# - if NOT [%TOOLCHAIN_BIN%]==[] set PATH=%TOOLCHAIN_BIN%;%PATH:C:\Program Files\Git\usr\bin;=%
# - cmake -G "%GENERATOR%" -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DCMAKE_PREFIX_PATH=%CMAKEPREFIXPATH% -DCMAKE_INSTALL_PREFIX=libADLMIDI -DWITH_OLD_UTILS=ON -DWITH_GENADLDATA=OFF -DlibADLMIDI_STATIC=%BUILD_STATIC% -DlibADLMIDI_SHARED=%BUILD_SHARED% -DWITH_MIDIPLAY=%BUILD_MIDIPLAY% -DWITH_VLC_PLUGIN=%VLC_PLUGIN% -DVLC_PLUGIN_NOINSTALL=ON ..
# - if [%COMPILER_FAMILY%]==[MinGW] cmake --build . --config %BUILD_TYPE% -- -j 2
# - if [%COMPILER_FAMILY%]==[MinGW] mingw32-make install
# - if [%COMPILER_FAMILY%]==[MSVC] cmake --build . --config %BUILD_TYPE% --target install
# - if [%VLC_PLUGIN%]==[OFF] 7z a -t7z -mx9 "libADLMIDI-%COMPILER%-%BUILD_TYPE%-%PLATFORM%.7z" "libADLMIDI"
# - if [%VLC_PLUGIN%]==[OFF] appveyor PushArtifact "libADLMIDI-%COMPILER%-%BUILD_TYPE%-%PLATFORM%.7z"
## - if [%VLC_PLUGIN%]==[OFF] move "libADLMIDI-%COMPILER%-%BUILD_TYPE%-%PLATFORM%.7z" ..
# - if [%VLC_PLUGIN%]==[ON] 7z a -t7z -mx9 "libADLMIDI-%VLC_DIR%-codec-%PLATFORM%.7z" "libadlmidi_plugin.dll"
# - if [%VLC_PLUGIN%]==[ON] appveyor PushArtifact "libADLMIDI-%VLC_DIR%-codec-%PLATFORM%.7z"
## - if [%VLC_PLUGIN%]==[ON] move "libADLMIDI-%VLC_DIR%-codec-%PLATFORM%.7z" ..
##artifacts:
## - path: 'libADLMIDI-$(COMPILER)-$(BUILD_TYPE)-$(PLATFORM).7z'
## - path: 'libADLMIDI-$(VLC_DIR)-codec-$(PLATFORM).7z'
deploy:
- provider: Environment
name: WohlnetFTP
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))