2020-12-16 20:23:26 +08:00
|
|
|
image:
|
|
|
|
- Visual Studio 2019
|
2019-09-30 23:08:12 +08:00
|
|
|
environment:
|
2022-01-21 17:12:17 +08:00
|
|
|
CMAKE_INSTALL_PREFIX: C:\projects\cmake
|
2021-03-21 00:14:17 +08:00
|
|
|
LIBZ: C:\projects\zlib
|
2020-11-16 13:19:15 +08:00
|
|
|
LIBEXPAT: C:\projects\libexpat
|
2020-12-22 14:01:37 +08:00
|
|
|
LIBAVIF: C:\projects\libavif
|
|
|
|
LIBEXIV2: C:\projects\exiv2
|
2022-01-21 17:12:17 +08:00
|
|
|
PPKG: C:\projects\ppkg
|
2019-09-30 23:08:12 +08:00
|
|
|
matrix:
|
2021-03-21 00:14:17 +08:00
|
|
|
- build_name: mingw81_64_qt5_15_2
|
2022-01-21 17:12:17 +08:00
|
|
|
QTDIR: C:\Qt\5.15.2\mingw81_64
|
2021-03-21 00:14:17 +08:00
|
|
|
MINGW64: C:\Qt\Tools\mingw810_64
|
2019-09-30 23:08:12 +08:00
|
|
|
|
|
|
|
install:
|
2022-01-21 17:12:17 +08:00
|
|
|
- mkdir %CMAKE_INSTALL_PREFIX%
|
2021-03-21 00:14:17 +08:00
|
|
|
- mkdir %LIBZ%
|
2020-11-16 13:19:15 +08:00
|
|
|
- mkdir %LIBEXPAT%
|
2020-12-22 14:01:37 +08:00
|
|
|
- mkdir %LIBAVIF%
|
|
|
|
- mkdir %LIBEXIV2%
|
2022-01-21 17:12:17 +08:00
|
|
|
- mkdir %PPKG%
|
2019-09-30 23:08:12 +08:00
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
|
|
|
- git submodule update --init --recursive
|
2022-01-21 17:12:17 +08:00
|
|
|
- set PATH=%PATH%;%CMAKE_INSTALL_PREFIX%;%QTDIR%\bin;%MINGW64%\bin;%PPKG%
|
2021-03-21 00:14:17 +08:00
|
|
|
- set CC=%MINGW64%\bin\gcc.exe
|
|
|
|
- set CXX=%MINGW64%\bin\g++.exe
|
2019-09-30 23:08:12 +08:00
|
|
|
|
|
|
|
build_script:
|
2020-03-02 20:55:58 +08:00
|
|
|
# prepare
|
|
|
|
- mkdir 3rdparty
|
|
|
|
- cinst ninja
|
2022-01-21 17:12:17 +08:00
|
|
|
- cd %PPKG%
|
|
|
|
- curl -fsSL -o ppkg.exe https://github.com/BLumia/pineapple-package-manager/releases/latest/download/ppkg.exe
|
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
2021-03-21 00:14:17 +08:00
|
|
|
# download and install zlib for KArchive
|
|
|
|
- cd %LIBZ%
|
2022-04-03 19:18:26 +08:00
|
|
|
- curl -fsSL -o zlib1212.zip https://zlib.net/zlib1212.zip
|
|
|
|
- 7z x zlib1212.zip -y
|
|
|
|
- cd zlib-1.2.12
|
2021-03-21 00:14:17 +08:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2022-01-21 17:12:17 +08:00
|
|
|
- cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_PREFIX%
|
2021-03-21 00:14:17 +08:00
|
|
|
- cmake --build . --config Release
|
2021-04-08 13:18:02 +08:00
|
|
|
- cmake --build . --config Release --target install/strip
|
2021-03-21 00:14:17 +08:00
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
2020-03-02 20:55:58 +08:00
|
|
|
# install ECM so we can build KImageFormats
|
|
|
|
- cd 3rdparty
|
2020-06-18 23:13:29 +08:00
|
|
|
- git clone -q https://invent.kde.org/frameworks/extra-cmake-modules.git
|
2021-03-21 00:14:17 +08:00
|
|
|
- git rev-parse HEAD
|
2020-03-02 20:55:58 +08:00
|
|
|
- cd extra-cmake-modules
|
2022-01-21 17:12:17 +08:00
|
|
|
- cmake -G "Ninja" . -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_PREFIX% -DBUILD_TESTING=OFF
|
2020-03-02 20:55:58 +08:00
|
|
|
- cmake --build .
|
|
|
|
- cmake --build . --target install
|
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
2020-12-22 15:08:13 +08:00
|
|
|
# install AOM for libavif AV1 decoding support...
|
|
|
|
- cd 3rdparty
|
2022-01-21 17:12:17 +08:00
|
|
|
#- git clone -b v3.2.0 --depth 1 https://aomedia.googlesource.com/aom
|
|
|
|
#- cd aom
|
|
|
|
#- mkdir build.libavif
|
|
|
|
#- cd build.libavif
|
|
|
|
#- cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_PREFIX% -DENABLE_DOCS=OFF -DBUILD_SHARED_LIBS=ON -DAOM_TARGET_CPU=generic -DENABLE_TESTS=OFF -DENABLE_TESTDATA=OFF -DENABLE_TOOLS=OFF -DENABLE_EXAMPLES=0
|
|
|
|
#- cmake --build . --config Release
|
|
|
|
#- cmake --build . --config Release --target install/strip
|
|
|
|
- mkdir aom
|
2020-12-22 15:08:13 +08:00
|
|
|
- cd aom
|
2022-01-21 17:12:17 +08:00
|
|
|
- curl -fsSL -o ppkg-aom.zip https://sourceforge.net/projects/pineapple-package-manager/files/packages/mingw-w64-x86_64-windows/aom-3.2.0-2.zip
|
|
|
|
- ppkg ppkg-aom.zip
|
|
|
|
- 7z x ppkg-aom.zip LICENSE -y
|
2020-12-22 15:08:13 +08:00
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
|
|
|
# install libavif for avif format support of KImageFormats
|
2020-12-22 14:01:37 +08:00
|
|
|
- cd %LIBAVIF%
|
2022-08-17 00:11:53 +08:00
|
|
|
- curl -fsSL -o libavif-v0_10_1.zip https://github.com/AOMediaCodec/libavif/archive/v0.10.1.zip
|
|
|
|
- 7z x libavif-v0_10_1.zip -y
|
|
|
|
- cd libavif-0.10.1
|
2020-12-22 14:01:37 +08:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2022-01-21 17:12:17 +08:00
|
|
|
- cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_PREFIX% -DAVIF_CODEC_AOM=ON
|
2020-12-22 14:01:37 +08:00
|
|
|
- cmake --build . --config Release
|
2021-04-08 13:18:02 +08:00
|
|
|
- cmake --build . --config Release --target install/strip
|
2020-12-22 14:01:37 +08:00
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
2020-12-16 20:23:26 +08:00
|
|
|
# install KArchive for kra format support of KImageFormats
|
|
|
|
- cd 3rdparty
|
|
|
|
- git clone -q https://invent.kde.org/frameworks/karchive.git
|
2021-03-21 00:14:17 +08:00
|
|
|
- git rev-parse HEAD
|
2020-12-16 20:23:26 +08:00
|
|
|
- cd karchive
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2022-01-21 17:12:17 +08:00
|
|
|
- cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_PREFIX%
|
2020-12-16 20:23:26 +08:00
|
|
|
- cmake --build . --config Release
|
2021-04-08 13:18:02 +08:00
|
|
|
- cmake --build . --config Release --target install/strip
|
2020-12-16 20:23:26 +08:00
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
2020-11-16 13:19:15 +08:00
|
|
|
# build libexpat for libexiv2
|
2020-12-22 14:01:37 +08:00
|
|
|
- cd %LIBEXPAT%
|
2022-08-17 00:11:53 +08:00
|
|
|
- curl -fsSL -o R_2_4_8.zip https://github.com/libexpat/libexpat/archive/R_2_4_8.zip
|
|
|
|
- 7z x R_2_4_8.zip -y
|
|
|
|
- cd libexpat-R_2_4_8/expat/
|
2022-01-21 17:12:17 +08:00
|
|
|
- cmake -G "Ninja" . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_PREFIX% -DEXPAT_BUILD_EXAMPLES=OFF -DEXPAT_BUILD_TESTS=OFF -DEXPAT_BUILD_TOOLS=OFF
|
2021-04-08 13:18:02 +08:00
|
|
|
- cmake --build . --target install/strip
|
2020-11-16 13:19:15 +08:00
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
|
|
|
# build libexiv2
|
2020-12-22 14:01:37 +08:00
|
|
|
- cd %LIBEXIV2%
|
2022-01-21 17:12:17 +08:00
|
|
|
- curl -fsSL -o v0.27.5.zip https://github.com/Exiv2/exiv2/archive/v0.27.5.zip
|
|
|
|
- 7z x v0.27.5.zip -y
|
|
|
|
- cd exiv2-0.27.5
|
|
|
|
- cmake -G "Ninja" . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_PREFIX% -DEXIV2_BUILD_SAMPLES=OFF -DEXIV2_ENABLE_WIN_UNICODE=ON
|
2021-04-08 13:18:02 +08:00
|
|
|
- cmake --build . --target install/strip
|
2020-07-22 13:46:21 +08:00
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
2020-03-02 20:55:58 +08:00
|
|
|
# install KImageFormats
|
|
|
|
- cd 3rdparty
|
2020-06-18 23:13:29 +08:00
|
|
|
- git clone -q https://invent.kde.org/frameworks/kimageformats.git
|
2021-03-21 00:14:17 +08:00
|
|
|
- git rev-parse HEAD
|
2020-03-02 20:55:58 +08:00
|
|
|
- cd kimageformats
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2022-01-21 17:12:17 +08:00
|
|
|
- cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_QTPLUGINDIR=%QTDIR%\plugins
|
2020-03-02 20:55:58 +08:00
|
|
|
- cmake --build . --config Release
|
2021-04-08 13:18:02 +08:00
|
|
|
- cmake --build . --config Release --target install/strip
|
2020-03-02 20:55:58 +08:00
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
|
|
|
# finally...
|
2019-09-30 23:08:12 +08:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2021-04-08 13:18:02 +08:00
|
|
|
- cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=mingw32-make -DCMAKE_INSTALL_PREFIX='%cd%'
|
|
|
|
- cmake --build . --config Release
|
|
|
|
- cmake --build . --config Release --target install/strip
|
2020-01-03 23:01:12 +08:00
|
|
|
# fixme: I don't know how to NOT make the binary installed to the ./bin/ folder...
|
|
|
|
- cd bin
|
2020-08-04 19:15:10 +08:00
|
|
|
- copy %APPVEYOR_BUILD_FOLDER%\LICENSE .
|
2022-01-21 17:12:17 +08:00
|
|
|
- copy %CMAKE_INSTALL_PREFIX%\bin\libaom.dll
|
|
|
|
- copy %CMAKE_INSTALL_PREFIX%\bin\libexpat.dll
|
|
|
|
- copy %CMAKE_INSTALL_PREFIX%\bin\libexiv2.dll
|
|
|
|
- copy %CMAKE_INSTALL_PREFIX%\bin\libavif.dll
|
|
|
|
- copy %CMAKE_INSTALL_PREFIX%\bin\libzlib.dll
|
2020-07-22 13:46:21 +08:00
|
|
|
- copy C:\projects\cmake\bin\libKF5Archive.dll .
|
2020-12-16 20:23:26 +08:00
|
|
|
- windeployqt --verbose=2 --no-quick-import --no-translations --no-opengl-sw --no-angle --no-system-d3d-compiler .\ppic.exe
|
2020-12-22 14:01:37 +08:00
|
|
|
# copy 3rdparty licenses for the libs we vendored for windows...
|
|
|
|
- mkdir licenses
|
2020-12-22 15:08:13 +08:00
|
|
|
- cd licenses
|
|
|
|
- copy %APPVEYOR_BUILD_FOLDER%\3rdparty\aom\LICENSE License.aom.txt
|
2020-12-22 14:01:37 +08:00
|
|
|
- copy %APPVEYOR_BUILD_FOLDER%\3rdparty\karchive\LICENSES\LGPL-2.0-or-later.txt License.KArchive.txt
|
|
|
|
- copy %APPVEYOR_BUILD_FOLDER%\3rdparty\kimageformats\LICENSES\LGPL-2.1-or-later.txt License.kimageformats.txt
|
2022-08-17 00:11:53 +08:00
|
|
|
- copy %LIBEXPAT%\libexpat-R_2_4_8\expat\COPYING License.expat.txt
|
|
|
|
- copy %LIBAVIF%\libavif-0.10.1\LICENSE License.libavif.txt
|
2022-01-21 17:12:17 +08:00
|
|
|
- copy %LIBEXIV2%\exiv2-0.27.5\COPYING License.exiv2.txt
|
2020-12-22 14:01:37 +08:00
|
|
|
# TODO: Qt, zlib
|
|
|
|
- cd ..
|
2020-03-02 20:55:58 +08:00
|
|
|
# for debug..
|
|
|
|
- tree /f
|
2019-09-30 23:08:12 +08:00
|
|
|
|
|
|
|
artifacts:
|
2020-01-03 23:01:12 +08:00
|
|
|
- path: build\bin
|