Skip to content

Commit

Permalink
take 4
Browse files Browse the repository at this point in the history
  • Loading branch information
BLumia committed Apr 26, 2024
1 parent aadb86c commit 9743bd7
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ image:
- Visual Studio 2022
environment:
CMAKE_INSTALL_PREFIX: C:\projects\cmake
PKG_CONFIG_PATH: C:\projects\cmake\lib\pkgconfig
LIBZ: C:\projects\zlib
LIBEXPAT: C:\projects\libexpat
LIBAVIF: C:\projects\libavif
LIBEXIV2: C:\projects\exiv2
LIBHEIF: C:\projects\libheif
PPKG: C:\projects\ppkg
matrix:
- job_name: mingw_64_qt6_5
Expand All @@ -31,6 +33,7 @@ install:
- mkdir %LIBEXPAT%
- mkdir %LIBAVIF%
- mkdir %LIBEXIV2%
- mkdir %LIBHEIF%
- mkdir %PPKG%
- cd %APPVEYOR_BUILD_FOLDER%
- git submodule update --init --recursive
Expand All @@ -42,6 +45,7 @@ build_script:
# prepare
- mkdir 3rdparty
- cinst ninja
- cinst pkgconfiglite
- cd %PPKG%
- curl -fsSL -o ppkg.exe /~https://github.com/BLumia/pineapple-package-manager/releases/latest/download/ppkg.exe
- cd %APPVEYOR_BUILD_FOLDER%
Expand Down Expand Up @@ -121,6 +125,15 @@ build_script:
- cmake --build . --config Release
- cmake --build . --config Release --target install/strip
- cd %APPVEYOR_BUILD_FOLDER%
# install libheif for heif format support of KImageFormats
- cd %LIBHEIF%
- curl -fsSL -o libheif-v1.17.6.zip /~https://github.com/strukturag/libheif/archive/v1.17.6.zip
- 7z x libheif-v1.17.6.zip -y
- cd libheif-1.17.6
- cmake . -B build -G Ninja -DENABLE_PLUGIN_LOADING=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_PREFIX%
- cmake --build build --config Release
- cmake --build build --config Release --target install/strip
- cd %APPVEYOR_BUILD_FOLDER%
# install KArchive for kra format support of KImageFormats
- cd 3rdparty
- git clone -b %KF_BRANCH% -q https://invent.kde.org/frameworks/karchive.git
Expand Down Expand Up @@ -155,7 +168,7 @@ build_script:
- cd kimageformats
- mkdir build
- cd build
- cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_QTPLUGINDIR=%QTDIR%\plugins
- cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DKIMAGEFORMATS_HEIF=ON -DKDE_INSTALL_QTPLUGINDIR=%QTDIR%\plugins
- cmake --build . --config Release
- cmake --build . --config Release --target install/strip
- cd %APPVEYOR_BUILD_FOLDER%
Expand All @@ -172,6 +185,7 @@ build_script:
- copy %CMAKE_INSTALL_PREFIX%\bin\libexpat-1.dll
- copy %CMAKE_INSTALL_PREFIX%\bin\libexiv2.dll
- copy %CMAKE_INSTALL_PREFIX%\bin\libavif.dll
- copy %CMAKE_INSTALL_PREFIX%\bin\libheif.dll
- copy %CMAKE_INSTALL_PREFIX%\bin\libzlib.dll
- copy %CMAKE_INSTALL_PREFIX%\bin\libIex-3_1.dll
- copy %CMAKE_INSTALL_PREFIX%\bin\libImath-3_1.dll
Expand All @@ -189,6 +203,7 @@ build_script:
- copy %APPVEYOR_BUILD_FOLDER%\3rdparty\QtApng\LICENSE License.QtApng.txt
- copy %LIBEXPAT%\libexpat-R_2_5_0\expat\COPYING License.expat.txt
- copy %LIBAVIF%\libavif-0.11.1\LICENSE License.libavif.txt
- copy %LIBHEIF%\libheif-1.17.6\COPYING License.libheif.txt
- copy %LIBEXIV2%\exiv2-%EXIV2_VERSION%\COPYING License.exiv2.txt
# TODO: Qt, zlib
- cd ..
Expand Down

0 comments on commit 9743bd7

Please sign in to comment.