-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor-build.cmd
63 lines (55 loc) · 1.65 KB
/
appveyor-build.cmd
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
@echo off
rem Get the submodules:
git submodule update --init
rem Download the ffmpeg's LibAV for Windows, version 3.4.1:
if not exist c:\projects\lib\include\avformat\avformat.h (
echo -------------------------
echo Downloading precompiled LibAV libraries from ffmpeg...
mkdir c:\projects\lib
curl -o c:\projects\lib\libav.zip http://xoft.cz/ffmpeg-3.4.1-win64-dev.zip
if errorlevel 1 (
echo Download unsuccessful
exit /b 1
)
7z x c:\projects\lib\libav.zip -oc:\projects\lib
if errorlevel 1 (
echo Unzip unsuccessful
exit /b 1
)
move c:\projects\lib\ffmpeg-3.4.1-win64-dev\include c:\projects\lib
move c:\projects\lib\ffmpeg-3.4.1-win64-dev\lib c:\projects\lib
)
rem Download the precompiled TagLib:
if not exist c:\projects\lib\include\taglib\tag.h (
echo -------------------------
echo Downloading precompiled TagLib libraries...
curl -o c:\projects\lib\taglib.7z http://xoft.cz/taglib-msvc2015-x64.7z
if errorlevel 1 (
echo Download unsuccessful
exit /b 1
)
7z x c:\projects\lib\taglib.7z -oc:\projects\lib
if errorlevel 1 (
echo Unzip unsuccessful
exit /b 1
)
)
echo -------------------------
echo Libraries checked, compiling now...
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat" amd64
set LIB=%LIB%;c:\projects\lib\lib
set INCLUDE=%INCLUDE%;c:\projects\lib\include
echo -------------------------
echo Running CMake...
mkdir Build
cd Build
cmake -A x64 ..
if errorlevel 1 (
exit /b 1
)
echo -------------------------
echo Building...
msbuild SkauTan.sln /m /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
if errorlevel 1 (
exit /b 1
)