-
-
Notifications
You must be signed in to change notification settings - Fork 375
Expand file tree
/
Copy pathappveyor.yml
More file actions
56 lines (51 loc) · 1.84 KB
/
appveyor.yml
File metadata and controls
56 lines (51 loc) · 1.84 KB
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
# stats available at
# https://ci.appveyor.com/project/strukturag/libheif
image: Visual Studio 2022
configuration: Release
cache: c:\tools\vcpkg\installed\
environment:
matrix:
- arch: x64
triplet: x64-windows
- arch: Win32
triplet: x86-windows
- arch: arm64
triplet: arm64-windows
install:
# Build only Release vcpkg libraries (skip Debug) to halve install time
- ps: |
@('x64-windows', 'x86-windows', 'arm64-windows') | ForEach-Object {
$tripletDir = "C:\tools\vcpkg\triplets"
$content = (Get-Content "$tripletDir\$_.cmake" -Raw) + "`nset(VCPKG_BUILD_TYPE release)`n"
Set-Content "$tripletDir\$_.cmake" $content
}
# --- Phase 1: remove ffmpeg, upgrade everything else ---
#- vcpkg remove ffmpeg:%triplet% --recurse 2>NUL & ver>NUL
#- vcpkg upgrade --no-dry-run
# --- Phase 2: uncomment the two lines below to compile ffmpeg ---
- vcpkg upgrade --no-dry-run
- vcpkg install ffmpeg[avcodec]:%triplet%
- vcpkg install aom:%triplet%
- ps: If (${env:arch} -ne "Win32") { vcpkg install dav1d:${env:triplet} }
- vcpkg install libde265:%triplet%
- vcpkg install libjpeg-turbo:%triplet%
- vcpkg install libpng:%triplet%
- vcpkg install tiff:%triplet%
- vcpkg install x265:%triplet%
- vcpkg install zlib:%triplet%
- cd c:\tools\vcpkg
- vcpkg integrate install
- cd %APPVEYOR_BUILD_FOLDER%
before_build:
- mkdir build
- cd build
- cmake .. -A %arch% -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake -DWITH_DAV1D=ON -DWITH_AOM_DECODER=ON -DWITH_AOM_ENCODER=ON -DWITH_JPEG_DECODER=ON -DWITH_JPEG_ENCODER=ON -DWITH_UNCOMPRESSED_CODEC=ON -DWITH_HEADER_COMPRESSION=ON -DWITH_FFMPEG_DECODER=ON
- dir
build:
project: build\libheif.sln
parallel: true
verbosity: normal
artifacts:
- path: build
- path: build\**\Release\*.exe
- path: build\**\Release\*.dll