-
Notifications
You must be signed in to change notification settings - Fork 7
/
appveyor.yml
139 lines (78 loc) · 3.39 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
version: 0.8.7.{build}
image: Visual Studio 2022
configuration: Release
platform: x64
install:
- cmd: >-
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
appveyor DownloadFile "https://github.com/novomesk/downloads/raw/main/nasm-2.16.03-win64.zip" -FileName "nasm.zip"
7z x "nasm.zip"
move nasm-* NASM
set PATH=%PATH%;%CD%\NASM;
nasm -v
cd ext\libavif\ext\libyuv
mkdir build
cd build
cmake -G "NMake Makefiles" -DBUILD_SHARED_LIBS=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=ON ..
nmake yuv
copy yuv.lib libyuv.a
cd ..\..\libwebp
mkdir build
cd build
cmake -G "NMake Makefiles" -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DWEBP_LINK_STATIC=ON -DWEBP_BUILD_ANIM_UTILS=OFF -DWEBP_BUILD_CWEBP=OFF -DWEBP_BUILD_DWEBP=OFF -DWEBP_BUILD_GIF2WEBP=OFF -DWEBP_BUILD_IMG2WEBP=OFF -DWEBP_BUILD_VWEBP=OFF -DWEBP_BUILD_WEBPINFO=OFF -DWEBP_BUILD_LIBWEBPMUX=OFF -DWEBP_BUILD_WEBPMUX=OFF -DWEBP_BUILD_EXTRAS=OFF ..
nmake sharpyuv
copy libsharpyuv.lib libsharpyuv.a
cd ..\..\dav1d
mkdir build
cd build
meson setup --default-library=static --buildtype release -Denable_tools=false -Denable_tests=false ..
ninja
cd ..\..\aom
mkdir build.libavif
cd build.libavif
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCONFIG_AV1_DECODER=0 -DCONFIG_AV1_ENCODER=1 -DENABLE_DOCS=0 -DENABLE_EXAMPLES=0 -DENABLE_TESTDATA=0 -DENABLE_TESTS=0 -DENABLE_TOOLS=0 -DCONFIG_PIC=1 -DCONFIG_WEBM_IO=0 ..
ninja
copy aom.lib libaom.a
cd ..\..\..\..\libavif
mkdir build
cd build
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DAVIF_CODEC_AOM=LOCAL -DAVIF_CODEC_AOM_DECODE=OFF -DAVIF_CODEC_AOM_ENCODE=ON -DAVIF_CODEC_DAV1D=LOCAL -DAVIF_LIBYUV=LOCAL -DAVIF_LIBSHARPYUV=LOCAL ..
ninja
copy avif.lib libavif.a
cd ..
mkdir build-ro
cd build-ro
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DAVIF_CODEC_DAV1D=LOCAL -DAVIF_LIBYUV=LOCAL ..
ninja
copy avif.lib libavif.a
cd ..\..\..
build_script:
- cmd: >-
C:\Qt\5.15.2\msvc2019_64\bin\qmake.exe qt-avif-image-plugin_local-libavif.pro
nmake.exe
cd qtbuild_5.15.2-ro
C:\Qt\5.15.2\msvc2019_64\bin\qmake.exe qt-avif-image-plugin_local_alternative-libavif-ro.pro
nmake.exe
cd ..\qtbuild_6.2.4
C:\Qt\6.2.4\msvc2019_64\bin\qmake.exe qt-avif-image-plugin_local_alternative-libavif.pro
nmake.exe
cd ..\qtbuild_6.5.3
C:\Qt\6.5.3\msvc2019_64\bin\qmake.exe qt-avif-image-plugin_local_alternative-libavif.pro
nmake.exe
cd ..\qtbuild_6.5.3-ro
C:\Qt\6.5.3\msvc2019_64\bin\qmake.exe qt-avif-image-plugin_local_alternative-libavif-ro.pro
nmake.exe
cd ..\qtbuild_6.8.0
C:\Qt\6.8.0\msvc2022_64\bin\qmake.exe qt-avif-image-plugin_local_alternative-libavif.pro
nmake.exe
cd ..\qtbuild_6.8.0-ro
C:\Qt\6.8.0\msvc2022_64\bin\qmake.exe qt-avif-image-plugin_local_alternative-libavif-ro.pro
nmake.exe
artifacts:
- path: plugins\imageformats\*.dll
- path: qtbuild_5.15.2-ro\plugins\imageformats\*.dll
- path: qtbuild_6.2.4\*.dll
- path: qtbuild_6.5.3\*.dll
- path: qtbuild_6.5.3-ro\*.dll
- path: qtbuild_6.8.0\*.dll
- path: qtbuild_6.8.0-ro\*.dll