2021-09-12 15:40:42 +08:00
|
|
|
image:
|
|
|
|
- Visual Studio 2019
|
2020-04-26 21:12:51 +08:00
|
|
|
environment:
|
|
|
|
CMAKE_INSTALL_ROOT: C:\projects\cmake
|
|
|
|
PACKAGE_INSTALL_ROOT: C:\projects\pir
|
|
|
|
matrix:
|
2024-07-08 19:59:49 +08:00
|
|
|
- build_name: mingw1120_64_qt6_7
|
|
|
|
QTPATH: C:\Qt\6.7\mingw_64
|
2022-10-05 14:02:46 +08:00
|
|
|
MINGW64: C:\Qt\Tools\mingw1120_64
|
2020-04-26 21:12:51 +08:00
|
|
|
|
|
|
|
install:
|
|
|
|
- mkdir %CMAKE_INSTALL_ROOT%
|
|
|
|
- mkdir %PACKAGE_INSTALL_ROOT%
|
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
|
|
|
- git submodule update --init --recursive
|
2022-10-05 14:02:46 +08:00
|
|
|
- set PATH=%PATH%;%CMAKE_INSTALL_ROOT%;%QTPATH%\bin;%MINGW64%\bin
|
2021-09-12 15:40:42 +08:00
|
|
|
- set CC=%MINGW64%\bin\gcc.exe
|
|
|
|
- set CXX=%MINGW64%\bin\g++.exe
|
2020-04-26 21:12:51 +08:00
|
|
|
|
|
|
|
build_script:
|
|
|
|
# prepare
|
|
|
|
- mkdir 3rdparty
|
2024-07-08 19:59:49 +08:00
|
|
|
- choco install ninja
|
2024-09-28 12:56:49 +08:00
|
|
|
- choco install gperf
|
2020-04-26 21:12:51 +08:00
|
|
|
- cd 3rdparty
|
2024-09-28 12:56:49 +08:00
|
|
|
# install ECM
|
|
|
|
- git clone -q https://invent.kde.org/frameworks/extra-cmake-modules.git
|
|
|
|
- git rev-parse HEAD
|
|
|
|
- cd extra-cmake-modules
|
|
|
|
- cmake -G "Ninja" . -DCMAKE_INSTALL_PREFIX=%PACKAGE_INSTALL_ROOT% -DBUILD_TESTING=OFF
|
|
|
|
- cmake --build . --target install
|
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
|
|
|
# build kcodecs
|
|
|
|
- git clone -q https://invent.kde.org/frameworks/kcodecs.git
|
|
|
|
- cd kcodecs
|
|
|
|
- cmake -G "Ninja" . -DCMAKE_INSTALL_PREFIX=%PACKAGE_INSTALL_ROOT% -DBUILD_TESTING=OFF
|
2024-09-22 14:27:53 +08:00
|
|
|
- cmake --build . --target install
|
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
|
|
|
# build taglib
|
2024-07-08 19:59:49 +08:00
|
|
|
- git clone --recurse-submodules -q https://github.com/taglib/taglib.git
|
2022-10-05 14:02:46 +08:00
|
|
|
- cd taglib
|
2020-04-26 21:12:51 +08:00
|
|
|
- cmake -G "Ninja" . -DCMAKE_INSTALL_PREFIX=%PACKAGE_INSTALL_ROOT% -DBUILD_SHARED_LIBS=ON
|
|
|
|
- cmake --build . --target install
|
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
|
|
|
- tree %PACKAGE_INSTALL_ROOT% /f
|
|
|
|
# finally...
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2024-09-23 20:45:38 +08:00
|
|
|
- cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=%PACKAGE_INSTALL_ROOT% -DCMAKE_INSTALL_PREFIX='%cd%'
|
2021-09-12 15:40:42 +08:00
|
|
|
- cmake --build .
|
|
|
|
- cmake --build . --target install
|
2020-04-26 21:12:51 +08:00
|
|
|
# fixme: I don't know how to NOT make the binary installed to the ./bin/ folder...
|
|
|
|
- cd bin
|
2022-10-05 14:02:46 +08:00
|
|
|
- windeployqt --verbose=2 --no-quick-import --no-translations --no-opengl-sw --compiler-runtime --no-system-d3d-compiler --multimedia .\pmusic.exe
|
2020-04-26 21:12:51 +08:00
|
|
|
- xcopy /s %PACKAGE_INSTALL_ROOT%\bin %cd%
|
|
|
|
# for debug..
|
|
|
|
- tree /f
|
|
|
|
|
|
|
|
artifacts:
|
|
|
|
- path: build\bin
|